The central limit theorem
中心极限定理
Separate concentration from fluctuation shape, derive the normalization, and test a normal approximation against exact count probabilities.
central-limit-theoremZoom in on the shrinking uncertainty
A sample mean becomes steadier as independent observations accumulate. If we keep shrinking the vertical scale to follow its remaining fluctuations, a useful shape often emerges: a normal distribution. The central limit theorem explains this rescaled shape. It does not claim that individual observations become normal.
For one hundred fair-coin flips, the chance of at most sixty heads is about 0.982400. A normal approximation with a continuity correction gives about 0.982136. Yet for thirty trials with success probability 0.01, the chance of zero successes is about 0.739700, while the same approximation gives about 0.643186. “Thirty samples is enough” is not a theorem. MIT Introduction to Probability, Lecture 19
n = 100 · p = 0.5
Absolute error at marked count 0.000264
n = 30 · p = 0.01
Absolute error at marked count 0.096514
The square root in the denominator matters
Suppose are i.i.d. with mean and variance . Write and . Then the centered sum has variance , so its standard deviation is , not :
The classical i.i.d. central limit theorem states, for every real z,
This is convergence in distribution, expressed through cumulative probabilities. Without scaling, the mean tends to a constant under the law of large numbers. The approximation uses a different normal distribution for each n; it is not convergence to a fixed, nondegenerate normal distribution. Zero variance is excluded because the normalization would divide by zero.
A proof sketch explains why many details disappear. Standardize one observation to . Define its characteristic function , where . Unlike a moment-generating function, it always exists because the integrand has magnitude one. Finite second moment gives the local expansion
The first-order term vanishes because Y has mean zero; the quadratic term comes from its unit variance. Independence turns the characteristic function of the normalized sum into a product:
The limit is the characteristic function of a standard normal. The continuity theorem for characteristic functions then gives the stated distributional convergence. This sketch uses that theorem and the second-moment expansion; it is not a proof of the continuity theorem itself. MIT 6.436J, Lecture 17, Sections 2 and 4
Compare a normal CDF with exact probabilities
For a binomial count K, the approximation has mean np and variance np(1−p). To approximate , use the boundary between integer count cells. This continuity correction often improves the approximation but does not guarantee a chosen accuracy. The program computes an exact rational binomial CDF and compares it with the normal CDF using erfc.
import math
from fractions import Fraction as F
def compare_binomial_cdf(n, p, k):
if type(n) is not int or not 1<=n<=500 or type(k) is not int or not isinstance(p,F) or not 0<p<1:
raise ValueError("n in [1,500], integer k and Fraction p strictly between zero and one required")
if k<0:
exact = F(0)
elif k>=n:
exact = F(1)
else:
probability = (1-p)**n
exact = probability
for j in range(k):
probability *= F(n-j,j+1)*p/(1-p)
exact += probability
mean = n*float(p)
variance = n*float(p)*(1-float(p))
if variance == 0.:
raise ValueError("p is too close to an endpoint at float precision")
z = (k+.5-mean)/math.sqrt(variance)
approximate = .5*math.erfc(-z/math.sqrt(2))
return exact,approximate
exact,normal = compare_binomial_cdf(100,F(1,2),60)
assert abs(float(exact)-.9823998998911476)<1e-15
assert abs(float(exact)-normal)<.0003
rare,normal_rare = compare_binomial_cdf(30,F(1,100),0)
assert rare == F(99,100)**30
assert abs(float(rare)-normal_rare)>.09
for k in range(-1,12):
exact,approximate = compare_binomial_cdf(10,F(1,2),k)
assert 0<=exact<=1 and 0<=approximate<=1
The recurrence needs rational operations when k is inside the support, and a constant number of accumulator objects with growing numerators and denominators. The initial power has its own exponentiation cost. This is not constant bit complexity. The normal CDF evaluation has constant scalar cost. The stated n cap bounds the teaching workload, while p must remain representable away from degenerate endpoints in the approximate calculation.
| n | p | Event | Exact probability, rounded | Corrected normal approximation |
|---|---|---|---|---|
| 100 | 0.5 | K ≤ 60 | 0.982400 | 0.982136 |
| 30 | 0.01 | K = 0 | 0.739700 | 0.643186 |
The normal approximation is evaluated even outside the exact count support. For example, it assigns positive probability below count zero; that discrepancy is another approximation error, not an extra possible count.
The second example satisfies the theorem’s i.i.d. and finite-variance assumptions. Its finite sample is simply too skewed for this approximation to be accurate. Asymptotic validity and current accuracy are different questions.
The theorem gives a limit, not a universal sample size
The theorem alone supplies no universal convergence rate. If the centered third absolute moment is finite, a Berry–Esseen bound has the form
for a universal constant C. The extra moment and its magnitude matter; no best constant is claimed here. This controls absolute CDF error, not relative error in a tiny tail probability. MIT 6.436J, Lecture 17, Section 4.1
An infinite variance falls outside this classical theorem; other normalizations or limits may be needed. Dependence can change both the limiting variance and whether a limit holds. Non-identically distributed observations require additional conditions, rather than permission to insert their average variance into the i.i.d. formula.
Discrete sums remain discrete for every finite n. Their CDFs can converge to a continuous normal CDF without possessing continuous densities themselves. A statement about pointwise PMFs or PDFs requires a separate local limit theorem. Replacing unknown with an estimate also introduces another step of analysis; it is not literally the normalization assumed above.
Choose the correct scale
- Each observation has mean three and variance four. For n=100, what are the mean and standard deviation of the sum? Answer: 300 and 20. The sample mean has standard deviation 0.2.
- Does an exponential observation become normal after collecting more observations? Answer: no. The theorem concerns the normalized sum or mean of repeated observations.
- Why is 60.5 used for the first count example? Answer: it is the cell boundary just above count sixty when approximating a discrete CDF by a continuous one.
- Does a small absolute CDF error guarantee a small relative error for a probability of ? Answer: no. An absolute error of is already much larger than that target probability.
Use a limit with a finite-sample check
Normal approximations support uncertainty estimates for Monte Carlo averages and many statistical procedures. Their usefulness depends on the sampled quantity, dependence, tail behavior, and the accuracy required in the event of interest. Compare with an exact small model when possible, as the program does. The law of large numbers explains concentration, while the binomial distribution supplies the count model used here.
Make a prediction, then check
Which object converges to a standard normal under the classical CLT?
Learning objectives
- Derive centering and square-root normalization, and explain the normal limit through characteristic functions.
- Compare exact binomial CDFs with approximations and distinguish asymptotic, finite-sample and tail accuracy.
Prerequisites & connections
Explore related knowledge →References
- Introduction to Probability — Lecture 19: The Central Limit Theorem (CLT)
John Tsitsiklis; Patrick Jaillet; MIT OpenCourseWare · 2018 - Fundamentals of Probability — Lecture 17: Laws of Large Numbers and Central Limit Theorem
Yury Polyanskiy; MIT OpenCourseWare · 2018
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-05 · Codex multi-agent technical check: primary-source verification, derivation and numerical assertions, bilingual comparison, and review by another agent or the parent; no independent human peer review.
- Enumerated ordered sequences for n=1 through 8 at three success rates, checking every CDF threshold, mean, and variance; tested selected Rademacher characteristic-function limits.
- Recomputed approximation errors for n=100,p=0.5 and n=30,p=0.01, retaining positive variance, finite second moment, CDF convergence and the Berry–Esseen third absolute moment condition.
- Cross-review found that the approximation had been clipped with the exact support; code and figure data now retain the approximation error at negative count thresholds, and the initial big-integer power cost is explicit.
- Checked all 47 figure points with independent combinatorial sums, including approximation 0.0710586734113155 at k=−1; the added persistent regression test passed.
- The parent executed all 25 independent probability checks; bilingual code, display equations, main anchors, sources and exercises were additionally compared.
- The figure data-generation script was inspected; review versions bind the component and JSON used at render time, while the script itself is not part of the static build.
- After inspecting the actual page, moved the horizontal k label right to separate it from tick 70; curve coordinates and data were unchanged.
Source locations checked:
- Introduction to Probability — Lecture 19: The Central Limit Theorem (CLT) · Slides 2–6 and normal-approximation discussion; slide 3 visually checked for sqrt(n) normalization
- Fundamentals of Probability — Lecture 17: Laws of Large Numbers and Central Limit Theorem · §4 PDF7 characteristic-function proof; §4.1 PDF8–9 Berry–Esseen extra moment and absolute CDF error
Related topics