Skip to content

Why the law of large numbers holds

7 min read

Short answer

The sample mean Xˉn\bar X_n of independent trials has the same expected value μ\mu as one trial, but its variance shrinks like σ2/n\sigma^2/n. Chebyshev's inequality turns that shrinking spread into the statement that Xˉn\bar X_n is very likely within any fixed distance of μ\mu once nn is large.

Bar chartn=1n=10n=100n=1000n=10000Spread of the average of n fair-coin flips: σ/√n
The standard deviation of the sample mean falls with the square root of n, so the average clusters ever more tightly around the true mean.

The variance of an average

Let X1,…,XnX_1,\dots,X_n be independent with mean μ\mu and variance σ2\sigma^2. Then E[Xˉn]=μE[\bar X_n]=\mu, and because variances of independent variables add,

Var⁡(Xˉn)=1n2⋅nσ2=σ2n.\operatorname{Var}(\bar X_n)=\frac{1}{n^2}\cdot n\sigma^2=\frac{\sigma^2}{n}.

Averaging does not move the center; it only squeezes the spread, by a factor of n\sqrt n in standard deviation.

Chebyshev closes the argument

Chebyshev's inequality says any random variable YY with mean mm and variance vv satisfies P(∣Y−m∣≥ε)≤v/ε2P(|Y-m|\ge\varepsilon)\le v/\varepsilon^2. Apply it to Xˉn\bar X_n:

P(∣Xˉn−μ∣≥ε)≤σ2nε2→n→∞0.P\big(|\bar X_n-\mu|\ge\varepsilon\big)\le\frac{\sigma^2}{n\varepsilon^2}\xrightarrow[n\to\infty]{}0.

For every tolerance ε>0\varepsilon>0, the chance of missing μ\mu by more than ε\varepsilon can be made as small as you like. This is the weak law of large numbers (it assumes finite variance here; stronger versions need only a finite mean).

What it does not say

The law is about the average, not the raw count. After 1000 flips the number of heads typically differs from 500 by about 1000/2≈16\sqrt{1000}/2\approx16, and this absolute gap actually grows with nn, while the proportion of heads converges.

There is no force "correcting" past streaks. Future flips are independent of the past, which is why believing a tails is "due" after many heads (the gambler's fallacy) is wrong. The average recovers because new flips dilute the old ones, not because the sequence compensates.

Worked example

A fair coin is flipped n=1000n=1000 times. Use Chebyshev to bound the chance that the fraction of heads differs from 12\tfrac12 by at least 0.050.05.

Each flip has σ2=14\sigma^2=\tfrac14. The bound is

σ2nε2=0.251000⋅0.0025=0.1.\frac{\sigma^2}{n\varepsilon^2}=\frac{0.25}{1000\cdot0.0025}=0.1.

So the probability is at most 10%10\%. The true value is far smaller, around 0.2%0.2\% (about 3.23.2 standard deviations), because Chebyshev is a guarantee that works for every distribution and so is loose for a specific one.

Try it yourself

How many fair-coin flips guarantee, by Chebyshev, that the proportion of heads is within 0.10.1 of 12\tfrac12 with probability at least 0.990.99?

Show the answer

Need 0.25n(0.1)2≤0.01\tfrac{0.25}{n(0.1)^2}\le0.01, so n≥0.250.01⋅0.01=2500n\ge\tfrac{0.25}{0.01\cdot0.01}=2500 flips.

Keep going with practice

Vidi's probability lessons build the variance rules this argument depends on.