← All animations

🎰 The Law of Large Numbers

Flip a fair coin a few times and the share of heads lurches all over the place. Flip it ten thousand times and that share settles inexorably toward one half. That pull toward the true probability — the Law of Large Numbers — is why casinos and insurers win in the long run. But it is also widely misread: the average converges, yet the raw gap between heads and tails usually grows. The coin has no memory, and no run is "due" to even out.

1. The running proportion settles toward the truth

We flip a coin again and again and plot the proportion of heads so far against the number of flips. Early on, one or two lucky flips swing the line wildly. As flips pile up, each new flip barely nudges the average, and the line homes in on the coin's true bias p. Drag the bias slider to make the coin unfair — the line still converges, just to a different level.

p = 0.50 0 flips · running avg —

2. The trap: the gap (heads − tails) drifts away from zero

The gambler's fallacy says a long run of tails makes heads "due." It feels right because the proportion does head back to p. But watch the absolute difference between the head count and the tail count. It is a random walk: each flip steps it +1 or −1 with no memory of the past. Far from shrinking to zero, its typical size grows — roughly like √n. The same plot below tracks both: the proportion (teal, converging) and the running gap (gold, wandering off). The dashed gold band marks ±√n.

0 flips · gap 0 · √n band ±0

3. What it does — and doesn't — promise

The Law of Large Numbers is a statement about averages at scale, not about short-term fairness.