5 次抛硬币恰好出现一段 3 连正面
Three Repeat I
题目详情
公平硬币抛 5 次。求“某处恰好出现连续 3 个正面(H)”的概率。
A fair coin is flipped times. Find the probability of obtaining exactly consecutive heads somewhere in the flips.
解析
恰好出现一段 HHH 的模式只能是:HHHT?、THHH T、?THHH(并且两侧不能再扩展成更长连串)。
计数可得共有 5 个符合序列,因此概率为
Original Explanation
Note that the sequence must be in the form . For the first form, the first dash must be so that the run doesn't extend. The second dash can be anything, so this gives 2 options. For the second form, both dashes must be tails because the is adjacent to both dashes, so this is just one possibility. The last sequence must have a in the second dash so that the run doesn't extend. The first dash can be either outcome, so this gives 2 sequences as well. Therefore, we have 5 sequences corresponding to this outcome, so the probability is .