Module contents
Lesson 18 of 24Core 110 min

The central limit theorem and its limits

The CLT explains the appearance of Gaussians in error bars, minibatch noise, wide-network preactivations and aggregated returns. Prove it with characteristic functions, generalize to non-identical summands (Lindeberg–Feller) and multiple dimensions (Cramér–Wold), quantify its rate (Berry–Esseen), derive the delta method and study failure under heavy tails and stable laws.

After this lesson you can

  • Prove the Lindeberg–Lévy CLT using characteristic functions and Lévy’s continuity theorem.
  • Check the Lindeberg condition and recognize when a dominant summand breaks normality.
  • Quantify normal approximation error with Berry–Esseen.
  • Apply the multivariate CLT and delta method to functions of several means.
  • Recognize the stable-law regime with infinite variance.

Before you start

Motivation: why are almost all error bars Gaussian?

You evaluate a classifier on n=1000n = 1000 test examples and obtain accuracy 0.870.87. The report says 0.87±0.020.87 \pm 0.02. That ±0.02\pm 0.02 comes from formula 1.960.87⋅0.13/1000=0.02081.96\sqrt{0.87 \cdot 0.13/1000} = 0.0208, behind which lies a strong claim: the mean of 10001000 success indicators, Bernoulli variables, behaves like a normal variable. Nobody checked whether successes are normal (they are not: they equal 00 or 11). Normality appears in the sum even though absent from its summands. This is the central limit theorem (CLT), why the Gaussian dominates statistics, machine learning and much of physics.

The same structure appears in very different places:

  • Minibatch noise. The gradient of a batch of size BB is 1B∑i=1B∇ℓi\frac{1}{B}\sum_{i=1}^{B}\nabla\ell_i, an average of BB per-example gradients. Its error relative to the true gradient is approximately N(0,Σ/B)\Normal(\vb{0}, \mat{\Sigma}/B), motivating learning-rate scaling with batch size and approximating SGD by a diffusion.
  • Wide networks. A preactivation z=1d∑j=1dwjhjz = \frac{1}{\sqrt{d}}\sum_{j=1}^{d}w_j h_j sums dd nearly independent terms. When d→∞d \to \infty, the CLT makes it Gaussian: the starting point of the infinite-width limit in module 15.
  • Aggregated returns. Log weekly return sums five daily returns. If the CLT worked without qualification, weekly returns would be nearly normal; real data have much heavier tails than the bell curve suggests. The final section explains why.

A theorem this useful deserves close attention to its conditions. Four questions will be answered through proofs and simulations.

  1. Why the Gaussian rather than another law? There is a precise mechanism visible in the characteristic function: a parabola dominates everything else near the origin.
  2. Under what assumptions? Independence, finite variance and no dominant summand. Lindeberg-Feller makes this precise.
  3. How quickly? The theorem is asymptotic: it says what happens as n→∞n \to \infty, not how many summands suffice. Berry-Esseen and the Edgeworth expansion answer; the answer depends on skewness.
  4. What happens when it fails? With heavy tails normalization n\sqrt{n} is wrong. Other limiting laws (stable laws) emerge, and one observation may account for a fixed fraction of the sum.

A warning about those conditions. A Bernoulli with p=0.01p = 0.01 and n=100n = 100 observations gives frequency 0.010.01 and a “Wald” interval 0.01±1.960.01⋅0.99/100=[−0.0095,0.0295]0.01 \pm 1.96\sqrt{0.01 \cdot 0.99/100} = [-0.0095, 0.0295]. A negative probability clearly signals that normal approximation cannot be used there. The lesson quantifies why and by how much it fails.

Throughout, X1,X2,…X_1, X_2, \dots are independent real random variables, Sn=X1+⋯+XnS_n = X_1 + \dots + X_n and Xˉn=Sn/n\bar X_n = S_n/n. When identically distributed we write μ=E[X1]\mu = \E[X_1] and σ2=Var⁡(X1)\sigma^2 = \Var(X_1). “→d\xrightarrow{d}” means convergence in distribution, and φ(t)=E[eitX]\varphi(t) = \E[e^{itX}] is the characteristic function.

Intuition: the bell emerges through convolution

The density of a sum of independent variables is the convolution of their densities. Convolution is weighted averaging: each step smooths, removes peaks and corners, and makes the shape more symmetric. The figure repeats this nn times and rescales so variance does not collapse. The sum of nn copies is calculated exactly (apart from grid discretization) by the fast Fourier transform, so this is not a simulation.

InteractiveThe bell emerges through convolution
n = 5
Density of Sn∗=(Sn−nμ)/(σn)S_n^* = (S_n - n\mu)/(\sigma\sqrt{n}) versus N(0,1)\Normal(0, 1)
n = 5
  • exact Sn∗S_n^* (convolution)
  • N(0,1)\Normal(0, 1)
  • with skewness term
Kolmogorov distance Dn=sup⁡x∣Fn(x)−Φ(x)∣D_n = \sup_x |F_n(x) - \Phi(x)| versus nn
  • exact DnD_n
  • Berry–Esseen bound
  • skewness term
View
nn (number of summands)5
Kolmogorov distance DnD_n0.0596
Berry–Esseen bound (C=0.4748C = 0.4748)0.5127
Bound / DnD_n8.6
Skewness γ\gamma2.00
Skewness term 0.0665 ∣γ∣/n0.0665\,|\gamma|/\sqrt{n}0.0595
Choose a base law and press play (or move nn). The blue curve is the exact density of standardized sum Sn∗=(Sn−nμ)/(σn)S_n^* = (S_n - n\mu)/(\sigma\sqrt{n}); dashed is normal N(0,1)\Normal(0, 1). Right: Kolmogorov distance Dn=sup⁡x∣Fn(x)−Φ(x)∣D_n = \sup_x \abs{F_n(x) - \Phi(x)} versus nn on log-log axes, with the Berry-Esseen bound. How many summands are needed, and what does it depend on? Compare uniform, exponential, Bernoulli(0.05) and Pareto, which does not converge to normal. In ‘Residual’, the orange curve shows the missing Edgeworth correction calculated below.

What you should have seen:

  • Uniform is nearly Gaussian from n=3n = 3. It is symmetric, without jumps and with bounded density: D3=0.0097D_3 = 0.0097 and D10=0.0028D_{10} = 0.0028. The slope is −1-1: each multiplication of nn by 1010 divides error by 1010. This is the best case.
  • Exponential needs more. It is asymmetric, with skewness γ=2\gamma = 2. D10=0.042D_{10} = 0.042 and D100=0.0133D_{100} = 0.0133: slope is −1/2-1/2 and gaining one digit requires multiplying nn by 100100. ‘Residual’ shows the missing shape: a four-lobed wave γ6(z3−3z)ϕ(z)\frac{\gamma}{6}(z^3 - 3z)\phi(z), with ϕ\phi the standard normal density, shrinking as 1/n1/\sqrt{n}. Added to normal (orange ‘Density’ curve), the fit is almost perfect.
  • Bernoulli(0.05) is worst among laws with moments. γ=4.13\gamma = 4.13 and it is a lattice variable: the sum’s distribution is a staircase, whose jump forces Dn≥D_n \ge half the jump, of order 0.2/(σn)0.2/(\sigma\sqrt{n}). D10=0.365D_{10} = 0.365, D100=0.116D_{100} = 0.116, D300=0.068D_{300} = 0.068. Below 0.020.02 requires about 35003500 summands. Berry-Esseen’s bound (with n=100n = 100 equal to 0.1970.197) is within factor 1.71.7 of actual distance: nearly exact here.
  • The discrete bimodal law has almost no skewness (γ=0.04\gamma = 0.04), but is lattice. D100=0.0076D_{100} = 0.0076 and D400=0.0038D_{400} = 0.0038, namely nDn≈0.076\sqrt{n}D_n \approx 0.076, exactly half the jump, 0.1995/σ0.1995/\sigma with σ=2.74\sigma = 2.74, plus a little skewness. The error is all staircase.
  • Pareto with α=1.5\alpha = 1.5 does not converge to normal. Its mean is finite but variance infinite, so there is no σ\sigma for standardization; use median and interquartile range. Distance falls from 0.1330.133 (n=10n = 10) to 0.0870.087 (n=100n = 100) and 0.0750.075 (n=400n = 400), then stabilizes at a positive value. A limit exists, but is not N(0,1)\Normal(0, 1); the last section identifies it.

The figure’s lesson: the CLT concerns a limit, and required sample size depends on the base law’s shape. “n≥30n \ge 30” is not a law of nature.

Lindeberg-Lévy: statement and proof

Now the proof. The natural tool is the characteristic function, turning sums of independent variables into products: φSn(t)=φ(t)n\varphi_{S_n}(t) = \varphi(t)^n. The Lévy continuity theorem justifies passing from product to limit: pointwise convergence of characteristic functions to a function continuous at 00 gives convergence in distribution.

Two elementary lemmas are needed.

Proof

Let Rm(x)R_m(x) be the stated remainder. The integral Taylor remainder of f(x)=eixf(x) = e^{ix}, with f(m)(s)=imeisf^{(m)}(s) = i^m e^{is} of modulus 11, gives Rm(x)=1(m−1)!∫0x(x−s)m−1 imeis ⁣dsR_m(x) = \frac{1}{(m-1)!}\int_0^x (x-s)^{m-1}\,i^m e^{is}\dd s, whose modulus is at most ∣x∣m/m!\abs{x}^m/m!. For the second bound, Rm(x)=Rm−1(x)−(ix)m−1/(m−1)!R_m(x) = R_{m-1}(x) - (ix)^{m-1}/(m-1)!, and the first applied to Rm−1R_{m-1} gives ∣Rm(x)∣≤∣x∣m−1(m−1)!+∣x∣m−1(m−1)!\abs{R_m(x)} \le \frac{\abs{x}^{m-1}}{(m-1)!} + \frac{\abs{x}^{m-1}}{(m-1)!}.

∎
Proof

Telescope: ∏kzk−∏kwk=∑k=1n(z1⋯zk−1)(zk−wk)(wk+1⋯wn)\prod_k z_k - \prod_k w_k = \sum_{k=1}^{n}\big(z_1\cdots z_{k-1}\big)(z_k - w_k)\big(w_{k+1}\cdots w_n\big), and each summand has modulus at most ∣zk−wk∣\abs{z_k - w_k}.

∎
Proof

Reduction. With Yi=(Xi−μ)/σY_i = (X_i - \mu)/\sigma, having mean 00 and variance 11, the goal is Sn∗=n−1/2∑iYi→dN(0,1)S_n^* = n^{-1/2}\sum_i Y_i \xrightarrow{d} \Normal(0, 1). Let φ\varphi be the characteristic function of Y1Y_1. By independence and identical distribution, φSn∗(t)=φ(t/n)n\varphi_{S_n^*}(t) = \varphi(t/\sqrt{n})^n. Fix t∈Rt \in \R.

Step 1: the parabola. By the lemma with m=3m = 3 and E[Y]=0\E[Y] = 0, E[Y2]=1\E[Y^2] = 1, taking expectations in eisYe^{isY},

φ(s)=1−s22+r(s),∣r(s)∣≤E[min⁡(∣sY∣36, (sY)2)].\varphi(s) = 1 - \frac{s^2}{2} + r(s), \qquad \abs{r(s)} \le \E\Big[\min\Big(\frac{\abs{sY}^3}{6},\ (sY)^2\Big)\Big].

With s=t/ns = t/\sqrt{n}, n ∣r(t/n)∣≤t2 εn(t)n\,\abs{r(t/\sqrt{n})} \le t^2\,\varepsilon_n(t), where εn(t)=E[min⁡(∣t∣∣Y∣36n, Y2)]\varepsilon_n(t) = \E\big[\min\big(\tfrac{\abs{t}\abs{Y}^3}{6\sqrt{n}},\ Y^2\big)\big]. The integrand tends to 00 for each YY and is dominated by integrable Y2Y^2. By dominated convergence, εn(t)→0\varepsilon_n(t) \to 0, so n r(t/n)→0n\,r(t/\sqrt{n}) \to 0. This is the only place finite variance is used.

Step 2: product to power. For n≥t2/4n \ge t^2/4, number 1−t2/(2n)1 - t^2/(2n) lies in [−1,1][-1, 1]; so does ∣φ∣≤1\abs{\varphi} \le 1. By the second lemma with all zk=φ(t/n)z_k = \varphi(t/\sqrt{n}) and all wk=1−t2/(2n)w_k = 1 - t^2/(2n),

∣φ(t/n)n−(1−t22n)n∣≤n ∣φ(t/n)−1+t22n∣=n ∣r(t/n)∣→0.\Big\lvert \varphi(t/\sqrt{n})^n - \Big(1 - \frac{t^2}{2n}\Big)^n\Big\rvert \le n\,\Big\lvert \varphi(t/\sqrt{n}) - 1 + \frac{t^2}{2n}\Big\rvert = n\,\abs{r(t/\sqrt{n})} \to 0.

Step 3: the classical limit. (1−t22n)n→e−t2/2\big(1 - \frac{t^2}{2n}\big)^n \to e^{-t^2/2}. Therefore φSn∗(t)→e−t2/2\varphi_{S_n^*}(t) \to e^{-t^2/2} for each tt, the characteristic function of N(0,1)\Normal(0, 1), continuous at 00. Lévy’s continuity theorem gives Sn∗→dN(0,1)S_n^* \xrightarrow{d} \Normal(0, 1).

∎

Note what the proof did not use: densities, moments above 22 or symmetry. Finite variance enters exactly in step 1’s domination; if E∣Y∣3<∞\E\abs{Y}^3 < \infty the same calculation gives n ∣r(t/n)∣≤∣t∣3E∣Y∣3/(6n)n\,\abs{r(t/\sqrt{n})} \le \abs{t}^3\E\abs{Y}^3/(6\sqrt{n}), error falling as n−1/2n^{-1/2}, the Berry-Esseen rate.

The next figure shows step 1. For fixed tt, φ(t/n)n\varphi(t/\sqrt{n})^n keeps the quadratic term of φ\varphi and discards the rest. Compare φn(t)=φ(t/n)n\varphi_n(t) = \varphi(t/\sqrt{n})^n with e−t2/2e^{-t^2/2}, increase nn and zoom near t=0t = 0.

InteractiveThe winning parabola
φn(t)=φ(t/n)n\varphi_n(t) = \varphi(t/\sqrt{n})^n (with n=16n = 16) versus e−t2/2e^{-t^2/2}
error 0.01
  • Re⁡φn(t)\operatorname{Re}\varphi_n(t)
  • Im⁡φn(t)\operatorname{Im}\varphi_n(t)
  • e−t2/2e^{-t^2/2}
  • φ(t)\varphi(t), one observation
  • last tt with error < 0.01
Error ∣φn(t)−e−t2/2∣|\varphi_n(t) - e^{-t^2/2}| on a log-log scale
slope 3 near t = 0
  • error with n=16n = 16
  • error with n=1n = 1
  • first term of the expansion
16
[0, 4.0]
nn16
Skewness γ\gamma2.00
Excess kurtosis6.00
Largest tt with ∣φn(t)−e−t2/2∣<0.01|\varphi_n(t) - e^{-t^2/2}| < 0.010.52
Error at t=1t = 1 (measured)0.04993
Prediction e−1/2∣γ∣/(6n)e^{-1/2}|\gamma|/(6\sqrt{n})0.05054
Left: real (blue) and imaginary (purple) parts of φ(t/n)n\varphi(t/\sqrt{n})^n against e−t2/2e^{-t^2/2} (dashed) and the characteristic function of one observation, φ(t)\varphi(t) (gray). Right: error ∣φn(t)−e−t2/2∣\abs{\varphi_n(t) - e^{-t^2/2}} on log-log axes, with the cumulant-expansion prediction. How far in tt does φn\varphi_n resemble the Gaussian, and how does that range grow with nn? Reduce the tt range to 0.30.3: a single observation already matches the parabola. Then try Cauchy and Bernoulli.

What you should have seen:

  • Near t=0t = 0, one observation suffices. For exponential, error of φ(t)\varphi(t) against e−t2/2e^{-t^2/2} is below 0.010.01 only up to t=0.32t = 0.32. With n=16n = 16 the range reaches t=0.52t = 0.52; with n=100n = 100, 0.730.73; with n=1000n = 1000, 1.331.33; with n=104n = 10^4 error never exceeds 0.0040.004. The range initially grows as n1/6n^{1/6}: behavior of error ∣γ∣t3/(6n)\abs{\gamma}t^3/(6\sqrt{n}), slope 33 on the right.
  • Symmetric laws gain an order. For uniform and Laplace (γ=0\gamma = 0), slope near 00 is 44 and error falls as 1/n1/n, not 1/n1/\sqrt{n}. Asymmetric slope 33 is γ t3/(6n)\gamma\,t^3/(6\sqrt{n}); 44 is κ4 t4/(24n)\kappa_4\,t^4/(24n), with κ4\kappa_4 excess kurtosis.
  • Bernoulli(0.05) is lattice, visibly. With n=1n = 1, ∣φ∣\abs{\varphi} equals 11 again at t=2πσ≈1.37t = 2\pi\sigma \approx 1.37: a lattice law’s characteristic function is periodic and does not decay. This is the frequency-domain version of the previous figure’s staircase jump.
  • Student tt with 33 degrees of freedom has E∣X∣3=∞\E\abs{X}^3 = \infty, yet follows slope 33. Standardized, its characteristic function is (1+∣t∣)e−∣t∣=1−t22+∣t∣33+O(t4)(1 + \abs{t})e^{-\abs{t}} = 1 - \frac{t^2}{2} + \frac{\abs{t}^3}{3} + \bigO(t^4). The cubic term has absolute value: φ\varphi is not three times differentiable at 00, showing E∣X∣3=∞\E\abs{X}^3 = \infty in frequency. It is real because the law is symmetric. Error is ≈∣t∣3e−t2/2/(3n)\approx \abs{t}^3 e^{-t^2/2}/(3\sqrt{n}), the same as for an asymmetric law with ∣γ∣=2\abs{\gamma} = 2, and Kolmogorov distance also falls as n−1/2n^{-1/2} (n Dn≈0.10\sqrt{n}\,D_n \approx 0.10 to 0.110.11 between n=10n = 10 and n=1000n = 1000). Berry-Esseen does not apply because ρ=∞\rho = \infty, but rate n−1/2n^{-1/2} persists: the bound asks more than necessary. For a symmetric law Ibragimov’s theorem (1966) needs only E[X21[∣X∣>x]]=O(1/x)\E[X^2\ind[\abs{X} > x]] = \bigO(1/x), met exactly at the boundary by t3t_3.
  • Cauchy does not converge. With normalization n\sqrt{n}, φn(t)=e−n∣t∣\varphi_n(t) = e^{-\sqrt{n}\abs{t}}, tending to 00 for t≠0t \ne 0 and equaling 11 at t=0t = 0: the limit is discontinuous at 00, and Lévy’s theorem says there is no convergence in distribution (mass escapes to infinity).

Lindeberg-Feller: different summands with none dominating

The classical CLT requires identical distributions. In a network with different layer weights, a minibatch with differently weighted examples, or a portfolio of different assets, summands differ. The general statement uses a triangular array: for each nn there is a list of independent variables Xn,1,…,Xn,knX_{n,1}, \dots, X_{n,k_n}, with E[Xn,k]=0\E[X_{n,k}] = 0 and σn,k2=Var⁡(Xn,k)\sigma_{n,k}^2 = \Var(X_{n,k}), normalized so ∑kσn,k2=1\sum_k \sigma_{n,k}^2 = 1 (the iid case corresponds to Xn,k=Yk/nX_{n,k} = Y_k/\sqrt{n}).

Proof

We prove part 1. Fix ε>0\varepsilon > 0.

No summand dominates. Since σn,k2=E[Xn,k21[∣Xn,k∣≤ε]]+E[Xn,k21[∣Xn,k∣>ε]]≤ε2+Ln(ε)\sigma_{n,k}^2 = \E[X_{n,k}^2\ind[\abs{X_{n,k}} \le \varepsilon]] + \E[X_{n,k}^2\ind[\abs{X_{n,k}} > \varepsilon]] \le \varepsilon^2 + L_n(\varepsilon), lim sup⁡nmax⁡kσn,k2≤ε2\limsup_n \max_k \sigma_{n,k}^2 \le \varepsilon^2, and because ε\varepsilon is arbitrary, max⁡kσn,k2→0\max_k \sigma_{n,k}^2 \to 0.

Every factor is a parabola. Let φn,k\varphi_{n,k} be the characteristic function of Xn,kX_{n,k}. By the first lemma with m=3m = 3, splitting expectation according to ∣X∣≤ε\abs{X} \le \varepsilon or not,

∣φn,k(t)−(1−t2σn,k22)∣≤E[min⁡(∣tXn,k∣36, (tXn,k)2)]≤ε∣t∣36σn,k2+t2 E[Xn,k21[∣Xn,k∣>ε]].\Big\lvert \varphi_{n,k}(t) - \Big(1 - \frac{t^2\sigma_{n,k}^2}{2}\Big)\Big\rvert \le \E\Big[\min\Big(\frac{\abs{tX_{n,k}}^3}{6},\ (tX_{n,k})^2\Big)\Big] \le \frac{\varepsilon\abs{t}^3}{6}\sigma_{n,k}^2 + t^2\,\E\big[X_{n,k}^2\ind[\abs{X_{n,k}} > \varepsilon]\big].

Summing over kk and using ∑kσn,k2=1\sum_k\sigma_{n,k}^2 = 1, total error is at most ε∣t∣3/6+t2Ln(ε)\varepsilon\abs{t}^3/6 + t^2L_n(\varepsilon).

From a product of parabolas to Gaussian products. For large nn, an,k=t2σn,k2/2∈[0,1]a_{n,k} = t^2\sigma_{n,k}^2/2 \in [0, 1] for every kk. By the second lemma, ∣∏kφn,k(t)−∏k(1−an,k)∣≤ε∣t∣3/6+t2Ln(ε)\big\lvert\prod_k\varphi_{n,k}(t) - \prod_k(1 - a_{n,k})\big\rvert \le \varepsilon\abs{t}^3/6 + t^2L_n(\varepsilon). Since 0≤e−a−(1−a)≤a2/20 \le e^{-a} - (1 - a) \le a^2/2 for a≥0a \ge 0, the second lemma again gives ∣∏ke−an,k−∏k(1−an,k)∣≤12∑kan,k2≤12max⁡kan,k∑kan,k=t24max⁡kan,k→0\big\lvert\prod_k e^{-a_{n,k}} - \prod_k(1 - a_{n,k})\big\rvert \le \frac{1}{2}\sum_k a_{n,k}^2 \le \frac{1}{2}\max_k a_{n,k}\sum_k a_{n,k} = \frac{t^2}{4}\max_k a_{n,k} \to 0. And ∏ke−an,k=e−t2/2\prod_k e^{-a_{n,k}} = e^{-t^2/2}. Together, lim sup⁡n∣∏kφn,k(t)−e−t2/2∣≤ε∣t∣3/6\limsup_n\big\lvert\prod_k\varphi_{n,k}(t) - e^{-t^2/2}\big\rvert \le \varepsilon\abs{t}^3/6. Letting ε→0\varepsilon \to 0, the limit is 00. By Lévy’s continuity theorem, the sum converges to N(0,1)\Normal(0, 1).

∎

Part 2 uses the same arithmetic in reverse: if max⁡kσn,k2→0\max_k\sigma_{n,k}^2 \to 0, ∏kφn,k(t)→e−t2/2\prod_k\varphi_{n,k}(t) \to e^{-t^2/2} forces ∑k(1−Re⁡φn,k(t))→t2/2\sum_k\big(1 - \operatorname{Re}\varphi_{n,k}(t)\big) \to t^2/2, from which Lindeberg follows; the proof is omitted. The message is that the condition is nearly necessary: if no summand is individually large and the CLT holds, it follows. Three comments.

The iid case is a corollary. With Xn,k=Yk/nX_{n,k} = Y_k/\sqrt{n}, Ln(ε)=E[Y21[∣Y∣>εn]]→0L_n(\varepsilon) = \E[Y^2\ind[\abs{Y} > \varepsilon\sqrt{n}]] \to 0 by dominated convergence (since Y2Y^2 is integrable). Lindeberg-Lévy is the special case, which is why nothing beyond variance is needed.

Lyapunov’s condition is easier to check. If some δ>0\delta > 0 satisfies ∑kE∣Xn,k∣2+δ→0\sum_k\E\abs{X_{n,k}}^{2+\delta} \to 0, Lindeberg holds, because E[X21[∣X∣>ε]]≤ε−δE∣X∣2+δ\E[X^2\ind[\abs{X} > \varepsilon]] \le \varepsilon^{-\delta}\E\abs{X}^{2+\delta}.

Examples. Let XkX_k be independent Bernoulli variables with distinct parameters pkp_k, and sn2=∑k≤npk(1−pk)s_n^2 = \sum_{k \le n}p_k(1 - p_k). Since ∣Xk−pk∣≤1\abs{X_k - p_k} \le 1, Lindeberg holds if and only if sn→∞s_n \to \infty (when sn→∞s_n \to \infty, for large nn no summand exceeds εsn\varepsilon s_n and Ln(ε)=0L_n(\varepsilon) = 0). With pk=1/kp_k = 1/k, sn2≈ln⁡n→∞s_n^2 \approx \ln n \to \infty and the CLT holds, slowly. With pk=1/k2p_k = 1/k^2, ∑pk<∞\sum p_k < \infty: by Borel-Cantelli only finitely many XkX_k equal 11, the sum converges almost surely to an integer-valued variable and normality fails. In between, nn trials with p=λ/np = \lambda/n yield a Poisson limit.

The next figure lets you see failure. One summand contributes fraction qq of total variance; the rest are mm small uniform terms. Increase mm so the remainder becomes Gaussian by the CLT and observe the whole.

InteractiveA dominant summand
Density of S=q ZD+(1−q)/m (U1+⋯+Um)S = \sqrt{q}\,Z_D + \sqrt{(1-q)/m}\,(U_1 + \dots + U_m) with m=32m = 32
  • exact law of SS
  • N(0,1)\Normal(0, 1)
  • limit m→∞m \to \infty
Lindeberg condition and Feller ratio versus mm
does not tend to 0: Lindeberg fails
  • Ln(ε)L_n(\varepsilon)
  • Feller ratio
0.70
32
0.30
Feller ratio max⁡kσk2/sn2\max_k \sigma_k^2/s_n^20.70
Lindeberg Ln(ε)L_n(\varepsilon)0.700
Kolmogorov distance to N(0,1)\Normal(0, 1)0.0607
Distance to limiting law (orange)0.0005
The sum is S=q ZD+(1−q)/m (U1+⋯+Um)S = \sqrt{q}\,Z_D + \sqrt{(1-q)/m}\,(U_1 + \dots + U_m), where ZDZ_D is the standardized dominant shape and the UiU_i are uniform. Blue is the exact density (by characteristic-function inversion), dashed is N(0,1)\Normal(0, 1), and orange the fixed-qq limit as m→∞m \to \infty. What must the dominant term satisfy for a normal limit? Increase qq with large mm. Change the dominant shape. Then enable ‘equal variance’: q=1/(m+1)q = 1/(m+1) and normality returns. Right: Ln(ε)L_n(\varepsilon) and the Feller ratio.

What you should have seen:

  • With fixed qq, the limit is not normal. With a Rademacher dominant, q=0.7q = 0.7 and m=32m = 32, distance to N(0,1)\Normal(0, 1) is 0.0610.061 and does not fall as mm rises. Blue hugging orange (distance 0.00050.0005) is the limit law q ZD+1−q N\sqrt{q}\,Z_D + \sqrt{1 - q}\,N, with NN standard normal. For a Rademacher dominant it is a mixture of two Gaussians centered at ±q\pm\sqrt{q} with standard deviation 1−q\sqrt{1 - q}, bimodal exactly when q>1/2q > 1/2 (separation 2q2\sqrt{q} greater than 21−q2\sqrt{1 - q}). The limit retains the dominant shape, smoothed by normal noise from the rest.
  • Lindeberg detects it. Ln(0.3)L_n(0.3) equals 0.7000.700, i.e. qq: the entire dominant lies above ε\varepsilon. It does not tend to 00 with mm. Feller ratio max⁡kσk2/sn2\max_k\sigma_k^2/s_n^2 equals qq.
  • With equal sharing, q=1/(m+1)q = 1/(m+1), everything returns. With m=32m = 32, Ln(0.3)=0.015L_n(0.3) = 0.015 and distance to normal falls to 0.00130.0013. Since summands here are bounded, Ln(ε)L_n(\varepsilon) becomes exactly 00 once all lie below ε\varepsilon.
  • A Gaussian dominant breaks nothing. If ZDZ_D were normal, limit q ZD+1−q N\sqrt{q}\,Z_D + \sqrt{1 - q}\,N would be exactly N(0,1)\Normal(0, 1) for every qq. Cramér’s converse theorem says that if a sum of two independent variables is normal, both are normal. Thus dominance breaks the CLT only when the dominant is not normal, and Lindeberg is sufficient but not necessary without negligibility (theorem part 2).

Rate: Berry-Esseen and the role of skewness

The CLT is a statement about n→∞n \to \infty. Using it for a particular nn requires a rate, hinted at by the second figure. Berry and Esseen give the classical quantitative result.

The classical proof uses Esseen’s smoothing inequality, bounding Kolmogorov distance between distribution functions by an integral of their characteristic-function difference divided by tt over [−T,T][-T, T], plus term 1/T1/T. Applied to φ(t/(σn))n\varphi(t/(\sigma\sqrt{n}))^n and e−t2/2e^{-t^2/2} with TT proportional to n σ3/ρ\sqrt{n}\,\sigma^3/\rho, the preceding Taylor lemma gives the bound. We omit the proof but can calculate why the order is n−1/2n^{-1/2} and when it is exact.

Skewness: the first Edgeworth term

With a third moment one can go one order beyond the CLT. Let γ=E[(X−μ)3]/σ3\gamma = \E[(X - \mu)^3]/\sigma^3 be skewness and φ\varphi the standardized variable’s characteristic function. The cumulant expansion gives the next term.

ln⁡φSn∗(t)=nln⁡φ(tn)\ln\varphi_{S_n^*}(t) = n\ln\varphi\Big(\frac{t}{\sqrt{n}}\Big)
By independence and identical distribution, φSn∗(t)=φ(t/n)n\varphi_{S_n^*}(t) = \varphi(t/\sqrt{n})^n. Take the logarithm: this is the cumulant-generating function evaluated at itit.
1/8

The result reads: CLT rate n−1/2n^{-1/2} is first-order error due to skewness, and holds with asymptotic equality (not merely a bound). For exponential, γ=2\gamma = 2 and Dn≈0.133/nD_n \approx 0.133/\sqrt{n}: with n=100n = 100, exact D100=0.0133D_{100} = 0.0133 versus predicted 0.01330.0133. Berry-Esseen gives 0.4748⋅2.4146/10=0.11460.4748 \cdot 2.4146/10 = 0.1146: eight and a half times actual distance. If γ=0\gamma = 0 (uniform, Laplace), that term vanishes and the next order remains, 1/n1/n.

There is an exception, the second error source: lattice laws (support in an arithmetic progression of step hh). The sum’s distribution function is a staircase with central jump height ≈h/(σ2πn)\approx h/(\sigma\sqrt{2\pi n}), and normal passes halfway up each step, so Dn≥12⋅hσ2πn=0.1995 h/(σn)D_n \ge \frac{1}{2}\cdot\frac{h}{\sigma\sqrt{2\pi n}} = 0.1995\,h/(\sigma\sqrt{n}), an order n−1/2n^{-1/2} error no smoothing of the law avoids. Esseen’s lattice expansion adds a sawtooth term of amplitude h ϕ(x)/(2σn)h\,\phi(x)/(2\sigma\sqrt{n}) to skewness; centrally, where both peak, they add: for Bernoulli(0.05), 0.0665⋅4.13+0.1995/0.218=0.275+0.916=1.190.0665 \cdot 4.13 + 0.1995/0.218 = 0.275 + 0.916 = 1.19, matching nDn=1.18\sqrt{n}D_n = 1.18 measured in the code cell below.

Berry-Esseen as a guarantee, and its limits

The bound is uniform and valid for every nn, unlike the CLT alone. It helps decide whether approximation is acceptable but can be loose. For exponential, guaranteeing Dn≤0.01D_n \le 0.01 needs 13 14413\,144 summands, while about 177177 actually suffice. For Bernoulli(0.05) the bound is nearly optimal. It guarantees absolute error. For tail events absolute error 0.010.01 is useless if the probability sought is 10−410^{-4}. The code cell shows that for a sum of 3030 exponentials, P(Sn∗>4)\Pr(S_n^* > 4) is 1212 times the normal value, and at 55 deviations, 9494 times: approximation is good centrally and can be terrible in tails (large-deviation theory in lesson 19 correctly quantifies tails).

Two further points. If the law has only moment 2+δ2 + \delta with 0<δ<10 < \delta < 1, the general bound is C E∣X∣2+δ/(σ2+δnδ/2)C\,\E\abs{X}^{2+\delta}/(\sigma^{2+\delta}n^{\delta/2}) and the rate worsens. For nonidentical summands, Berry-Esseen replaces ρ/σ3n\rho/\sigma^3\sqrt{n} by ∑kE∣Xk∣3/sn3\sum_k\E\abs{X_k}^3/s_n^3, with a somewhat larger constant.

Multivariate CLT and the Cramér-Wold device

In machine learning averages are vectors: gradients, feature vectors, multi-parameter estimators. We need the CLT in Rd\R^d. A device known from the multivariate Gaussian definition reduces it to scalars: all projections determine a vector.

Proof

The forward direction is continuous mapping z↦t⊤z\vb{z} \mapsto \vb{t}\T\vb{z}. Conversely, the characteristic function of Zn\vb{Z}_n at t\vb{t} is E[eit⊤Zn]\E[e^{i\vb{t}\T\vb{Z}_n}], the scalar t⊤Zn\vb{t}\T\vb{Z}_n‘s characteristic function evaluated at 11. By direction (1) of Lévy’s theorem on these projections, it converges to E[eit⊤Z]=φZ(t)\E[e^{i\vb{t}\T\vb{Z}}] = \varphi_{\vb{Z}}(\vb{t}) for every t\vb{t}. Lévy’s continuity theorem in Rd\R^d (the same proof as in dimension 11, with tightness from coordinate projections) gives Zn→dZ\vb{Z}_n \xrightarrow{d} \vb{Z}.

∎
Proof

Let t∈Rd\vb{t} \in \R^d and Yi=t⊤(Xi−μ)Y_i = \vb{t}\T(\vb{X}_i - \vb{\mu}): these are iid scalars with mean 00 and finite variance τ2=t⊤Σt\tau^2 = \vb{t}\T\mat{\Sigma}\vb{t}. By Lindeberg-Lévy (if τ2=0\tau^2 = 0 it is trivial, since Yi=0Y_i = 0 almost surely), n−1/2∑iYi=t⊤n(Xˉn−μ)→dN(0,t⊤Σt)n^{-1/2}\sum_i Y_i = \vb{t}\T\sqrt{n}(\bar{\vb{X}}_n - \vb{\mu}) \xrightarrow{d} \Normal(0, \vb{t}\T\mat{\Sigma}\vb{t}). This is the law of t⊤Z\vb{t}\T\vb{Z} if Z∼N(0,Σ)\vb{Z} \sim \Normal(\vb{0}, \mat{\Sigma}), by the multivariate Gaussian definition. Since t\vb{t} is arbitrary, Cramér-Wold concludes.

∎

Matrix Σ\mat{\Sigma} carries all the limit geometry: level ellipses of N(0,Σ)\Normal(\vb{0}, \mat{\Sigma}) are constant-Mahalanobis-distance curves. The figure shows the reduction: a cloud of n(Xˉn−μ)\sqrt{n}(\bar{\vb{X}}_n - \vb{\mu}) for a non-Gaussian law, rotatable direction u\vb{u}, and projection distribution versus N(0,u⊤Σu)\Normal(0, \vb{u}\T\mat{\Sigma}\vb{u}).

InteractiveCramér-Wold: one cloud, many projections
700 replicas of Z=n(Xˉn−μ)\vb{Z} = \sqrt{n}(\bar{\vb{X}}_n - \vb{\mu}) (n=5n = 5) and ellipses of Σ\mat{\Sigma}
u
  • replicas of Z\vb{Z}
  • 1σ1\sigma and 2σ2\sigma ellipses of N(0,Σ)\Normal(\vb{0}, \mat{\Sigma})
  • direction u\vb{u}
Projection u⊤Z\vb{u}\T\vb{Z} versus N(0,u⊤Σu)\Normal(0, \vb{u}\T\mat{\Sigma}\vb{u}), θ=35°\theta = 35°
  • projection histogram
  • N(0,u⊤Σu)\Normal(0, \vb{u}\T\mat{\Sigma}\vb{u})
5
35°
u⊤Σu\vb{u}\T\mat{\Sigma}\vb{u} (theoretical)1.564
Simulated variance of u⊤Z\vb{u}\T\vb{Z}1.553
Kolmogorov DD in this direction0.064
Worst direction (every 5°)0.068 at 10°
Left: 15001500 replicates (700700 shown) of vector n(Xˉn−μ)\sqrt{n}(\bar{\vb{X}}_n - \vb{\mu}) for a non-Gaussian law, with 1σ1\sigma and 2σ2\sigma ellipses of N(0,Σ)\Normal(\vb{0}, \mat{\Sigma}). Right: histogram of projection u⊤Z\vb{u}\T\vb{Z} on the purple direction versus N(0,u⊤Σu)\Normal(0, \vb{u}\T\mat{\Sigma}\vb{u}). Must every direction be checked? With small nn, rotate u\vb{u} to find the least bell-shaped projection; increasing nn improves the worst angle and all others. With ‘four cross steps’ or ‘three 120°120° steps’, small-nn projections are discrete (separate bars).

What you should have seen:

  • Every projection is a scalar CLT, with its own variance u⊤Σu\vb{u}\T\mat{\Sigma}\vb{u}. Simulated projection variance follows theory as u\vb{u} rotates.
  • Joint normality is more than marginal normality. Cramér-Wold requires all directions. A family with normal marginals but no joint Gaussian law (from the Gaussian lesson) has normal axis projections but not in other directions. One failure suffices.
  • Rate depends on direction. For the cross law, moving only along axes, axis projections take values −1,0,1-1, 0, 1 with probabilities (1/4,1/2,1/4)(1/4, 1/2, 1/4), while the diagonal is a walk with steps ±1/2\pm 1/\sqrt{2}, much more discrete. The ‘worst direction’ reading shows this: with n=3n = 3 the diagonal is worse than axes (D=0.22D = 0.22 versus 0.160.16), and all improve together as nn increases.

A common corollary: if Σ≻0\mat{\Sigma} \succ 0, continuous mapping z↦z⊤Σ−1z\vb{z} \mapsto \vb{z}\T\mat{\Sigma}\inv\vb{z} gives n (Xˉn−μ)⊤Σ−1(Xˉn−μ)→dχd2n\,(\bar{\vb{X}}_n - \vb{\mu})\T\mat{\Sigma}\inv(\bar{\vb{X}}_n - \vb{\mu}) \xrightarrow{d} \chi^2_d. This is the Wald and Hotelling statistic, justifying simultaneous hypothesis tests on several parameters.

Delta method: asymptotic normality of functions of averages

The average itself is rarely the target. We want a ratio of averages (conversion rate, relative error), a logarithm (when estimating growth), or a ratio of norms. The CLT describes fluctuations of Xˉn\bar{\vb{X}}_n; the delta method describes g(Xˉn)g(\bar{\vb{X}}_n) for smooth gg.

Proof

Since gg is differentiable at θ\vb{\theta}, function h(x)=(g(θ+x)−g(θ)−∇g(θ)⊤x)/∥x∥h(\vb{x}) = \big(g(\vb{\theta} + \vb{x}) - g(\vb{\theta}) - \grad g(\vb{\theta})\T\vb{x}\big)/\norm{\vb{x}}, with h(0)=0h(\vb{0}) = 0, is continuous at 0\vb{0}. Write

n (g(Tn)−g(θ))=∇g(θ)⊤ n(Tn−θ)+∥n(Tn−θ)∥  h(Tn−θ).\sqrt{n}\,\big(g(\vb{T}_n) - g(\vb{\theta})\big) = \grad g(\vb{\theta})\T\,\sqrt{n}(\vb{T}_n - \vb{\theta}) + \norm{\sqrt{n}(\vb{T}_n - \vb{\theta})}\;h(\vb{T}_n - \vb{\theta}).

The first term. By the continuous mapping theorem (which with Slutsky’s lemma is the proof’s tool), ∇g(θ)⊤n(Tn−θ)→d∇g(θ)⊤Z\grad g(\vb{\theta})\T\sqrt{n}(\vb{T}_n - \vb{\theta}) \xrightarrow{d} \grad g(\vb{\theta})\T\vb{Z} with Z∼N(0,Σ)\vb{Z} \sim \Normal(\vb{0}, \mat{\Sigma}), which is N(0,∇g⊤Σ∇g)\Normal(0, \grad g\T\mat{\Sigma}\grad g) (a linear transform of a Gaussian).

The second term tends to 00 in probability. By Slutsky, Tn−θ=n−1/2⋅n(Tn−θ)→d0⋅Z=0\vb{T}_n - \vb{\theta} = n^{-1/2}\cdot\sqrt{n}(\vb{T}_n - \vb{\theta}) \xrightarrow{d} \vb{0}\cdot\vb{Z} = \vb{0}, and convergence in distribution to a constant is convergence in probability. By continuous mapping (with hh continuous at 0\vb{0}), h(Tn−θ)→h(0)=0h(\vb{T}_n - \vb{\theta}) \to h(\vb{0}) = 0 in probability. Also ∥n(Tn−θ)∥→d∥Z∥\norm{\sqrt{n}(\vb{T}_n - \vb{\theta})} \xrightarrow{d} \norm{\vb{Z}}. By Slutsky the product converges in distribution to ∥Z∥⋅0=0\norm{\vb{Z}}\cdot 0 = 0, hence in probability.

Conclusion. By Slutsky the sum converges in distribution to the first term’s limit.

∎

The few-line proof contains the underlying reason: the delta method linearizes gg in a neighborhood of width σ/n\sigma/\sqrt{n}. There curve and tangent are indistinguishable, and the tangent transforms one Gaussian into another. The figure shows this for XiX_i exponential variables and several functions gg.

InteractiveThe delta method is a linearization
g(x)=x2g(x) = x^2, its tangent at μ=1.00\mu = 1.00 and 150 replicas of (Xˉn,g(Xˉn))(\bar X_n, g(\bar X_n)), n=25n = 25
(μ, g(μ))
  • gg
  • tangent (linearization)
  • (Xˉn,g(Xˉn))(\bar X_n, g(\bar X_n))
  • μ±1.96 σ/n\mu \pm 1.96\,\sigma/\sqrt{n}
Distribution of g(Xˉn)g(\bar X_n) versus the delta-method normal
  • histogram of 4000 replicas
  • N(g(μ), g′(μ)2σ2/n)\Normal(g(\mu),\, g'(\mu)^2\sigma^2/n)
  • g(μ)g(\mu)
1.00
25
g′(μ)g'(\mu)2.000
Delta-method standard deviation ∣g′(μ)∣σ/n|g'(\mu)|\sigma/\sqrt{n}0.4000
Simulated standard deviation of g(Xˉn)g(\bar X_n)0.4259
Simulated bias0.0426
Second-order bias g′′(μ)σ2/(2n)g''(\mu)\sigma^2/(2n)0.0400
95% CI coverage90.8 %
The cloud (Xˉn,g(Xˉn))(\bar X_n, g(\bar X_n)) lives on curve gg within blue band μ±1.96 σ/n\mu \pm 1.96\,\sigma/\sqrt{n}, where orange tangent nearly reproduces it. Right: histogram of g(Xˉn)g(\bar X_n) versus delta-method normal. When is linearization good? With g=x2g = x^2 and n=25n = 25, curvature is visible: bias, a right tail and asymptotic interval covering less than 95 %95\,\%. Increase nn or use ln⁡x\ln x, which stabilizes variance (independent of μ\mu). For g=xe−xg = x e^{-x} and μ=1\mu = 1 the tangent is horizontal and the delta method degenerates.

What you should have seen:

  • The delta-method standard deviation matches what is seen, with a curvature correction. With g=x2g = x^2, μ=1\mu = 1 and n=25n = 25, asymptotic standard deviation is ∣g′(μ)∣σ/n=2/5=0.4\abs{g'(\mu)}\sigma/\sqrt{n} = 2/5 = 0.4 and actual 0.420.42: curvature accounts for the difference. There is also second-order bias g′′(μ)σ2/(2n)=2/(2⋅25)=0.04g''(\mu)\sigma^2/(2n) = 2/(2\cdot 25) = 0.04 (exact here: E[Xˉn2]=1+1/n\E[\bar X_n^2] = 1 + 1/n), invisible to first-order delta.
  • Coverage of interval g(Xˉn)±1.96 ∣g′(Xˉn)∣Xˉn/ng(\bar X_n) \pm 1.96\,\abs{g'(\bar X_n)}\bar X_n/\sqrt{n} depends on curvature of gg. With x2x^2 and n=25n = 25 it covers only 90.5 %90.5\,\% (and 86 %86\,\% with n=10n = 10); with x\sqrt{x}, 94.0 %94.0\,\%; with ln⁡x\ln x, 94.6 %94.6\,\%; and with 1/x1/x, 95.2 %95.2\,\%. The last is a coincidence: interval 1Xˉn(1±1.96/n)\frac{1}{\bar X_n}\big(1 \pm 1.96/\sqrt{n}\big) contains 1/μ1/\mu iff ∣Xˉn−μ∣≤1.96 μ/n\abs{\bar X_n - \mu} \le 1.96\,\mu/\sqrt{n}, the mean interval with true σ=μ\sigma = \mu: neither curvature nor estimation of σ\sigma enters. All approach 95 %95\,\% with n=100n = 100. Logarithm behaves well because ∣g′(μ)∣σ=1\abs{g'(\mu)}\sigma = 1: standard error is 1/n1/\sqrt{n} for every μ\mu, so it ‘stabilizes variance’.
  • If g′(μ)=0g'(\mu) = 0 the delta method degenerates. With g(x)=xe−xg(x) = xe^{-x} at μ=1\mu = 1, the distribution of g(Xˉn)g(\bar X_n) is asymmetric and not normal: it is bounded above by g(1)=e−1g(1) = e^{-1}. The leading term is second order, n (g(Xˉn)−g(μ))→dσ22g′′(μ) χ12n\,(g(\bar X_n) - g(\mu)) \xrightarrow{d} \frac{\sigma^2}{2}g''(\mu)\,\chi_1^2, here −12eχ12-\frac{1}{2e}\chi_1^2. Derive it using second-order Taylor expansion and n(Xˉn−μ)2/σ2→χ12n(\bar X_n - \mu)^2/\sigma^2 \to \chi_1^2. Hence simulated bias is −0.0018≈−12e n-0.0018 \approx -\frac{1}{2e\,n} with n=100n = 100.

Three recurring uses:

  • Ratio of means. For g(x,y)=y/xg(x, y) = y/x, ∇g=(−y/x2, 1/x)⊤\grad g = (-y/x^2,\ 1/x)\T, and asymptotic variance of n(Yˉ/Xˉ−μy/μx)\sqrt{n}(\bar Y/\bar X - \mu_y/\mu_x) is (σy2−2R σxy+R2σx2)/μx2\big(\sigma_y^2 - 2R\,\sigma_{xy} + R^2\sigma_x^2\big)/\mu_x^2, with R=μy/μxR = \mu_y/\mu_x. This gives standard error for a conversion rate or loss ratio.
  • Variance-stabilizing transformation. For Xi∼Poisson(λ)X_i \sim \mathrm{Poisson}(\lambda), σ2=λ\sigma^2 = \lambda and g(x)=xg(x) = \sqrt{x} give ∣g′(λ)∣σ=12\abs{g'(\lambda)}\sigma = \tfrac{1}{2}: Xˉn\sqrt{\bar X_n} has asymptotic variance 1/(4n)1/(4n) independent of λ\lambda. This square-root transform underlies Anscombe’s (x+3/8\sqrt{x + 3/8}), and with λ=5,50,500\lambda = 5, 50, 500 variance of X\sqrt{X} is 0.2860.286, 0.2520.252 and 0.2500.250.
  • Estimator standard errors. If θ^\hat{\vb{\theta}} is asymptotically normal with covariance Σ/n\mat{\Sigma}/n (e.g. maximum likelihood, module 5), standard error of any smooth g(θ^)g(\hat{\vb{\theta}}) is ∇g⊤Σ∇g/n\sqrt{\grad g\T\mat{\Sigma}\grad g/n}: what statistical library standard-error routines calculate.

When it fails: heavy tails and stable laws

The Lindeberg-Lévy proof used finite variance only in step 1’s domination. Remove it and that step fails. What happens? The previous lesson showed that without expectation there is no law of large numbers; with expectation but no variance the mean converges at rate n1/α−1n^{1/\alpha - 1} rather than n−1/2n^{-1/2}. Here is the other side: the shape of fluctuations is no longer Gaussian.

The key is stability. The Gaussian satisfies Sn=dn X1S_n \overset{d}{=} \sqrt{n}\,X_1 (with μ=0\mu = 0), and Cauchy satisfies Sn=dnX1S_n \overset{d}{=} n X_1. Generally:

Case α=2\alpha = 2 is Gaussian, and symmetric α=1\alpha = 1 is Cauchy. Stable laws form a family indexed by α\alpha; for α<2\alpha < 2 they have heavy tails, P(∣X∣>x)∼Cx−α\Pr(\abs{X} > x) \sim C x^{-\alpha}, and infinite variance. The generalized CLT says they are the only possible limits of normalized iid sums: if (Sn−bn)/an(S_n - b_n)/a_n converges in distribution to a nondegenerate law, that law is stable. The full proof (that ana_n is a power n1/αn^{1/\alpha} up to slow variation) resembles the fixed-point argument in Lindeberg-Lévy and is omitted. This lesson’s tools do prove the most relevant case: a Pareto tail.

Proof

The characteristic function of XX is real, φX(s)=E[cos⁡(sP)]=1−∫1∞αx−α−1(1−cos⁡(sx)) ⁣dx\varphi_X(s) = \E[\cos(sP)] = 1 - \int_1^\infty\alpha x^{-\alpha-1}\big(1 - \cos(sx)\big)\dd x. With s>0s > 0 and substitution u=sxu = sx,

1−φX(s)=αsα∫s∞1−cos⁡uuα+1 ⁣du=sα[cα−α∫0s1−cos⁡uuα+1 ⁣du].1 - \varphi_X(s) = \alpha s^\alpha\int_s^\infty\frac{1 - \cos u}{u^{\alpha+1}}\dd u = s^\alpha\Big[c_\alpha - \alpha\int_0^s\frac{1 - \cos u}{u^{\alpha+1}}\dd u\Big].

The integral defining cαc_\alpha converges: near 00, 1−cos⁡u≤u2/21 - \cos u \le u^2/2 and the integrand is at most u1−α/2u^{1-\alpha}/2 (integrable because α<2\alpha < 2); near infinity it is at most 2u−α−12u^{-\alpha-1} (integrable because α>0\alpha > 0). The same bound gives 0≤α∫0s(⋯ )≤αs2−α/(2(2−α))0 \le \alpha\int_0^s(\cdots) \le \alpha s^{2-\alpha}/(2(2-\alpha)), so

1−φX(s)=cαsα+O(s2)(s→0+).1 - \varphi_X(s) = c_\alpha s^\alpha + \bigO(s^2) \quad (s \to 0^+).

With s=∣t∣/n1/αs = \abs{t}/n^{1/\alpha}, φSn/n1/α(t)=φX(∣t∣n−1/α)n=(1−cα∣t∣α/n+O(n−2/α))n\varphi_{S_n/n^{1/\alpha}}(t) = \varphi_X(\abs{t}n^{-1/\alpha})^n = \big(1 - c_\alpha\abs{t}^\alpha/n + \bigO(n^{-2/\alpha})\big)^n. Since 2/α>12/\alpha > 1, n⋅n−2/α→0n\cdot n^{-2/\alpha} \to 0 and the limit is e−cα∣t∣αe^{-c_\alpha\abs{t}^\alpha}, continuous at 00. Lévy gives convergence in distribution.

∎

Compare Lindeberg-Lévy’s proof. The parabola’s role is now term cα∣t∣αc_\alpha\abs{t}^\alpha, not differentiable at 00 and larger than t2t^2 when tt is small. It dominates 1−φ1 - \varphi and forces normalization n1/αn^{1/\alpha} instead of n1/2n^{1/2}. An asymmetric Pareto tail adds skewness parameter β\beta and, if α≥1\alpha \ge 1, centering. The class converging to a stable law of index α\alpha (its domain of attraction) comprises laws whose tail P(∣X∣>x)\Pr(\abs{X} > x) varies regularly with index −α-\alpha, with stable right/left tail balance (Gnedenko and Kolmogorov). With α=2\alpha = 2 and infinite variance (e.g. P(∣X∣>x)∼x−2\Pr(\abs{X} > x) \sim x^{-2}), correct normalization is nln⁡n\sqrt{n\ln n} and the limit normal: the boundary between regimes.

InteractiveHeavy-tailed sums
Histogram of Sn/n1/αS_n/n^{1/\alpha} (n=300n = 300, α=0.80\alpha = 0.80) versus the stable law
  • histogram of 2400 sums
  • limiting stable law
  • best normal (by quartiles)
Largest summand's share: max⁡k∣Xk∣/∑k∣Xk∣\max_k |X_k| \big/ \sum_k |X_k|
does not tend to 0: a fixed fraction
  • mean
  • median
Law of XiX_i
0.80
300
View
Normalization an=n1/αa_n = n^{1/\alpha}1248.5
Interquartile range of Sn/anS_n/a_n3.39
Interquartile range of stable limit3.24
Mean share of the largest summand0.392
Median share of the largest summand0.325
Replicas outside the window16.1 %
Simulate 24002400 sums SnS_n of ±\pmPareto(α)(\alpha) (or Cauchy) variables, with nn up to 12001200. Left, ‘Body’: histogram of Sn/n1/αS_n/n^{1/\alpha} versus limiting stable law (orange, numerically inverting e−cα∣t∣αe^{-c_\alpha\abs{t}^\alpha}) and best normal (dotted). ‘Tails’: P(∣Sn/n1/α∣>x)\Pr(\abs{S_n/n^{1/\alpha}} > x) on log-log axes, where stable is a straight line of slope −α-\alpha and normal plunges. Right: mean largest-summand share of ∑k∣Xk∣\sum_k\abs{X_k}. How much does one summand weigh? Lower α\alpha below 11 and watch that share stop tending to 00. Compare ‘Pareto ±3\pm 3’, which has variance.

What you should have seen:

  • The histogram of Sn/n1/αS_n/n^{1/\alpha} fits the stable law, not normal. With α=0.8\alpha = 0.8 and n=300n = 300, interquartile range of Sn/n1/αS_n/n^{1/\alpha} is 3.43.4 (theoretical stable, 3.243.24); the best normal with the same range cannot reproduce either the sharp center or long tails. The reason is e−cα∣t∣αe^{-c_\alpha\abs{t}^\alpha}: the nondifferentiable peak at t=0t = 0 produces slow tails, and slow decay when ∣t∣→∞\abs{t} \to \infty (slower than exponential if α<1\alpha < 1) gives the sharp center.
  • In ‘Tails’, stable is a straight line. P(∣Yα∣>x)∼Cαx−α\Pr(\abs{Y_\alpha} > x) \sim C_\alpha x^{-\alpha} with Cα=2cαΓ(α)sin⁡(πα/2)/πC_\alpha = 2c_\alpha\Gamma(\alpha)\sin(\pi\alpha/2)/\pi (dashed orange line); normal plunges on the same scale. With theorem value cαc_\alpha, Cα=Γ(1−α)Γ(α)sin⁡(πα)/π=1C_\alpha = \Gamma(1 - \alpha)\Gamma(\alpha)\sin(\pi\alpha)/\pi = 1 by the reflection formula: the normalized sum inherits precisely the x−αx^{-\alpha} tail of one summand, another face of the ‘single big jump’. The asymptotic arrives late: with α=0.8\alpha = 0.8, at x=3x = 3 the stable tail is still 16 %16\,\% below the line, approaching it only for xx between 1010 and 3030.
  • If α<1\alpha < 1, one summand weighs a fixed fraction of the sum. Mean share of max⁡k∣Xk∣/∑k∣Xk∣\max_k\abs{X_k}/\sum_k\abs{X_k} remains around 0.40.4 for α=0.8\alpha = 0.8 (0.390.39 with n=300n = 300, 0.370.37 with n=1000n = 1000) and 0.630.63 for α=0.5\alpha = 0.5, once nn is moderate. For α>1\alpha > 1 it falls slowly: n1/α−1n^{1/\alpha - 1}, with α=1.5\alpha = 1.5 it is 0.140.14 at n=100n = 100 and 0.070.07 at n=1000n = 1000. This is the ‘single big jump’ principle: P(Sn>x)≈nP(X>x)\Pr(S_n > x) \approx n\Pr(X > x) for large xx, the sum is its largest summand.
  • Convergence is extremely slow with α=1.5\alpha = 1.5, even more near 22 (try α=1.8\alpha = 1.8): the stable law is the limit, but at n=1000n = 1000 much of the preceding regime remains. Empirical studies place financial-return tail exponent around 33 (the ‘inverse cubic law’), where variance exists and the CLT applies, but tails delay it considerably.
  • Cauchy (α=1\alpha = 1) is stable under normalization nn. The average of nn Cauchy variables has the same law as one, with interquartile range 22 for all nn, as characteristic function e−∣t∣e^{-\abs{t}} showed.

CLT versus concentration: approximation or guarantee

The lesson closes with a comparison guiding tool choice. The CLT says P(∣Xˉn−μ∣>t)≈2Φˉ(n t/σ)\Pr(\abs{\bar X_n - \mu} > t) \approx 2\bar\Phi(\sqrt{n}\,t/\sigma) for large nn (with Φˉ=1−Φ\bar\Phi = 1 - \Phi), saying nothing about the error of “≈\approx” at a given nn. The next lessons’ concentration inequalities (Chernoff, Hoeffding) bound all nn, at the cost of conservatism.

With XiX_i Bernoulli(1/2)(1/2) variables, n=100n = 100 and t=0.1t = 0.1 (i.e. more than 6060 or fewer than 4040 heads):

MethodP(∣Xˉn−1/2∣>0.1)\Pr(\abs{\bar X_n - 1/2} > 0.1)Guarantee
Exact (binomial)0.03520.0352none needed: it is the value
CLT, no correction0.04550.0455none, an approximation
CLT, continuity correction0.03570.0357none, but excellent
Hoeffding, 2e−2nt22e^{-2nt^2}0.27070.2707valid bound, nearly eight times looser

Neither is ‘better’: they serve different purposes. The CLT is exact in the limit and very precise centrally, with no formal guarantee (except Berry-Esseen’s absolute error of order n−1/2n^{-1/2}, useless for tails as shown). Concentration bounds are nonasymptotic guarantees and pessimistic. For small probabilities (10−410^{-4}, 10−610^{-6}, critical-system error rates), use a Chernoff-type bound or Cramér large-deviation analysis, which gets the exponent (relative error), not just absolute value.

Implementation from scratch

We build three things with NumPy: the exact sum law by fast convolution and Kolmogorov-distance slope, multivariate delta method with coverage check, and comparison of normalizations n\sqrt{n} and n1/αn^{1/\alpha}.

[ ]Exact sum law by FFT and Berry-Esseen slopeBrowser
import numpy as np
from scipy import stats

def suma_exacta(masas, n):
    """Ley de la suma de n copias independientes de una variable con valores 0, 1, ..., m-1.
    Teorema de convolución: la FFT de la ley de la suma es la potencia n-ésima de la FFT de la ley base."""
    L = n * (len(masas) - 1) + 1                      # soporte de la suma: 0, ..., n(m-1)
    N = 1 << int(np.ceil(np.log2(L)))                 # longitud de FFT: potencia de 2 sin solapamiento circular
    q = np.fft.irfft(np.fft.rfft(masas, N) ** n, N)[:L]
    return np.clip(q, 0.0, None)

# 1) Comprobación: la suma de 50 Bernoulli(0.05) es una Binomial(50, 0.05)
q = suma_exacta(np.array([0.95, 0.05]), 50)
print("error máximo frente a scipy.stats.binom:", np.abs(q - stats.binom.pmf(np.arange(51), 50, 0.05)).max())

# 2) Tres leyes base, discretizadas en una red de paso h (la masa de cada celda se coloca en su centro)
def base_continua(cdf, h, tope):
    k = np.arange(int(tope / h) + 1)
    return np.diff(cdf(np.concatenate([[0.0], (k + 0.5) * h])))

def distancia_kolmogorov(q, h, n, media, desv, red=False):
    """sup |F_n - Φ| de la suma estandarizada. Si la ley es de red se mira en los saltos (por ambos lados);
    si es continua discretizada, en los bordes de celda, donde la discretización no añade error de orden h."""
    x = np.arange(len(q)) * h
    F = np.cumsum(q)
    s = desv * np.sqrt(n)
    if red:
        z = (x - n * media) / s
        return max(np.abs(F - stats.norm.cdf(z)).max(), np.abs(F - q - stats.norm.cdf(z)).max())
    return np.abs(F - stats.norm.cdf((x + h / 2 - n * media) / s)).max()

def momentos(masas, h):
    x = np.arange(len(masas)) * h
    m = (x * masas).sum()
    return m, np.sqrt(((x - m) ** 2 * masas).sum())

h = 0.05
leyes = {
    "Uniforme(0,1)":   (base_continua(lambda x: np.clip(x, 0, 1), h, 1.0), h, False),
    "Exponencial(1)":  (base_continua(lambda x: 1 - np.exp(-x), h, 30.0), h, False),
    "Bernoulli(0.05)": (np.array([0.95, 0.05]), 1.0, True),
}
ns = np.array([1, 3, 10, 30, 100, 300])
print(f"\n{'ley':16s}" + "".join(f"{'n=' + str(n):>9s}" for n in ns) + "   pendiente   √n·D_n (n=300)")
for nombre, (masas, paso, red) in leyes.items():
    masas = masas / masas.sum()
    mu, sd = momentos(masas, paso)
    D = np.array([distancia_kolmogorov(suma_exacta(masas, n), paso, n, mu, sd, red) for n in ns])
    pend = np.polyfit(np.log(ns[2:]), np.log(D[2:]), 1)[0]
    print(f"{nombre:16s}" + "".join(f"{d:9.4f}" for d in D) + f"   {pend:+.2f}      {np.sqrt(300) * D[-1]:.3f}")

The central trick is np.fft.rfft(masas, N) ** n: convolution of nn copies is the nn-th power in frequency space, exactly characteristic function φn\varphi^n from the proof, evaluated on a frequency grid. The first line checks that with Bernoulli the method reproduces the binomial to rounding error. The table matches the figure: slope −1.01-1.01 for uniform (order 1/n1/n error), −0.50-0.50 for exponential and Bernoulli (order n−1/2n^{-1/2}). The last column completes the calculation: for exponential nDn≈0.133=0.0665⋅γ\sqrt{n}D_n \approx 0.133 = 0.0665\cdot\gamma, for Bernoulli(0.05) 1.18≈0.275+0.9161.18 \approx 0.275 + 0.916 (skewness plus lattice jump).

Now multivariate delta. Function delta_method_ci is the preceding theorem with Σ\mat{\Sigma} and ∇g\grad g replaced by estimates (justified by Slutsky); simulation checks interval coverage.

[ ]Delta method for functions of several means, with coverageBrowser
import numpy as np
from scipy import stats

def delta_method_ci(samples, g, grad_g, level=0.95):
    """Intervalo asintótico para g(μ) a partir de una muestra iid de vectores (n, d).
    TCL multivariante: √n (X̄ − μ) → N(0, Σ).  Método delta: √n (g(X̄) − g(μ)) → N(0, ∇gᵀ Σ ∇g)."""
    x = np.asarray(samples, dtype=float)
    if x.ndim == 1:
        x = x[:, None]
    n = x.shape[0]
    media = x.mean(axis=0)
    centrado = x - media
    Sigma = centrado.T @ centrado / (n - 1)            # estimador de Σ (consistente: ley de los grandes números)
    grad = np.atleast_1d(grad_g(media))                # ∇g evaluado en X̄ (consistente: aplicación continua)
    error_tipico = np.sqrt(grad @ Sigma @ grad / n)    # Slutsky permite sustituir (μ, Σ) por (X̄, Σ̂)
    z = stats.norm.ppf(0.5 + level / 2)
    estimacion = g(media)
    return estimacion, estimacion - z * error_tipico, estimacion + z * error_tipico

# Razón de medias R = E[Y]/E[X] con (X, Y) positivos y correlacionados: X ~ Gamma(1.5, 1), Y = 0.5 X + Gamma(1, 1)
rng = np.random.default_rng(1)
def muestras(reps, n):
    x = rng.gamma(1.5, 1.0, (reps, n))
    return np.stack([x, 0.5 * x + rng.gamma(1.0, 1.0, (reps, n))], axis=-1)   # forma (reps, n, 2)

R_verdadera = (0.5 * 1.5 + 1.0) / 1.5                  # E[Y]/E[X] = 7/6
razon = lambda m: m[1] / m[0]
grad_razon = lambda m: np.array([-m[1] / m[0] ** 2, 1.0 / m[0]])

est, lo, hi = delta_method_ci(muestras(1, 100)[0], razon, grad_razon)
print(f"una muestra con n = 100: R̂ = {est:.3f}, IC al 95 %: [{lo:.3f}, {hi:.3f}]   (R verdadera = {R_verdadera:.3f})")

print(f"\n{'n':>5s} {'cobertura del IC al 95 %':>26s}")
for n in (10, 30, 100, 400):
    datos = muestras(1000, n)
    cubre = 0
    for x in datos:
        _, lo, hi = delta_method_ci(x, razon, grad_razon)
        cubre += lo <= R_verdadera <= hi
    print(f"{n:5d} {100 * cubre / len(datos):25.1f}%")

Coverage is the quality check: it promises 95 %95\,\% and achieves it only asymptotically. With n=10n = 10 it is around 88 %88\,\% (with 10001000 replicates Monte Carlo error is about ±0.7\pm 0.7 points), approaching 95 %95\,\% as nn grows: 92 %92\,\% with n=30n = 30, 93 %93\,\% with n=100n = 100 and 94 %94\,\% with n=400n = 400. The code shows both proof ingredients: sample covariance estimates Σ\mat{\Sigma} and gradient evaluated at Xˉ\bar{\vb{X}} estimates ∇g(μ)\grad g(\vb{\mu}); Slutsky says substitution preserves validity.

Finally contrast both normalizations, the entire lesson in a table: three tail indices (33 with variance, 1.51.5 with mean but no variance, 0.80.8 without mean) and three sizes.

[ ]√n versus n^(1/α) normalization in heavy-tailed sumsBrowser
import numpy as np

rng = np.random.default_rng(3)
reps = 1500
ric = lambda x: np.subtract(*np.quantile(x, [0.75, 0.25]))      # rango intercuartílico: robusto a colas pesadas

# Sumas de ±Pareto(α): P(|X| > x) = x^(-α), simétricas. Con α = 1.5 hay media pero no varianza; con α = 3 hay varianza.
print(f"{'α':>4s} {'n':>6s} {'RIC de S/√n':>12s} {'RIC de S/n^(1/α)':>17s} {'peso medio del máximo':>22s}")
for alfa in (3.0, 1.5, 0.8):
    for n in (10, 100, 1000):
        mag = rng.random((reps, n)) ** (-1 / alfa)
        X = mag * rng.choice([-1.0, 1.0], size=(reps, n))
        S = X.sum(axis=1)
        peso = (mag.max(axis=1) / mag.sum(axis=1)).mean()
        print(f"{alfa:4.1f} {n:6d} {ric(S / np.sqrt(n)):12.2f} {ric(S / n ** (1 / alfa)):17.2f} {peso:22.3f}")

# La media de Cauchy no mejora con n: S_n/n tiene la misma ley que X_1
C = rng.standard_cauchy((reps, 1000))
print("\nCauchy: RIC de la media con n = 1, 10, 100, 1000 →", [round(float(ric(C[:, :n].mean(axis=1))), 2) for n in (1, 10, 100, 1000)], "(el de X_1 es 2)")

The reading is clear. With α=3\alpha = 3 the n\sqrt{n} column is stable near 2.22.2 (n1/3n^{1/3} grows without bound, showing the wrong normalization). With α=1.5\alpha = 1.5 the n1/αn^{1/\alpha} column is stable near 3.13.1 to 3.53.5 (the stable law’s theoretical interquartile range is 3.583.58, reached slowly), and n\sqrt{n} grows without bound: 4.64.6, 7.27.2, 11.111.1, a power n1/6n^{1/6}. With α=0.8\alpha = 0.8 normalization n\sqrt{n} is absurd: 18.818.8, 96.796.7 and 550.6550.6. The last column repeats the figure: largest-summand share stabilizes near 0.370.37 for α=0.8\alpha = 0.8 and collapses with α=3\alpha = 3 (0.190.19, 0.0420.042, 0.0090.009). The last line is Cauchy: mean interquartile range is 22 for every nn, identical to X1X_1.

With libraries

SciPy provides normal, gamma and bootstrap routines to compare with delta. A single sample shows the difference between a symmetric interval (delta) and one following data skewness (percentile bootstrap); the exact gamma law shows the normal-tail error no moderate nn fixes.

[ ]Delta versus bootstrap, normal versus exact tail (SciPy)Browser
import numpy as np
from scipy import stats

# 1) Delta frente a bootstrap percentil en una sola muestra de n = 50 pares (X, Y)
rng = np.random.default_rng(7)
n = 50
x = rng.gamma(1.5, 1.0, n)
y = 0.5 * x + rng.gamma(1.0, 1.0, n)
razon = lambda a, b, axis=-1: b.mean(axis=axis) / a.mean(axis=axis)
m = np.array([x.mean(), y.mean()])
S = np.cov(np.stack([x, y]))
grad = np.array([-m[1] / m[0] ** 2, 1 / m[0]])
se = np.sqrt(grad @ S @ grad / n)
z = stats.norm.ppf(0.975)
print(f"razón de medias: {m[1] / m[0]:.3f}")
print(f"IC delta (95 %):      [{m[1] / m[0] - z * se:.3f}, {m[1] / m[0] + z * se:.3f}]   error típico {se:.3f}")
bs = stats.bootstrap((x, y), razon, paired=True, vectorized=True, n_resamples=2000, method="percentile", random_state=rng)
print(f"IC bootstrap (95 %):  [{bs.confidence_interval.low:.3f}, {bs.confidence_interval.high:.3f}]   error típico {bs.standard_error:.3f}")

# 2) La aproximación normal en las colas: suma de n = 30 exponenciales, P(S* > z)
n = 30
print(f"\n{'z':>3s} {'exacta (Gamma)':>15s} {'normal':>12s} {'cociente':>9s}")
for zz in (1, 2, 3, 4, 5):
    exacta = stats.gamma.sf(n + zz * np.sqrt(n), a=n)
    normal = stats.norm.sf(zz)
    print(f"{zz:3d} {exacta:15.3e} {normal:12.3e} {exacta / normal:9.1f}")

Bootstrap standard error matches delta (0.1970.197 versus 0.1980.198): asymptotic variance is already right. Interval shape differs: bootstrap shifts right ([1.199,1.950][1.199, 1.950] versus [1.128,1.904][1.128, 1.904]) because the ratio law has a right tail and first-order delta sees only the tangent. The second table illustrates the warning: for n=30n = 30 exponential summands, the distribution center (z=1z = 1) is good, but at z=4z = 4 true probability is 1212 times normal, and at z=5z = 5, 9494 times.

Common mistakes

Exercises

ProofThe Lindeberg-Lévy CLT
Prove: Let X1,X2,…X_1, X_2, \dots be iid with E[X1]=μ\E[X_1] = \mu and 0<σ2=Var⁡(X1)<∞0 < \sigma^2 = \Var(X_1) < \infty. Then n(Xˉn−μ)/σ→dN(0,1)\sqrt{n}(\bar X_n - \mu)/\sigma \xrightarrow{d} \Normal(0, 1).
0
Use the standardized variable's characteristic function, the complex exponential's Taylor expansion with bounded remainder, and Lévy's continuity theorem.

Step 1 of 5. What is the first step?

ProofThe univariate delta method
Prove: If n(Tn−θ)→dN(0,σ2)\sqrt{n}(T_n - \theta) \xrightarrow{d} \Normal(0, \sigma^2) and g:R→Rg : \R \to \R is differentiable at θ\theta, then n(g(Tn)−g(θ))→dN(0,g′(θ)2σ2)\sqrt{n}\big(g(T_n) - g(\theta)\big) \xrightarrow{d} \Normal(0, g'(\theta)^2\sigma^2).
0
Use the derivative definition with a continuous remainder, Slutsky's lemma and the continuous mapping theorem.

Step 1 of 5. How is differentiability of gg expressed to control the remainder?

NumericSum of one hundred uniforms
Let S=U1+⋯+U100S = U_1 + \dots + U_{100} with independent uniform UiU_i on (0,1)(0, 1). Using the CLT approximation, what is P(S≥55)\Pr(S \ge 55)?
NumericNumber of exponentials guaranteed by Berry-Esseen
Let XiX_i be exponential with mean 11 (where ρ/σ3=12/e−2\rho/\sigma^3 = 12/e - 2). What is the smallest nn for which Berry-Esseen with C=0.4748C = 0.4748 guarantees sup⁡x∣Fn(x)−Φ(x)∣≤0.01\sup_x\abs{F_n(x) - \Phi(x)} \le 0.01?
NumericDelta-method standard error of a ratio
With n=400n = 400 observations, mean (Xˉ,Yˉ)(\bar X, \bar Y) has μ=(2,3)⊤\vb{\mu} = (2, 3)\T and one observation has Σ=(10.50.52)\mat{\Sigma} = \begin{pmatrix}1 & 0.5\\ 0.5 & 2\end{pmatrix}. What is the asymptotic standard deviation of Yˉ/Xˉ\bar Y/\bar X, i.e. ∇g⊤Σ∇g/n\sqrt{\grad g\T\mat{\Sigma}\grad g/n} with g(x,y)=y/xg(x, y) = y/x at μ\vb{\mu}?
QuizThe Cauchy mean
Let X1,…,XnX_1, \dots, X_n be iid standard Cauchy. Why does the CLT not apply to Xˉn\bar X_n, and what law does Xˉn\bar X_n have?
QuizWhere does the CLT hold?
For which sequences of independent variables does (Sn−ESn)/Var⁡Sn→dN(0,1)(S_n - \E S_n)/\sqrt{\Var S_n} \xrightarrow{d} \Normal(0, 1) hold?

More than one answer may be correct.

QuizThe correct normalization
Let XiX_i be iid symmetric with P(∣X∣>x)=x−1.2\Pr(\abs{X} > x) = x^{-1.2} for x≥1x \ge 1. Which normalization ana_n makes Sn/anS_n/a_n converge to a nondegenerate law?
CodeAsymptotic delta-method interval
Implement delta_method_ci(samples, g, grad_g, level=0.95). samples is an array of shape (n, d) (an iid sample of vectors), g receives the vector of means (shape (d,)) and returns a scalar, and grad_g returns its gradient (shape (d,)). Return tuple (estimacion, inferior, superior), with estimacion = g(media), standard error ∇gTΣ^∇g/n\sqrt{\nabla g^T \hat{\Sigma} \nabla g / n} (where Σ^\hat{\Sigma} is sample covariance with denominator n−1n - 1 and gradient evaluated at the sample mean) and endpoints estimacion∓z⋅error\text{estimacion} \mp z\cdot\text{error}, with zz the two-sided normal quantile at level. Tests check values and simulated coverage.
import numpy as np
from scipy import stats

def delta_method_ci(samples, g, grad_g, level=0.95):
  # samples: (n, d). Devuelve (estimacion, inferior, superior)
  pass
Shift+Enter to run

Summary

Key idea
The central limit theorem says the mean of independent finite-variance variables is approximately normal: n(Xˉn−μ)/σ→dN(0,1)\sqrt{n}(\bar X_n - \mu)/\sigma \xrightarrow{d} \Normal(0, 1). The proof is the characteristic function’s Taylor expansion: φ(t/n)n=(1−t2/(2n)+o(1/n))n→e−t2/2\varphi(t/\sqrt{n})^n = (1 - t^2/(2n) + o(1/n))^n \to e^{-t^2/2}, and Gaussian is averaging’s finite-variance fixed point. Lindeberg-Feller extends to different summands provided none accumulates a fixed variance fraction; otherwise the limit keeps its shape. Berry-Esseen quantifies rate Dn≤0.4748 ρ/(σ3n)D_n \le 0.4748\,\rho/(\sigma^3\sqrt{n}) and Edgeworth explains it: first-order error is 0.0665 ∣γ∣/n0.0665\,\abs{\gamma}/\sqrt{n} plus the staircase jump for lattice laws. This guarantees absolute error; tails may be far from normal. Cramér-Wold brings the theorem to Rd\R^d, n(Xˉn−μ)→dN(0,Σ)\sqrt{n}(\bar{\vb{X}}_n - \vb{\mu}) \xrightarrow{d} \Normal(\vb{0}, \mat{\Sigma}), and the delta method linearizes gg in a neighborhood of width σ/n\sigma/\sqrt{n} to give n(g(Xˉn)−g(μ))→dN(0,∇g⊤Σ∇g)\sqrt{n}(g(\bar{\vb{X}}_n) - g(\vb{\mu})) \xrightarrow{d} \Normal(0, \grad g\T\mat{\Sigma}\grad g) (degenerate if ∇g=0\grad g = \vb{0}). Without variance normalization is n1/αn^{1/\alpha} and the limit is heavy-tailed stable, where one summand may weigh a fixed fraction of the sum.