Two statements about averages
Let be i.i.d. with mean and variance , and let and .
- The law of large numbers says where the average goes: .
- The central limit theorem says how it fluctuates on the way: the error is of size and approximately normal.
The engine behind both is one line of variance algebra. Independence kills the covariance terms, so
The sum spreads out like , the mean concentrates like . To halve an error you need four times the data.
Markov, Chebyshev and the weak law
Markov's inequality. For and , . Proof: ; take expectations.
Chebyshev's inequality. Apply Markov to with :
It holds for every distribution with finite variance, which is why it is loose: at it gives where a normal has .
Weak law of large numbers. Apply Chebyshev to :
That is the whole proof, and it is worth being able to give it in an interview. (The weak law only needs a finite mean; the finite variance makes the proof one line.)
Strong law. If , then with probability 1: almost every individual sequence of averages converges, not just the probability of a large deviation at each fixed . This is what justifies "the long-run frequency of heads is " and Monte Carlo estimation.
The central limit theorem
If the are i.i.d. with finite variance , then for every
In practice: and . Nothing about the shape of the survives except the mean and the variance.
How large must be? The Berry–Esseen theorem bounds the worst-case CDF error by , where and . Symmetric, light-tailed summands (dice, fair coins) look normal by –; skewed ones (a coin with , lottery payoffs) need far more.
Continuity correction
When is integer-valued, the normal spreads each integer's probability over an interval of width 1 around it. So is approximated by the normal probability up to , and by the probability above .
For , mean 50, sd 5:
| Method | |
|---|---|
| Exact | |
| Normal at (corrected) | |
| Normal at (uncorrected) |
The correction matters most when the sd is small; with sd 5 it moves the answer by more than two percentage points.
Worked example
the sum of 100 dice
You roll 100 fair dice. Estimate the probability the total is at least 380.
Show solutionHide solution
One die has mean and variance . The sum has mean and variance , so sd .
The total is an integer, so :
The exact probability, by convolving 100 dice, is . Without the continuity correction you get .
Out loud: "Sum is about normal, mean 350, sd about 17. 380 is about 1.75 sd above, so roughly 4%."
Worked example
Chebyshev versus the CLT
You flip a fair coin 1000 times. Bound, then estimate, the probability that the number of heads differs from 500 by at least 50.
Show solutionHide solution
has mean 500 and variance , sd .
Chebyshev: .
CLT with correction: means or , approximated by the normal beyond :
The exact binomial value is . Chebyshev is correct but nearly sixty times too generous, because it must also cover distributions with much fatter tails than a binomial. Use it when you know nothing about the shape; use the CLT when you have a sum of many independent pieces.
Fast estimates for interviews
| Quantity | Rule of thumb |
|---|---|
| Heads in fair flips | mean , sd |
| Sum of dice | mean , sd |
| Sample proportion | sd |
| Monte Carlo estimate | standard error |
| Normal mass within 1, 2, 3 sd | , , (two-sided 95% is ) |
How many flips to detect a 1% edge? A coin with versus a fair one: the sample proportion has sd about . To put the 1% gap two standard deviations out, , so and . Edges are expensive to confirm because the error shrinks only like .
The casino. A player bets $1 on red at American roulette 10,000 times, winning each bet with probability . Each bet has mean and sd . Over 10,000 bets the expected loss is about $526 and the sd is about $100. Breaking even is more than 5 sd away: the normal gives about (the exact binomial is ). The mean grows like , the noise like , so the house edge always wins eventually.
When the CLT fails or misleads
- Infinite variance. If are standard Cauchy, is standard Cauchy for every : averaging does nothing. whether is 1 or a million. Neither the LLN nor the CLT applies, because is infinite.
- Heavy but finite-mean tails. For a Pareto tail with , the mean exists, so the LLN holds, but the variance is infinite. The fluctuations of grow like , faster than , and the limit is a skewed stable law, not a normal. Sums are dominated by their single largest term.
- Dependence. Autocorrelated data break . For an AR(1) with lag-one correlation , for large . With , error bars computed as if the data were independent are times too narrow.
- Rare events. has mean 2. The exact and the Poisson(2) approximation gives , but the normal with continuity correction gives . When is small, use Poisson.
- Far tails. The CLT controls absolute error, which is uniformly small, but relative error in the tails can be huge. Five-sigma estimates for sums of skewed or fat-tailed returns are unreliable; this is a common way risk models understate crashes.
Knowledge check
A random variable has finite mean and variance but an unknown distribution. What is the best guaranteed upper bound on the probability that it lies 3 or more standard deviations from its mean?
Knowledge check
A Monte Carlo estimate from 10,000 independent samples has standard error 0.02. Roughly how many samples do you need for a standard error of 0.01?
Knowledge check
are i.i.d. standard Cauchy. What is the distribution of their average ?
Knowledge check
. Using the normal approximation with continuity correction, is approximated by which normal probability?
Key takeaways
- : four times the data for half the error.
- Chebyshev weak LLN in one line. Chebyshev is distribution-free and loose.
- CLT: for i.i.d. finite-variance summands. Use the continuity correction for integer-valued sums.
- Quick estimates: heads sd , dice-sum sd , edges need to show at two sd.
- The CLT fails without finite variance (Cauchy, Pareto with ), misleads under dependence, for rare events (use Poisson) and in the far tails.
Practice problems
Finished reading?
Answer the 4 knowledge checks to complete this lesson (0 done).