01 / 21

Law of
Large Numbers

Discover how sample averages converge to expected values as sample size grows, and the crucial distinction between weak and strong convergence.

Statistics Probability Theory

What Is the Law of Large Numbers?

The Law of Large Numbers (LLN) is one of the most fundamental theorems in probability and statistics. It tells us that as we take more and more observations of a random variable, the sample average \( \bar{X}_n \) gets closer and closer to the population expected value \( \mu \).

Key Definitions

Sample Mean
\( \bar{X}_n = \frac{1}{n}\sum_{i=1}^{n} X_i \) where \( X_1, X_2, \ldots \) are i.i.d. random variables.
Expected Value
\( \mu = E[X_i] \): the theoretical long-run average, also called the population mean.
i.i.d.
Independent and identically distributed: each \( X_i \) has the same distribution and is independent of every other.

Visual Intuition: Convergence of \( \bar{X}_n \)

Why Does the LLN Matter?

1
Foundation of statistics: It justifies using sample means to estimate population parameters.
2
Monte Carlo methods: Simulation-based inference relies on the LLN to guarantee that simulated averages converge to true expectations.
3
Insurance and risk: Insurers pool many independent risks; the LLN ensures that average claim costs become predictable.
4
Machine learning: Empirical risk minimization works because the empirical loss converges to the true loss by the LLN.

The Weak Law of Large Numbers

This is convergence in probability. It says the probability of the sample mean being "far" from \( \mu \) vanishes, but it does not say individual sequences cannot occasionally stray.

The Strong Law of Large Numbers

This is almost sure convergence: with probability 1, the entire sequence \( \bar{X}_1, \bar{X}_2, \ldots \) converges to \( \mu \). Unlike the weak law, this guarantees that individual sample paths do not permanently wander away.

Weak vs. Strong: Key Distinction

Weak Law (WLLN) Strong Law (SLLN)
Convergence type In probability Almost surely (a.s.)
Statement \( P(|\bar{X}_n - \mu| \geq \varepsilon) \to 0 \) \( P(\bar{X}_n \to \mu) = 1 \)
Conditions \( E[|X|] < \infty \) (General form) \( E[|X|] < \infty \) suffices
Strength Weaker guarantee Stronger guarantee
Implication SLLN implies WLLN WLLN does NOT imply SLLN

Modes of Convergence

Almost Sure (a.s.)
In Probability
In \( L^p \)
In Distribution
implies
+ conditions
implies
implies

How to Apply the LLN

1
Identify the random variables: Determine \( X_1, X_2, \ldots \) and verify they are i.i.d.
2
Check moment conditions: For the WLLN (Chebyshev), verify \( \text{Var}(X) < \infty \). For the SLLN, verify \( E[|X|] < \infty \).
3
Compute \( \mu = E[X] \): This is the target to which \( \bar{X}_n \) converges.
4
State the conclusion: Write \( \bar{X}_n \xrightarrow{P} \mu \) (WLLN) or \( \bar{X}_n \xrightarrow{\text{a.s.}} \mu \) (SLLN).
5
Apply the Continuous Mapping Theorem if you need convergence of \( g(\bar{X}_n) \) for continuous \( g \).

Example 1: Fair Coin Flips

Let \( X_i \sim \text{Bernoulli}(\tfrac{1}{2}) \) represent the outcome of the \( i \)-th flip (1 = heads, 0 = tails). The \( X_i \) are i.i.d. with:

\( \mu \)
\( E[X_i] = \frac{1}{2} \)
\( \sigma^2 \)
\( \text{Var}(X_i) = \frac{1}{4} < \infty \)

Example 2: Rolling a Die

Let \( X_i \sim \text{Uniform}\{1,2,3,4,5,6\} \). These are i.i.d. with \( \mu = 3.5 \) and \( \sigma^2 = \frac{35}{12} \approx 2.917 \).

Example 3: When the LLN Fails

Let \( X_i \sim \text{Cauchy}(0, 1) \). The Cauchy distribution has no finite mean: \( E[|X_i|] = \infty \). The moment conditions for both the WLLN and SLLN are violated.

Rate of Convergence

The LLN tells us \( \bar{X}_n \to \mu \), but how fast? If \( \sigma^2 < \infty \), then:

\( n = 100 \)
\( \text{SE} = \frac{\sigma}{10} \)
\( n = 10{,}000 \)
\( \text{SE} = \frac{\sigma}{100} \)
\( n = 1{,}000{,}000 \)
\( \text{SE} = \frac{\sigma}{1000} \)

Common Mistakes

✕ Gambler's Fallacy
Believing that past results influence future outcomes. The LLN says averages converge: it does not say individual trials "correct" themselves.
✕ Ignoring Conditions
Applying the LLN without checking that \( E[|X|] < \infty \). The Cauchy distribution is the classic failure case.
✕ Confusing LLN with CLT
The LLN says \( \bar{X}_n \to \mu \). The CLT says \( \sqrt{n}(\bar{X}_n - \mu) \to \mathcal{N}(0, \sigma^2) \). They answer different questions.

Summary Comparison

WLLN SLLN CLT
What it says \( \bar{X}_n \xrightarrow{P} \mu \) \( \bar{X}_n \xrightarrow{\text{a.s.}} \mu \) \( \sqrt{n}(\bar{X}_n - \mu) \xrightarrow{d} \mathcal{N}(0,\sigma^2) \)
Type Convergence in probability Almost sure convergence Convergence in distribution
Conditions \( E[|X|] < \infty \) \( E[|X|] < \infty \) \( \sigma^2 < \infty \)
Tells us about Limit of \( \bar{X}_n \) Limit of \( \bar{X}_n \) Distribution of deviations

Question 1 of 5

The Weak Law of Large Numbers guarantees that \( \bar{X}_n \) converges to \( \mu \) in what sense?

Question 2 of 5

Why does the Law of Large Numbers not apply to \( X_i \sim \text{Cauchy}(0,1) \)?

Question 3 of 5

A fair six-sided die is rolled \( n \) times. By the SLLN, what does \( \bar{X}_n \) converge to almost surely?

Question 4 of 5

To halve the standard error of \( \bar{X}_n \), you must multiply \( n \) by what factor?

Question 5 of 5

Which of the following is the Gambler's Fallacy?