Learn / Library / Probability
Streak of heads somewhere
A fair coin is tossed times, with independent tosses. What is the probability that at least heads in a row appear somewhere in the sequence?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Count the complement: sequences with no streak of heads, by looking at how a sequence ends.
Solution
- Let be the number of sequences of length with no heads in a row.
- Such a sequence ends in tails, in tails then one heads, or in tails then heads, so .
- The start values are , and .
- Then , and .
- The sequences with a streak number , so the probability is , which is .
Answer: