Find a course

Module 6: Joint Distributions and Limit TheoremsLesson 12 of 1216 min

The Law of Large Numbers and the Central Limit Theorem

See why averages settle down as samples grow, use the central limit theorem and the standard error σ/√n, and approximate probabilities for sums and polls.

Step 1 of 11Learn

Why casinos never worry

A single roulette spin is unpredictable. A casino's results over a million spins are almost perfectly predictable. The difference is the law of large numbers (LLN).

Let X₁, X₂, … be independent random variables with the same distribution, mean μ and finite variance. Their sample average

X̄_n = (X₁ + X₂ + … + X_n) / n

gets closer and closer to μ as n grows. More precisely, for any margin you choose, the probability that X̄_n falls outside μ ± that margin shrinks to zero.

You already have the tool to see why: Var(X̄_n) = σ^2/n, so the SD of the average is σ/√n, which shrinks as n grows.

Roulette. Each $1 bet on red has mean −$0.053 and SD about $1.00. After 100 bets, the average result per bet has SD 1/√100 = $0.10, so the player could easily be ahead. After 1,000,000 bets, the SD is $0.001, and the average is pinned near −$0.053. The casino can forecast its profit to within a fraction of a percent.

What the LLN does not say. It doesn't say that streaks get corrected. If a fair coin shows 10 heads in a row, the future flips don't contain extra tails to compensate. The excess of heads just becomes a smaller and smaller fraction of a growing total. After 10 extra heads in 1,000,000 flips, the proportion is 0.500005. The average converges by dilution, not by correction.

Step 2 of 11Chart

Running average of die rolls

Early averages jump around; after hundreds of rolls they hug the expected value 3.5. That is the law of large numbers in one picture.

Running average of die rollsLine chart with 8 categories: 1: Running average 5, E[X] = 3.5 3.5; 5: Running average 4.2, E[X] = 3.5 3.5; 10: Running average 3.9, E[X] = 3.5 3.5; 50: Running average 3.62, E[X] = 3.5 3.5; 100: Running average 3.41, E[X] = 3.5 3.5; 500: Running average 3.53, E[X] = 3.5 3.5; 1000: Running average 3.49, E[X] = 3.5 3.5; 5000: Running average 3.5, E[X] = 3.5 3.5.12345615105010050010005000Number of rolls
Illustrative sequence of simulated rolls.
Running average of die rolls
Number of rollsRunning averageE[X] = 3.5
153.5
54.23.5
103.93.5
503.623.5
1003.413.5
5003.533.5
10003.493.5
50003.53.5

Step 3 of 11Practice · Work it out

A fair die is rolled n times. How many rolls are needed for the SD of the average roll to be 0.05? (The SD of one roll is about 1.71.) Round to the nearest whole number.

Step 4 of 11Learn

The central limit theorem

The LLN says where the average goes. The central limit theorem (CLT) says what shape its randomness takes along the way.

If X₁, …, X_n are independent and identically distributed with mean μ and finite SD σ, then for large n the average X̄_n is approximately normal with mean μ and SD σ/√n. Equivalently, the sum is approximately N(nμ, nσ^2).

The remarkable part is that this holds whatever the shape of the original distribution: flat like a die, skewed like an exponential wait, or lumpy like a 0/1 coin flip. Add enough independent pieces and the bell curve appears.

Example: sum of 100 dice. One die has μ = 3.5 and σ ≈ 1.708. The sum of 100 has mean 350 and SD √100 × 1.708 ≈ 17.1. What's the chance the total exceeds 380? z = (380 − 350)/17.1 ≈ 1.75, and P(Z > 1.75) ≈ 0.04.

How large must n be? It depends on how far from normal the original distribution is. For symmetric distributions, n = 10 to 20 is often plenty. For strongly skewed ones, such as insurance claims, you may need hundreds. A common rule of thumb for introductory work is n ≥ 30, but treat that as a starting point, not a law.

The CLT explains why the normal distribution is everywhere: many quantities are the sum of lots of small, roughly independent effects.

Step 5 of 11Explore

Averages get narrower

Individual values come from a distribution with mean μ = 50 and SD σ = 20 (any shape). The curve shows the approximate distribution of the average of n values, a normal with SD σ/√n. Increase n and watch it tighten around 50.

00.10.20.3 020406080100
Standard error σ/√n
10
P(average within 50 ± 2)
0.159

Step 6 of 11Practice · Work it out

Delivery times have mean 30 minutes and SD 10 minutes (not normal). For a random sample of 25 deliveries, what is the standard deviation (standard error) of the sample mean, in minutes?

Step 7 of 11Learn

Polls and the normal approximation to the binomial

A binomial count is a sum of n independent 0/1 indicators, so the CLT applies to it too. For large n, Binomial(n, p) ≈ N(np, np(1 − p)). A common rule of thumb asks for np ≥ 10 and n(1 − p) ≥ 10.

The sample proportion p̂ = X/n is then approximately normal with mean p and SD √(p(1 − p)/n).

Polling. A poll surveys 1,000 randomly chosen voters, and the true support for a candidate is 50%. The SD of p̂ is √(0.5 × 0.5 / 1000) ≈ 0.0158. About 95% of such polls land within 1.96 × 0.0158 ≈ ±3.1 points of the truth. That's the "margin of error" reported with many polls. Quadrupling the sample to 4,000 only halves it, to about ±1.5 points.

Notice what the margin does not depend on: the size of the population. A random sample of 1,000 works almost equally well for a city of 100,000 or a country of 300 million. What matters is that the sample is random. Biased samples, such as online opt-in polls, don't get better with size.

Continuity correction. When approximating a discrete count with a continuous normal, P(X ≤ k) is better approximated by the normal area up to k + 0.5. For 100 fair coin flips (mean 50, SD 5), P(X ≤ 45) ≈ Φ((45.5 − 50)/5) = Φ(−0.9) ≈ 0.184, close to the exact 0.184.

Step 8 of 11Try the calculator

Margin of error for a proportion

Approximate 95% margin of error for a sample proportion from a simple random sample.

Standard error
0.0158
95% margin of error
3.1 percentage points

Step 9 of 11Note

Step 10 of 11Practice · What would you do?

What would you do?

A factory's bolts have lengths with mean 50.0 mm and SD 0.6 mm. The distribution is somewhat skewed. An inspector measures a random sample of 36 bolts and finds an average of 50.3 mm. Is this surprising if the process is running normally?

Step 11 of 11Practice · Choose one

A fair coin is flipped 400 times. Using the normal approximation, about what is the probability of 220 or more heads?