返回题库

6 次抛硬币恰好出现一段 3 连正面

Three Repeat II

专题
Probability / 概率
难度
L2

题目详情

公平硬币抛 6 次。求“某处恰好出现连续 3 个正面(H)”的概率。

A fair coin is flipped 66 times. Find the probability of obtaining exactly 33 consecutive heads somewhere in the 66 flips.

解析

符合条件的序列形状可分为 4 类:HHH???、?HHH??、??HHH?、???HHH,并要求相邻处不能扩展出更长连串。

计数结果为 12 个序列,因此概率为

1226=1264=316.\frac{12}{2^6}=\frac{12}{64}=\frac{3}{16}.

Original Explanation

We have 4 forms that the sequence can be in, which are HHHHHH---, HHH-HHH--, HHH--HHH-, and HHH---HHH. Note that the first and second are respectively the reflection of the fourth and third sequences, so we can just do the first two sequences and then multiply by 22. For the first sequence, the 4th flip must be tails, but the other two can be either parity, so this yields 44 possibilities. For the second outcome, the first and second dashes must be TT, but the last can be either, so this yields 22 outcomes. Therefore, we have a total of 2(4+2)=122(4 + 2) = 12 sample points that have a single run of three heads, so the probability is 1264=316\frac{12}{64} = \frac{3}{16}.