Quoto

Learn / Library / Expected value

Heads then tails

Expected valueEasy

A fair coin is flipped repeatedly. What is the expected number of flips until a heads is immediately followed by a tails (the pattern )?

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

Split the wait into stages: first get a heads, then get a tails right after it.

Solution
  1. Reaching the first heads takes flips on average.
  2. From then on, each flip is tails with probability and ends the game; a heads simply leaves you in the same state, so the second stage also takes flips on average.
  3. The total is .

Answer: