The strong law of large numbers
Statement
Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space and let \((X_n)_{n\ge1}\) be a sequence of independent, identically distributed (i.i.d.) real random variables on it, with partial sums \(S_n = X_1+X_2+\cdots+X_n\). Then there exists a constant \(\mu\in\mathbb{R}\) such that \(\dfrac{S_n}{n}\to\mu\) almost surely as \(n\to\infty\) if and only if \(\mathbb{E}|X_1|\lt\infty\); and when this holds, \(\mu=\mathbb{E}[X_1]\). Almost sure convergence means \(\mathbb{P}\!\left(\left\{\omega\in\Omega:\lim_{n\to\infty} S_n(\omega)/n = \mu\right\}\right)=1\).
Why it matters
This is the theorem that makes "probability" and "long-run frequency" the same object on a single sample path, not merely on average over many hypothetical repetitions. The weak law only guarantees \(S_n/n\) is probably close to \(\mu\) for each fixed large \(n\); the strong law guarantees that for almost every realisation of the whole infinite sequence, the running average eventually settles at \(\mu\) and stays there. This distinction is what licenses Monte Carlo simulation, empirical estimation of probabilities and moments, and the frequentist interpretation of probability itself.
It is also the prototype of a genuinely measure-theoretic result: its proof cannot be done with characteristic functions or elementary Chebyshev bounds alone, and it forces the machinery of martingale-like maximal inequalities, tail-event zero-one laws, and summability lemmas that recur throughout the rest of probability theory (martingale convergence, ergodic theorems).
Hypotheses
Proof
Result
Reading. For an i.i.d. sequence, almost every infinite sample path of running averages converges, and converges to exactly one number, the common mean — provided that mean is finite in the first place. If the mean is not finite (or does not exist by symmetry-cancellation, as for Cauchy), no such almost-sure stabilisation happens.
Scope. Stated here for real-valued i.i.d. sequences on an arbitrary probability space; it extends verbatim to \(\mathbb{R}^d\)-valued or separable Banach-valued i.i.d. sequences with \(\mathbb{E}\|X_1\|\lt\infty\) (apply the scalar result coordinatewise, or component-wise against a countable norming set). It does not by itself give a rate of convergence — that is the content of the law of the iterated logarithm and of finite-sample concentration inequalities, which require more than a finite first moment.
Corollaries & converses
- Borel's normal number theorem is the special case \(X_k=\) \(k\)-th binary digit of a Lebesgue-uniform point in \([0,1]\): digit frequencies converge a.s. to \(1/2\) (Problem 2).
- Strong consistency of the sample mean as an estimator: for any i.i.d. sample with finite mean, \(\bar X_n\to\mu\) a.s., and more generally \(\frac1n\sum_k g(X_k)\to\mathbb{E}[g(X_1)]\) a.s. for any measurable \(g\) with \(\mathbb{E}|g(X_1)|\lt\infty\), by applying the theorem to the i.i.d. sequence \(g(X_k)\).
- Glivenko–Cantelli (uniform a.s. convergence of the empirical distribution function) follows from applying this theorem to indicator sequences \(\mathbf{1}_{\{X_k\le t\}}\) at each rational \(t\) and a monotonicity/continuity patching argument.
- Converse direction. The theorem as stated already is an "if and only if" (Step 10 supplies the converse: a.s. convergence to a finite limit forces \(\mathbb{E}|X_1|\lt\infty\)), so there is no separate converse to check — this is one of the few classical theorems that is sharp in both directions.
- The weak law of large numbers is strictly implied by the strong law (a.s. convergence implies convergence in probability), but not conversely: there exist independent, non-identically-distributed sequences obeying a weak law with no strong law (Problem 5 sketches the mechanism).
Fails without
- Drop independence: \(X_k=X\) for all \(k\), \(X\) non-degenerate. \(S_n/n=X\) a.s. for every \(n\); the sequence converges a.s. to the random variable \(X\), not to the constant \(\mathbb{E}[X]\) — the "limit" is not even deterministic.
- Drop finite mean: \(X_k\) i.i.d. standard Cauchy. \(S_n\) has exactly the same Cauchy law as \(nX_1\) for every \(n\) (stability of the Cauchy family under summation and rescaling), so \(S_n/n\) has the standard Cauchy law for every \(n\) — it never settles down, and \(\limsup_n |S_n/n|=\infty\) a.s.
- Drop identical distribution, keep only independence, without Kolmogorov's variance-summability condition: take independent \(X_k\) with \(\mathbb{E}[X_k]=0\) and \(\operatorname{Var}(X_k)\) chosen so \(\sum_k \operatorname{Var}(X_k)/k^2=\infty\) (Problem 5); \(S_n/n\) need not converge a.s. even though each \(X_k\) has mean zero.
Common errors
- Citing the strong law when only the weak law (convergence in probability) has actually been established, or treating them as interchangeable — they differ in the underlying mode of convergence and the strong law needs a genuinely stronger argument (Kolmogorov's inequality, not just Chebyshev's).
- Forgetting the finite-mean hypothesis and applying the theorem to heavy-tailed data (e.g. certain financial return models, or Cauchy-like ratios) where the sample mean simply does not stabilise no matter how large \(n\) is.
- Believing the theorem gives a convergence rate ("after \(n\) samples the error is about such-and-such") — it asserts eventual almost-sure convergence with no quantitative bound; rates require finite variance and the CLT/LIL or Hoeffding-type inequalities.
- Confusing "almost sure" with "for all \(\omega\)": the exceptional null set of paths on which convergence fails is genuinely nonempty in general (only excluded because it has probability zero), not vacuous.
- Applying the truncation lemma (Step 6) with the wrong exponent, e.g. assuming \(\mathbb{E}[X_1^2]\lt\infty\) is needed — it is not; the whole point of the truncation argument is to make do with only \(\mathbb{E}|X_1|\lt\infty\).
Discussion
The theorem is due to Kolmogorov (1930s), sharpening earlier weak laws of Bernoulli, Chebyshev, and Khinchin, and earlier strong-law special cases due to Cantelli and Borel (who proved the normal-number case). Kolmogorov's contribution was to isolate the precise moment condition — finite first moment, nothing more — as necessary and sufficient, using the maximal inequality that now bears his name together with a summability trick (Kronecker's Lemma) that converts a.s. convergence of a weighted series into a.s. convergence of a Cesàro-type average.
A different, shorter proof due to Etemadi (1981) proves the same theorem for merely pairwise independent, identically distributed sequences, using only a truncation and the Borel–Cantelli lemmas plus a subsequence-and-interpolation argument, avoiding Kolmogorov's inequality entirely. That the conclusion survives weakening independence to pairwise independence is a genuinely deeper fact about the structure of the proof (it shows full independence was never really needed for the iid case), and is a standard illustration that the "obvious" proof strategy is not always the most economical one.
The strong law is best understood as the ergodic theorem for the shift map on sequence space with the product measure induced by an iid law: Birkhoff's Pointwise Ergodic Theorem, applied to the measure-preserving shift \(T(x_1,x_2,\ldots)=(x_2,x_3,\ldots)\) and the coordinate function \(f(x)=x_1\), gives exactly \(\frac1n\sum_{k=0}^{n-1} f(T^k x)=S_n/n\to\mathbb{E}[X_1]\) a.s., because the shift on an iid product measure is ergodic. Kolmogorov's SLLN is thus the oldest special case of a far larger family of pointwise ergodic theorems.
A common misconception is that the strong law says something about a single large \(n\) — it does not. It is a statement about the tail behaviour of the entire infinite sequence \((S_n/n)_{n\ge1})\) as a path; two sample paths can have wildly different values of \(S_{1000}/1000\) while both eventually converging to \(\mu\). Statements about a single finite \(n\) belong to concentration inequalities (Hoeffding, Bernstein, Chebyshev), which are a logically separate topic even though they are often taught alongside the law of large numbers.
Worked examples
Reading. Averaging \(U_k^2\) over an ever-larger simulated sample computes the integral almost surely in the limit — this is the theoretical justification for basic Monte Carlo integration, and it needs nothing more than \(\mathbb{E}|X_1|\lt\infty\), which is automatic here since \(U_1^2\in[0,1]\) is bounded.
Reading. The plug-in sample-variance estimator converges almost surely to the true variance whenever the true second moment is finite — this is why sample variance is called a strongly consistent estimator, and the proof is nothing more than two applications of the strong law glued together with continuity.
Problems
- Let \(X_1,X_2,\ldots\) be i.i.d. Poisson\((\lambda)\). Show \(\bar X_n\to\lambda\) a.s. and explain why this justifies estimating an unknown Poisson rate by a long-run count average.
Solution
Poisson\((\lambda)\) has \(\mathbb{E}|X_1|=\mathbb{E}[X_1]=\lambda\lt\infty\) since \(X_1\ge0\). The hypotheses of the theorem hold (i.i.d., finite mean), so \(\bar X_n = S_n/n \to \mathbb{E}[X_1]=\lambda\) almost surely. Practically: if arrivals in disjoint unit windows are i.i.d. Poisson\((\lambda)\) counts, the observed long-run average count per window converges, with probability one, to the true rate \(\lambda\), which is exactly the guarantee needed to justify rate estimation from a single long observed record rather than from many independent repetitions of the whole experiment. - (Borel's normal number theorem) For \(x\in[0,1]\) with binary expansion \(x=\sum_{k=1}^\infty d_k(x) 2^{-k}\), let \(D_n(x)=\frac1n\sum_{k=1}^n d_k(x)\) be the frequency of \(1\)-digits among the first \(n\). Show \(D_n(x)\to\tfrac12\) for Lebesgue-almost every \(x\in[0,1]\).
Solution
Equip \([0,1]\) with Lebesgue measure \(\lambda\), which is a probability measure. The digit maps \(X_k(x):=d_k(x)\) are, under \(\lambda\), i.i.d. Bernoulli\((1/2)\) random variables (a standard fact: the binary digits of a Lebesgue-uniform point are independent fair coin flips — this can itself be checked by verifying the joint distribution of any finite digit-block is uniform on \(\{0,1\}^m\), matching independence). Since \(X_k\in\{0,1\}\), \(\mathbb{E}|X_1|=\mathbb{E}[X_1]=\tfrac12\lt\infty\). By the theorem, \(D_n(x)=\frac1n\sum_{k=1}^n X_k(x) \to \mathbb{E}[X_1]=\tfrac12\) for \(\lambda\)-almost every \(x\), which is exactly Borel's statement (with "almost every" meaning "off a Lebesgue-null exceptional set"). - Let \(X_1,X_2,\ldots\) be i.i.d., nonnegative, with \(\mathbb{E}[X_1]=\infty\) (e.g. \(\mathbb{P}(X_1\gt t)=1/t\) for \(t\ge1\)). Show \(S_n/n \to \infty\) almost surely.
Solution
For each \(M\gt0\), let \(X_k^{(M)} = \min(X_k,M)\), an i.i.d. sequence bounded by \(M\), hence with \(\mathbb{E}|X_1^{(M)}|\le M\lt\infty\). By the theorem, \(\frac1n\sum_{k=1}^n X_k^{(M)} \to \mathbb{E}[X_1^{(M)}]\) a.s. Since \(X_k\ge X_k^{(M)}\) pointwise for every \(k\) (as \(X_k\ge0\)), \(S_n/n \ge \frac1n\sum_{k=1}^n X_k^{(M)} \to \mathbb{E}[X_1^{(M)}]\) a.s., so \(\liminf_n S_n/n \ge \mathbb{E}[X_1^{(M)}]\) a.s. for every fixed \(M\). By Monotone Convergence, \(\mathbb{E}[X_1^{(M)}]\uparrow \mathbb{E}[X_1]=\infty\) as \(M\to\infty\), so \(\liminf_n S_n/n=\infty\) a.s., i.e. \(S_n/n\to\infty\) a.s. - Prove the key inequality used in Step 6 of the proof: for \(X_1\ge0\) with \(\mathbb{E}[X_1]\lt\infty\), \(\sum_{k=1}^\infty \frac{1}{k^2}\mathbb{E}\big[X_1^2\mathbf{1}_{\{X_1\le k\}}\big] \le 2\,\mathbb{E}[X_1]\).
Solution
By Tonelli's theorem (all terms nonnegative, so sum and expectation may be exchanged freely): \(\sum_{k=1}^\infty \frac1{k^2}\mathbb{E}\big[X_1^2\mathbf 1_{\{X_1\le k\}}\big] = \mathbb{E}\Big[X_1^2\sum_{k\ge \max(1,\lceil X_1\rceil)} \frac{1}{k^2}\Big]\). For any real \(m\ge1\), comparing the tail sum to an integral gives \(\sum_{k\ge m} k^{-2} \le \int_{m-1}^\infty x^{-2}\,dx \le \frac{2}{m}\) for \(m\ge1\) (since \(\int_{m-1}^\infty x^{-2}dx = \frac1{m-1}\le\frac2m\) for \(m\ge2\), and directly bounded by \(2\) for \(m=1\)). Applying this with \(m=\max(1,\lceil X_1\rceil) \ge \max(1,X_1)\) gives \(X_1^2 \sum_{k\ge m} k^{-2} \le X_1^2 \cdot \frac{2}{\max(1,X_1)} \le 2X_1\) (since \(X_1^2/\max(1,X_1)\le X_1\) always, whether \(X_1\le1\) or \(X_1\gt1\)). Taking expectations, \(\sum_{k=1}^\infty \frac1{k^2}\mathbb{E}[X_1^2\mathbf1_{\{X_1\le k\}}] \le 2\,\mathbb{E}[X_1]\), as required. - Construct independent, mean-zero random variables \(X_1,X_2,\ldots\) (not identically distributed) for which \(\sum_k \operatorname{Var}(X_k)/k^2=\infty\) and for which \(S_n/n\) does not converge to \(0\) almost surely, illustrating that Kolmogorov's variance-summability condition cannot be dropped when identical distribution is dropped.
Solution
Let \(X_k\) be independent with \(\mathbb{P}(X_k=k)=\mathbb{P}(X_k=-k)=\tfrac12\) for each \(k\), so \(\mathbb{E}[X_k]=0\) and \(\operatorname{Var}(X_k)=k^2\). Then \(\operatorname{Var}(X_k)/k^2=1\) for every \(k\), so \(\sum_k \operatorname{Var}(X_k)/k^2=\sum_k 1=\infty\): the summability condition fails badly. Heuristically \(S_n\) is a sum of \(n\) independent terms each of typical size \(\Theta(n)\) (since \(|X_n|=n\) exactly), so \(S_n\) is dominated by its last few terms and does not average down: \(X_n/n=\pm1\) exactly, which does not tend to \(0\), so \(S_n/n = \frac{n-1}{n}\cdot\frac{S_{n-1}}{n-1} + \frac{X_n}{n}\) cannot converge to any limit \(L\) unless \(X_n/n\to0\) — which it manifestly does not, since \(|X_n|/n\equiv1\). Hence \(S_n/n\) does not converge a.s. (its fluctuation of size \(\pm1/n \times n=\pm1\) from the last term alone never damps out), confirming that identical distribution (or its replacement, Kolmogorov's summability condition) is essential and not merely a convenience in the proof.