Category: Probability Level: 301
heads / flips → 0.5 as flips → ∞
The share of heads swings wildly over a few flips and settles near one half over many. The swings shrink like 1 over the square root of the number of flips.
Ten flips gave 8 heads. The coin is fair; small samples just swing. One flip is a big deal in a small crowd, so the running share jumps every time.
8 heads / 10 flips = 0.8
Plot the share after each of the first 20 flips. It wanders well away from one half.
share after 20 flips = 0.75
Over 200 flips the line still wobbles, but each new flip moves it less. One flip out of 200 barely nudges the average.
share after 200 flips = 0.570
Over 2000 flips the early swings squeeze against the left edge, and the line hugs one half.
share after 2000 flips = 0.496 ≈ 0.5
The shaded funnel is one half plus or minus 1/√n, where most runs stay. Four times the flips makes the funnel half as wide.
0.5 ± 1/√(n)
cd svg-generator python3 -m svgmath render law-of-large-numbers --out /tmp/law-of-large-numbers
Source: svgmath/diagrams/probability.py