The law of large numbers and the central limit theorem
Almost every simulation in this course ends by averaging. A Monte Carlo price is an average of discounted payoffs, a sample volatility is an average of squared returns, and the Brownian motion of "Random walks and Brownian motion" is the limit of a rescaled sum of coin flips. Two theorems explain why averages are so well behaved: the law of large numbers says that an average settles down, and the central limit theorem says how it fluctuates around the value it settles on. This lesson states both with their hypotheses, proves the simpler one, and uses a figure to show how quickly the second takes hold. The sample means and variances of "Returns and volatility" are the first averages you met.
Averages of independent draws
Let be independent, identically distributed (i.i.d.) random variables with mean and a finite variance . The sample mean of the first is . Linearity of expectation, and the fact that variances of independent variables add, give two facts that everything below rests on:
The average is right on average, and its standard deviation , called the standard error, shrinks like . Nothing more is assumed yet. The rest of the lesson asks what that shrinking implies.
The weak law of large numbers
Theorem (weak law). For every , as . One says that converges to in probability. The proof is Chebyshev's inequality, , applied to :
Chebyshev's bound is crude, but it needs nothing beyond a finite variance, and the shrinking variance does all the work.
The strong law
Theorem (strong law). If , then . Here "with probability one", or almost surely, means that the sequences of draws for which the averages fail to settle form a set of probability zero. The weak law controls each fixed separately. The strong law controls the whole path of running averages as grows, and that is what a single long simulation relies on. It does not even need a finite variance, only a finite mean. We state it without proof.
The central limit theorem
The laws say where the average ends up, not how it is distributed around that value. To see the shape, standardise it, so that it has mean 0 and variance 1 for every :
Theorem (central limit theorem). If the are i.i.d. with finite mean and finite, positive variance , then for every
where is the standard normal distribution function. The hypotheses matter: independence, a common distribution, and a finite variance. The source distribution is otherwise arbitrary, which is why the walk of "Random walks and Brownian motion", rescaled by , has a normal limit even though its steps are coin flips. In practice the theorem is used as the approximation for large .
How fast: the Berry–Esseen bound
The theorem is a statement about a limit. For a finite it is an approximation, and Berry–Esseen measures its error. If is finite, then
The error shrinks like and is larger when is large, that is, for skewed or heavy-tailed sources. It equals about 1.30 for the uniform law and for the exponential law.
The figure averages draws from the source you choose, 4,000 times, standardises each average and draws the histogram against the standard normal density. The first readout is the Kolmogorov distance, the largest gap between the two distribution functions. With the exponential source and it is about 0.05, and at about 0.02, which is close to the 0.014 that sampling noise alone produces with 4,000 averages. Switch to the Bernoulli source with , a very skewed coin: the distance is about 0.24 at and still about 0.09 at . Berry–Esseen is conservative, since for the exponential source at it would allow 0.36, but its message is the one the figure shows: skewed sources converge more slowly. The second readout, the simulated standard deviation of the average, matches at every , which is the weak law at work.
- Distance to the normal
- 0.054
- Sd of the average (simulated)
- 0.312
- σ/√n
- 0.316
Where the theorems are used
A Monte Carlo price is a sample mean of discounted payoffs. The strong law says that it converges to the true price. The central limit theorem gives the error bar: the estimate lies within of the truth in about 95% of runs, which is the band that returns when the track prices options by simulation. Because the error falls like , every extra correct digit costs a hundred times as many draws.
The same theorem is behind the Brownian limit. A random walk with steps of mean 0 and variance 1, observed after steps and divided by , is a standardised sum, so its distribution at a fixed time is approximately normal. Brownian motion is the continuous-time object whose every time slice has exactly that normal distribution.
Summary
- The sample mean of i.i.d. draws has mean and standard error .
- The weak law (by Chebyshev) says the average converges in probability; the strong law says the whole sequence of averages converges almost surely, needing only a finite mean.
- The central limit theorem says the standardised average becomes normal, whatever the source, provided the variance is finite.
- Berry–Esseen bounds the error by a constant times ; skewed sources converge more slowly.
The next lesson, "Probability spaces, σ-algebras and random variables", makes precise what "with probability one" and "random variable" mean.