Limit theorems · Definition
Law of large numbers
Before you start you need to know
It explains why frequencies and averages stabilize, and so justifies estimating an unknown expectation from data.
Definition
The law of large numbers states that the average \(\bar X_n\) of \(n\) independent observations of a variable \(X\) approaches its expectation \(\mu\) as \(n\) grows.
Let \(X_1,X_2,\dots\) be independent, with the same expectation \(\mu\) and finite variance \(\sigma^2\). The (weak) law says that, for every \(\varepsilon>0\), \(P(|\bar X_n-\mu|\ge\varepsilon)\to0\) as \(n\to\infty\). The strong form says more: with probability 1, the sequence of averages converges to \(\mu\).
With finite variance the proof is a direct application of Chebyshev: since \(E[\bar X_n]=\mu\) and \(\operatorname{Var}(\bar X_n)=\sigma^2/n\), we get \(P(|\bar X_n-\mu|\ge\varepsilon)\le\sigma^2/(n\varepsilon^2)\), which tends to 0. It also gives an explicit bound: to guarantee an error below \(\varepsilon\) with failure probability \(\delta\), it suffices that \(n\ge\sigma^2/(\delta\varepsilon^2)\).
A guiding example is the relative frequency of an event: if \(X_i=1\) when the event occurs in repetition \(i\), then \(\bar X_n\) is the proportion of times it occurs and tends to its probability. This justifies reading a probability as a long-run frequency, and also simulation and estimation methods.
Two typical errors: believing the law «compensates» past streaks (trials are independent) and thinking the absolute difference \(S_n-n\mu\) vanishes, when what stabilizes is the average. The speed and shape of the remaining fluctuation are described by the central limit theorem.
Think about it
Why does the law not contradict the fact that, after 1000 tosses, the number of heads is almost never exactly 500?
Because it only ensures the proportion approaches \(\tfrac12\); the absolute difference from 500 can be several units while the proportion is still very close to 0.5.
With \(\sigma^2=4\), how many observations does Chebyshev guarantee for an error below 0.2 with failure at most 0.1?
\(n\ge\sigma^2/(\delta\varepsilon^2)=4/(0.1\cdot0.04)=1000\).
Exercises 10
- A fair coin is tossed many times. What value does the proportion of heads approach as the number of tosses grows?
- The variables \(X_i\) are independent with variance \(\sigma^2=25\). What is the variance of \(\bar X_n\) with \(n=100\)?
- With \(\sigma^2=1\) and \(n=100\), what bound does Chebyshev give for \(P(|\bar X_n-\mu|\ge0.5)\)?
- With \(\sigma^2=4\), what is the smallest \(n\) such that \(\operatorname{Var}(\bar X_n)\le0.01\)?
- What is the expected value of \(\bar X_n\) if each \(X_i\) has expectation \(\mu\)?
- A fair die is rolled many times. What value does the average of the results tend to?
- With \(\sigma^2=9\) and \(n=1000\), what bound does Chebyshev give for \(P(|\bar X_n-\mu|\ge0.3)\)?
- A fair coin came up heads 5 times in a row. What is the probability of heads on the next toss?
- Let \(S_n\) be the number of heads in \(n\) tosses of a fair coin. Which statement does the law of large numbers guarantee?
- With \(\sigma^2=1\), which \(n\) suffices, by Chebyshev, so that \(P(|\bar X_n-\mu|\ge0.1)\le0.05\)?
What comes next
References
- Joseph K. Blitzstein, Jessica Hwang, Introduction to Probability, 2nd edition, CRC Press, 2019. §10.1
- Sheldon Ross, A First Course in Probability, 10th edition, Pearson, 2019. §8.2
- Ronald E. Walpole, Raymond H. Myers, Sharon L. Myers, Keying Ye, Probabilidad y estadística para ingeniería y ciencias, 9.ª edición, Pearson, 2012. §8.5