Quoto

Learn / Library / Probability

Waiting for a long run

ProbabilityHard

A fair coin is tossed repeatedly with independent tosses. What is the expected number of tosses until heads in a row appear for the first time?

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

Define states by the current length of the heads streak and write linear equations for the expected remaining tosses.

Solution
  1. Let , , be the expected additional tosses when the current streak of heads has length , , .
  2. Conditioning on the next toss gives , and .
  3. The last equation simplifies to .
  4. Substituting the first equation into the second gives , and with this yields .
  5. Therefore .

Answer: