Quoto

Learn / Library / Probability

Streak of heads somewhere

ProbabilityHard

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Count the complement: sequences with no streak of heads, by looking at how a sequence ends.

Solution
  1. Let be the number of sequences of length with no heads in a row.
  2. Such a sequence ends in tails, in tails then one heads, or in tails then heads, so .
  3. The start values are , and .
  4. Then , and .
  5. The sequences with a streak number , so the probability is , which is .

Answer: