Σ ProbaLab
Home Probability Coin Streak Probability
Probability · Coin

Coin Streak Probability

Three things in one page: the plain probability of flipping N heads in a row; the expected number of flips to see a streak; and an honest simulation of what happens if you try to exploit streaks with the classic Martingale doubling strategy. As a bonus the St. Petersburg paradox calculator shows why "infinite expected value" games don't actually pay infinite.

Streak & wait

P(streak)
—
E(flips)
—
P(streak within 1 / p^N flips)
—

E(flips) = (p-N − 1)/(1 − p)   (geometric waiting time for runs of length N).

Martingale ruin

Ruin rate
—
Goal hit rate
—
Median flips
—

Streak probability curve

St. Petersburg paradox (truncated at T)

Reward doubles every head before the first tail. Expected reward diverges as T → ∞, but realistic payouts are bounded.

Expected value
—
Median payout
—
Advertisement slot · natural placement below the calculator

Method note

Who is this for?

Stats students

Run-length distributions are classic in Markov-chain modules. The closed-form waiting time and the St. Petersburg puzzle are exam-favourites.

Gambling-curious

If you have ever wondered "could I really be that unlucky", the ruin rate column will give you a numeric answer — not vibes.

Decision theorists

St. Petersburg exhibits why unbounded-looking expectations are not a foundation for rational pricing when median payouts stay tiny.

Interpretation

A streak of 10 heads in fair coin flipping happens with probability 0.097% — but in 1,000 flips you almost certainly see some 4- to 6-head streak. Streaks are not anomalies of the universe, they are the natural consequence of large samples. The right mental model is "what's the longest run I should expect?" rather than "what's wrong with my RNG?".

When not to trust this

FAQ

Why does 10 heads in a row feel so common?

Because if you flip 1,000 coins you expect about 9 streaks of length 7 — and one streak of 9 or 10. We remember the streaks and forget the long runs of tails that precede them.

Why is Martingale ruin still under 100% at p=0.49?

Because the stop-successes condition. If you have to win only 10 in a row to cash out, most gamblers actually do — the problem is what they do on the 11th cycle.

What's the resolution to St. Petersburg?

Three mainstream answers: (1) expected value is the wrong criterion — use expected utility with a concave utility function (Bernoulli, 1738); (2) truncations reflect real constraints (Casino can't pay 2^T); (3) risk-aversion in the wager itself bounds fair price.

Birthday Paradox

Same logic, bigger numbers.

Kelly Criterion

What to bet if you can size it.

Dice Matrix

Multiply the streak logic.