Skip to content

The law of large numbers

5 min read

Short answer

The law of large numbers says that as the number of independent trials nn grows, the sample average Xˉn\bar X_n gets closer and closer to the true mean μ\mu. It is about averages and proportions, not about individual results: it does not mean that a streak must be "balanced out" by the opposite outcome.

Bar chart101001k10kStandard error of the proportion of heads, fair coin
The typical gap between the observed proportion and 0.5 shrinks like 1/√n: ten times more flips cuts the error by only about 3.

How fast it converges

The typical error of an average is the standard error σ/n\sigma/\sqrt n. For a fair coin, the proportion of heads has standard error 0.25/n=0.5/n\sqrt{0.25/n}=0.5/\sqrt n: about 0.05 after 100 flips and 0.005 after 10,000. Convergence is real but slow: to cut the error by 10, you need 100 times more data.

Link to the central limit theorem

The law of large numbers says where the average ends up. The central limit theorem describes how it fluctuates around that value: approximately normal with the standard error above.

Worked example

A fair die has mean 3.5 and variance 3512\tfrac{35}{12}. For the average of 1000 rolls, estimate the standard error.

σ=35/12≈1.708\sigma=\sqrt{35/12}\approx1.708, so σ1000≈1.70831.62≈0.054.\frac{\sigma}{\sqrt{1000}}\approx\frac{1.708}{31.62}\approx0.054. Typically, the average of 1000 rolls is within about 0.050.05 of 3.5 and about 95% of the time within roughly 0.110.11.

Try it yourself

How many times more flips do you need to cut the standard error of a proportion in half?

Show the answer

Four times as many. The error is proportional to 1/n1/\sqrt n, so halving it requires n\sqrt n to double, which means nn must quadruple.

Keep going with practice

Vidi's interactive distribution plot helps you see averages settling down as the sample size grows.