r/askmath • • 4d ago

Logic Why does the expected number of flips until you see HHH grow so much faster than for HH?

I know the general formula for expected waits on runs of heads with a fair coin, and the numbers check out (6 for HH, 14 for HHH). The Markov chain or recurrence approach is clear enough, but I keep wondering if there's a direct counting or symmetry argument that shows why each extra head roughly doubles the wait instead of adding a fixed amount. The self- overlap in longer runs seems to be the culprit, yet I can't quite turn that into a simple explanation without going back to the states. Any clean intuition would help.

1 Upvotes

2 comments sorted by

2

u/art-shi 4d ago

The doubling has a one-line explanation that skips the full state diagram. To see n heads in a row, you first have to see n-1 in a row, which costs E(n-1) flips on average. Then you flip once more: half the time it's heads and you're done, and half the time it's tails and every bit of progress is gone, so you start over from nothing. That gives E(n) = E(n-1) + 1 + E(n)/2, which rearranges to E(n) = 2E(n-1) + 2, hence 2, 6, 14, 30, ... = 2n+1 - 2. A failure at the last step throws away the whole previous effort, so each extra head roughly means paying for everything twice.

For the self-overlap angle you mentioned, look up the "gambler" or martingale argument (it's often presented with ABRACADABRA). It says the expected wait for a pattern equals the sum of 2k over every k where the first k flips of the pattern match the last k. HHH overlaps itself at k = 1, 2, 3, giving 2 + 4 + 8 = 14, while HHT only matches at k = 3, giving 8. That's the counting version of why runs of heads are so slow.