Quant GT
Browse all lessons
Section 7 · Lesson 7.1

Law of Large Numbers

Why sample averages converge to expectations as n grows.

The Law of Large Numbers (LLN) is the mathematical justification for "more data is better." For independent identically distributed random variables X1,X2,X_1, X_2, \dots with finite mean μ\mu, the sample average converges to μ\mu:

Xˉn=1ni=1nXiμas n\bar{X}_n = \frac{1}{n}\sum_{i=1}^{n} X_i \to \mu \quad \text{as } n \to \infty

There are two flavors. The weak LLN says convergence holds in probability — for any ϵ>0\epsilon > 0, P(Xˉnμ>ϵ)0P(|\bar{X}_n - \mu| > \epsilon) \to 0. The strong LLN says it holds almost surely — the random sequence converges with probability 11. The strong version is genuinely stronger; the weak follows from it.

LLN is what makes Monte Carlo simulation work, what justifies A/B testing, and what underpins empirical risk estimation. Average enough samples and you get the expectation, with the precision improving like 1/n1/\sqrt{n} (per the CLT).

Watch out: LLN requires finite mean. For Cauchy and other distributions where E[X]E[X] doesn't exist, sample averages never stabilize — they keep jumping by orders of magnitude as nn grows.