The Law of Large Numbers

⚡ Key Takeaways

One-line statement: As the number of independent trials grows, the sample average converges to the true expected value. Key result in words: Random fluctuations average out: the empirical mean Xˉn\bar{X}_n of nn i.i.d. random variables approaches the population mean μ\mu as n→∞n \to \infty. Where it applies: Probability, statistics, gambling theory, Monte Carlo methods, insurance, statistical mechanics — anywhere repeated random sampling occurs. Who/when: First proved by Jacob Bernoulli (published posthumously, 1713) for the binomial case; generalized through Chebyshev (1867), Khinchin (1929), and Kolmogorov (1930s).

💡 The Core Insight

Individual random outcomes are unpredictable, but their average is not. As you accumulate more independent samples, the contributions of unusual outcomes are diluted by a factor of 1/n1/n, while the systematic center μ\mu stays fixed. The randomness doesn't vanish — it gets divided away. The spread of the sample mean shrinks (its standard deviation falls like 1/n1/\sqrt{n}), forcing the average into an ever-tightening neighborhood of the true mean.

Formal Statement

DefinitionSample Mean and Setup

Let X1,X2,…,XnX_1, X_2, \dots, X_n be random variables on a common probability space. The sample mean (empirical average) is

1
Xˉn=1n∑i=1nXi.\quad \bar{X}_n = \frac{1}{n}\sum_{i=1}^{n} X_i.

Derivation hint: This is just an arithmetic average of realized values, promoted to a random variable since each XiX_i is random. Here:

  • XiX_i — the ii-th observation, a real-valued random variable;
  • nn — the sample size (number of trials);
  • μ=E[Xi]\mu = \mathbb{E}[X_i] — the common (population) mean, assumed finite, ∣μ∣<∞|\mu| < \infty;
  • σ2=Var⁡(Xi)\sigma^2 = \operatorname{Var}(X_i) — the common variance (assumed finite for the elementary version);
  • "i.i.d." — independent and identically distributed: the XiX_i share one distribution and are mutually independent.
TheoremWeak Law of Large Numbers (WLLN)

Let X1,X2,…X_1, X_2, \dots be i.i.d. with finite mean μ\mu. Then Xˉn\bar{X}_n converges to μ\mu in probability: for every ε>0\varepsilon > 0,

2
lim⁡n→∞P ⁣( ∣Xˉn−μ∣≥ε )=0.\quad \lim_{n\to\infty} \mathbb{P}\!\left(\,\left|\bar{X}_n - \mu\right| \ge \varepsilon\,\right) = 0.

Derivation hint: Equivalently P(∣Xˉn−μ∣<ε)→1\mathbb{P}(|\bar X_n - \mu| < \varepsilon) \to 1; this is the definition of convergence in probability, Xˉn→Pμ\bar X_n \xrightarrow{P} \mu. (Khinchin's theorem requires only finite mean; the elementary proof below additionally assumes finite variance.)

TheoremStrong Law of Large Numbers (SLLN)

Let X1,X2,…X_1, X_2, \dots be i.i.d. with finite mean μ\mu (Kolmogorov, 1933). Then Xˉn\bar{X}_n converges to μ\mu almost surely:

3
P ⁣(lim⁡n→∞Xˉn=μ)=1.\quad \mathbb{P}\!\left(\lim_{n\to\infty} \bar{X}_n = \mu\right) = 1.

Derivation hint: Almost sure convergence means the set of sample sequences whose averages fail to converge to μ\mu has probability zero — a strictly stronger conclusion than (2).

⚠️ Weak vs. Strong — They Are Not the Same

The SLLN implies the WLLN, but not conversely. The WLLN says: for each large nn, the average is probably close to μ\mu. The SLLN says: with probability 1, the average settles down and stays close, eventually, forever. There exist sequences satisfying the WLLN but not the SLLN. The distinction is the difference between convergence in probability and almost-sure convergence.

Why It Holds / Derivation

ProofWLLN via Chebyshev's Inequality (finite-variance case)

Step 1 — Mean of the sample mean. By linearity of expectation and the identical distribution,

4
E[Xˉn]=1n∑i=1nE[Xi]=1n⋅nμ=μ.\quad \mathbb{E}[\bar{X}_n] = \frac{1}{n}\sum_{i=1}^{n}\mathbb{E}[X_i] = \frac{1}{n}\cdot n\mu = \mu.

Derivation hint: Expectation is linear regardless of dependence; each E[Xi]=μ\mathbb{E}[X_i]=\mu.

Step 2 — Variance of the sample mean. Using independence (so covariances vanish) and Var⁡(cX)=c2Var⁡(X)\operatorname{Var}(cX) = c^2\operatorname{Var}(X),

5
Var⁡(Xˉn)=1n2∑i=1nVar⁡(Xi)=1n2⋅nσ2=σ2n.\quad \operatorname{Var}(\bar{X}_n) = \frac{1}{n^2}\sum_{i=1}^{n}\operatorname{Var}(X_i) = \frac{1}{n^2}\cdot n\sigma^2 = \frac{\sigma^2}{n}.

Derivation hint: Var⁡ ⁣(1n∑Xi)=1n2Var⁡ ⁣(∑Xi)\operatorname{Var}\!\big(\tfrac1n\sum X_i\big)=\tfrac1{n^2}\operatorname{Var}\!\big(\sum X_i\big); independence makes the variance of the sum the sum of variances.

Step 3 — Apply Chebyshev's inequality. For any random variable YY with mean μY\mu_Y and variance σY2\sigma_Y^2, and any ε>0\varepsilon>0, P(∣Y−μY∣≥ε)≤σY2/ε2\mathbb{P}(|Y-\mu_Y|\ge\varepsilon)\le \sigma_Y^2/\varepsilon^2. With Y=XˉnY = \bar X_n:

6
P ⁣(∣Xˉn−μ∣≥ε)  ≤  Var⁡(Xˉn)ε2=σ2n ε2.\quad \mathbb{P}\!\left(\left|\bar{X}_n - \mu\right| \ge \varepsilon\right) \;\le\; \frac{\operatorname{Var}(\bar X_n)}{\varepsilon^2} = \frac{\sigma^2}{n\,\varepsilon^2}.

Derivation hint: Substitute (4) and (5) into Chebyshev's bound; the only nn-dependence is the 1/n1/n factor.

Step 4 — Take the limit. Fix ε>0\varepsilon>0. As n→∞n\to\infty, the right side σ2/(nε2)→0\sigma^2/(n\varepsilon^2)\to 0. Since probabilities are nonnegative, the squeeze theorem gives

7
lim⁡n→∞P ⁣(∣Xˉn−μ∣≥ε)=0,\quad \lim_{n\to\infty}\mathbb{P}\!\left(\left|\bar{X}_n - \mu\right| \ge \varepsilon\right) = 0,

Derivation hint: 0≤P(⋯ )≤σ2/(nε2)→00 \le \mathbb{P}(\cdots) \le \sigma^2/(n\varepsilon^2)\to 0 forces the middle term to 0. which is exactly (2). ■\blacksquare

∎
ProofSketch of the SLLN (Kolmogorov, finite 4th moment shortcut)

The full proof uses Kolmogorov's maximal inequality and the three-series theorem. A digestible route (assuming E[Xi4]<∞\mathbb{E}[X_i^4]<\infty, WLOG μ=0\mu=0) bounds the fourth moment of the partial sum Sn=∑XiS_n=\sum X_i:

8
E[Sn4]=n E[X14]+3n(n−1)(E[X12])2≤C n2.\quad \mathbb{E}[S_n^4] = n\,\mathbb{E}[X_1^4] + 3n(n-1)\big(\mathbb{E}[X_1^2]\big)^2 \le C\,n^2.

Derivation hint: Expand (∑Xi)4(\sum X_i)^4; independence and E[Xi]=0\mathbb{E}[X_i]=0 kill all terms except those with each index appearing an even number of times — giving nn fourth-power terms and 3n(n−1)3n(n-1) paired-square terms. Then by Markov's inequality applied to Xˉn4=Sn4/n4\bar X_n^4 = S_n^4/n^4,

9
∑n=1∞P ⁣(∣Xˉn∣≥ε)≤∑n=1∞E[Sn4]n4ε4≤Cε4∑n=1∞1n2<∞.\quad \sum_{n=1}^{\infty}\mathbb{P}\!\left(|\bar X_n|\ge\varepsilon\right) \le \sum_{n=1}^{\infty}\frac{\mathbb{E}[S_n^4]}{n^4\varepsilon^4} \le \frac{C}{\varepsilon^4}\sum_{n=1}^{\infty}\frac{1}{n^2} < \infty.

Derivation hint: P(∣Xˉn∣≥ε)=P(Xˉn4≥ε4)≤E[Xˉn4]/ε4\mathbb{P}(|\bar X_n|\ge\varepsilon)=\mathbb{P}(\bar X_n^4\ge\varepsilon^4)\le \mathbb{E}[\bar X_n^4]/\varepsilon^4, then use (8); the resulting series is a convergent pp-series (p=2p=2). By the Borel–Cantelli lemma, since the probabilities are summable, ∣Xˉn∣≥ε|\bar X_n|\ge\varepsilon occurs only finitely often with probability 1. Letting ε→0\varepsilon\to0 through a sequence yields Xˉn→0\bar X_n\to0 almost surely. Kolmogorov's achievement was removing the moment assumptions down to just finite mean. ■\blacksquare

∎
mathematician · Jacob Bernoulli | 1655–1705

The Swiss mathematician Jacob (Jakob) Bernoulli proved the first version of the LLN — his "Golden Theorem" — in Ars Conjectandi, published posthumously in 1713 by his nephew Nicolaus. He showed that for repeated trials of a binary event with probability pp, the observed frequency converges (in probability) to pp, and crucially he derived an explicit bound on how many trials guarantee a given accuracy with given confidence — a remarkably modern, quantitative result. Bernoulli reportedly worked on the theorem for twenty years; he regarded it as so important that he wanted it to anchor probability as a serious mathematical discipline rather than a gambler's toy.

Building Intuition

🧠 Why Averages Are Tamer Than Individuals

Imagine each XiX_i as a noisy vote about the true value μ\mu. A single vote can be wildly off. But independent errors point in random directions: some too high, some too low. When you average, the errors partially cancel. The key quantitative fact is (5): the standard deviation of the average is σ/n\sigma/\sqrt{n}, not σ\sigma. To halve your uncertainty you need four times the data. This n\sqrt n scaling is the price and the promise of the LLN — convergence is guaranteed but slow. A useful mental image: the histogram of a single XX has fixed width σ\sigma. The histogram of Xˉn\bar X_n is centered at the same place μ\mu but is narrower by n\sqrt n, collapsing toward a spike at μ\mu.

Figure
Concentration of the sample mean: the distribution of Xˉn\bar X_n narrows around μ\mu as nn grows
μ value of mean n small (wide) n medium n large (spike at μ) width ∝ 1/√n

Worked Examples

ExampleFair Coin: Frequency of Heads

Given: A fair coin, P(heads)=p=0.5\mathbb{P}(\text{heads})=p=0.5. Let Xi=1X_i=1 if toss ii is heads, else 00 (a Bernoulli variable). Here μ=p=0.5\mu = p = 0.5 and σ2=p(1−p)=0.25\sigma^2 = p(1-p) = 0.25. We flip it n=10,000n = 10{,}000 times.

Question: Bound the probability that the observed fraction of heads Xˉn\bar X_n deviates from 0.50.5 by at least ε=0.01\varepsilon = 0.01.

Steps: 1. Variance of the mean (eq. 5): Var⁡(Xˉn)=σ2/n=0.25/10000=2.5×10−5\operatorname{Var}(\bar X_n) = \sigma^2/n = 0.25/10000 = 2.5\times 10^{-5}. 2. Chebyshev bound (eq. 6): P(∣Xˉn−0.5∣≥0.01)≤0.2510000×(0.01)2=0.251.0=0.25.\mathbb{P}(|\bar X_n - 0.5|\ge 0.01) \le \dfrac{0.25}{10000 \times (0.01)^2} = \dfrac{0.25}{1.0} = 0.25. 3. Interpretation: at least a 75% chance the head-fraction lands within [0.49,0.51][0.49, 0.51]. (Chebyshev is loose; the Central Limit Theorem gives the true probability ≈0.0455\approx 0.0455, i.e. ~95% inside.)

Answer: P(∣Xˉn−0.5∣≥0.01)≤0.25\boxed{\mathbb{P}(|\bar X_n - 0.5|\ge 0.01) \le 0.25} (dimensionless probability). The LLN guarantees this bound →0\to 0 as n→∞n\to\infty.

ExampleMonte Carlo Estimation of an Integral

Given: Estimate I=∫01ex2 dxI = \int_0^1 e^{x^2}\,dx by sampling Ui∼Uniform(0,1)U_i \sim \text{Uniform}(0,1) and setting Xi=eUi2X_i = e^{U_i^2}. Then μ=E[Xi]=∫01ex2dx=I\mu = \mathbb{E}[X_i] = \int_0^1 e^{x^2}dx = I exactly, so Xˉn→I\bar X_n \to I by the SLLN. Suppose we draw n=1,000,000n = 1{,}000{,}000 samples and find Xˉn=1.4627\bar X_n = 1.4627, with sample standard deviation s=0.494s = 0.494.

Question: Estimate II and quantify the error.

Steps: 1. Point estimate: I^=Xˉn=1.4627\hat I = \bar X_n = 1.4627. 2. Standard error of the mean: SE=s/n=0.494/106=0.494/1000=4.94×10−4\text{SE} = s/\sqrt n = 0.494/\sqrt{10^6} = 0.494/1000 = 4.94\times 10^{-4}. 3. Approximate 95% interval (CLT): I^±1.96 SE=1.4627±0.00097\hat I \pm 1.96\,\text{SE} = 1.4627 \pm 0.00097. 4. The true value is I≈1.4627I \approx 1.4627, inside the interval.

Answer: I≈1.463±0.001\boxed{I \approx 1.463 \pm 0.001} (dimensionless). Reducing the error tenfold requires 100×100\times more samples — the 1/n1/\sqrt n tax.

Common Misconceptions

⚠️ The Gambler's Fallacy

The LLN does not say that deviations get corrected. After 10 heads in a row, tails is not "due." The coin has no memory; future tosses are independent. What actually happens is that the absolute number of excess heads can grow without bound — only the fraction tends to 1/21/2, because we divide by an ever-larger nn. The imbalance is diluted, not repaired.

⚠️ Finite Mean Is Required

If E[∣Xi∣]=∞\mathbb{E}[|X_i|] = \infty, the LLN can fail outright. The sample mean of i.i.d. variables with no finite mean does not converge to anything. Always check the mean exists before invoking the law.

CounterexampleCauchy Distribution — No Convergence

Let X1,X2,…X_1, X_2, \dots be i.i.d. standard Cauchy (density 1π(1+x2)\tfrac{1}{\pi(1+x^2)}). The mean does not exist (the defining integral diverges). A striking fact: the sample mean Xˉn\bar X_n of nn Cauchy variables is itself exactly standard Cauchy, for every nn.

10
Xˉn=1n∑i=1nXi    X1for all n.\quad \bar X_n = \frac{1}{n}\sum_{i=1}^n X_i \;\stackrel{d}{=}\; X_1 \quad \text{for all } n.

Derivation hint: The Cauchy characteristic function is φ(t)=e−∣t∣\varphi(t)=e^{-|t|}; the sum of nn of them has c.f. e−n∣t∣e^{-n|t|}, and dividing by nn rescales t→t/nt\to t/n, returning e−∣t∣e^{-|t|}. So averaging more Cauchy samples does not reduce the spread at all — Xˉn\bar X_n stays as wildly variable as a single observation. The LLN simply does not apply.

Connections

connection · Where the LLN Sits in Probability

The LLN is the first of the two great limit theorems. Its partner, the Central Limit Theorem, refines it: while the LLN says Xˉn→μ\bar X_n \to \mu, the CLT describes the shape of the fluctuation, asserting n(Xˉn−μ)/σ→N(0,1)\sqrt n(\bar X_n - \mu)/\sigma \to \mathcal N(0,1) in distribution. The LLN sets the target; the CLT measures the wobble around it at scale 1/n1/\sqrt n. The proof of the WLLN relies on Chebyshev's Inequality and on the Variance of a sum of Independent Random Variables. The SLLN rests on the Borel–Cantelli Lemma. Both laws presuppose a clean notion of Expected Value and the distinction between Convergence in Probability and Almost Sure Convergence.

Real-World Applications

🔬 Where the Law of Large Numbers Operates

Historical Development

⏳ History
- 1713 — Jacob Bernoulli's Ars Conjectandi (posthumous) proves the "Golden Theorem," the WLLN for binomial trials, with explicit error bounds.
- 1733–1738 — Abraham de Moivre develops the normal approximation to the binomial, foreshadowing both the LLN's refinement and the CLT.
- 1810s — Siméon Denis Poisson coins the phrase "la loi des grands nombres" (the law of large numbers) and extends Bernoulli's result to varying probabilities.
- 1837 — Poisson publishes a generalized version allowing non-identical trial probabilities.
- 1867 — Pafnuty Chebyshev gives a clean, general proof of the WLLN using his inequality, requiring only finite variance and not the binomial structure.
- 1909 — Émile Borel proves a Strong Law for binary digits (normal numbers), the first almost-sure version.
- 1917–1929 — Francesco Cantelli and Aleksandr Khinchin sharpen the strong and weak laws; Khinchin's WLLN needs only a finite mean.
- 1930–1933 — Andrey Kolmogorov proves the definitive SLLN: for i.i.d. variables, finite mean is necessary and sufficient for almost-sure convergence; he also gives his maximal inequality and three-series theorem.
- 1933 — Kolmogorov's Grundbegriffe axiomatizes probability via measure theory, placing the LLN on fully rigorous foundations.

Subtleties & Limits

open-problem · Boundaries and Refinements

The classical LLN is settled, but its frontiers remain active. (1) Non-i.i.d. and dependent data: for stationary ergodic sequences, Birkhoff's ergodic theorem plays the LLN's role; for martingales there are martingale strong laws; for mixing or long-range-dependent processes, conditions are delicate and incomplete. (2) Rates of convergence: the LLN gives no rate by itself; the Berry–Esseen theorem, large-deviation principles (Cramér's theorem), and the law of the iterated logarithm (which pins the exact fluctuation size 2σ2nlog⁡log⁡n\sqrt{2\sigma^2 n \log\log n} of SnS_n) refine it, but optimal constants under minimal moments are still studied. (3) Heavy tails: when variance is infinite but the mean is finite, convergence holds but is slow and CLT-style normalization fails; the right framework is stable laws. (4) High-dimensional and matrix settings: laws of large numbers for random matrices, empirical measures, and U-statistics extend the idea but require new tools and have open quantitative questions.

See Also

Central Limit Theorem · Chebyshev's Inequality · Borel–Cantelli Lemma · Expected Value · Modes of Convergence · Monte Carlo Methods · Law of the Iterated Logarithm · Ergodic Theory