Coin Flips and the Law of Large Numbers

Flip a coin again and again and watch two things: the share of heads, and the gap between heads and tails. The share settles near one half, yet the gap tends to widen. Odd, right?

0 flips: 0 heads, 0 tails (share of heads 0.0%, gap 0)

100%50%0%

Share of heads (dashed: 50%)

+100−10

Heads − tails (dashed: square root of flips, up and down)

With a coin that lands heads and tails equally often, the share of heads gets closer to 0.5 as flips pile up (the law of large numbers). But the gap between heads and tails typically wanders by about the square root of the number of flips (the number that, times itself, gives the flips: 10 for 100 flips), so it tends to widen. The share is the gap divided by the number of flips, which is why it still settles near 0.5.

How to play

Press "Flip" to flip the coin once, or "Auto" to keep flipping. The top chart shows the share of heads. The bottom chart shows heads minus tails. Dashed lines are guides. Your goal is to spot how differently the two charts behave.

Learn more

With a coin that lands heads and tails equally often, the share of heads gets closer to 0.5 as flips pile up (the law of large numbers). But the gap between heads and tails typically wanders by about the square root of the number of flips (the number that, times itself, gives the flips: 10 for 100 flips), so it tends to widen. The share is the gap divided by the number of flips, which is why it still settles near 0.5.

Read more about it: Thinking with chance and data →