Complex Systems · 1/8 · Series index · Notation

The Central Limit Theorem: Why Sums of Many Random Contributions Are Approximately Normal

A falling-ball apparatus illustrates a random walk: at each level, a ball moves randomly to the left or right, and its final position is the sum of many random displacements. The central limit theorem explains why suitably standardized sums often approach a normal distribution.

Distinguishing Random Variables, Distributions, and Moments

A random variable XX assigns a numerical value to the outcome of a random experiment; xx denotes one of its possible values. A continuous random variable is described by a probability density function (PDF), pX(x)p_X(x):

pX(x)0,pX(x)dx=1,P(aXb)=abpX(x)dx.\begin{aligned} p_X(x)&\geq 0,\\ \int_{-\infty}^{\infty}p_X(x)\,dx&=1,\\ P(a\leq X\leq b)&=\int_a^b p_X(x)\,dx. \end{aligned}

The height of a density is not the probability of that exact value; a continuous distribution has P(X=x)=0P(X=x)=0. A discrete random variable instead uses a probability mass function (PMF), pX(x)=P(X=x)p_X(x)=P(X=x), and integration is replaced by summation over all possible values. For example, xpX(x)=1\sum_xp_X(x)=1.

Mean, Variance, and Raw Moments

The mean describes location, the variance measures squared fluctuations around the mean, and the standard deviation σ\sigma has the same units as XX:

μ=E[X]=xpX(x)dx,σ2=Var(X)=E[(Xμ)2]=E[X2](E[X])2.\begin{aligned} \mu&=E[X]=\int_{-\infty}^{\infty}x p_X(x)\,dx,\\ \sigma^2&=\operatorname{Var}(X)=E[(X-\mu)^2]\\ &=E[X^2]-(E[X])^2. \end{aligned}

The kkth raw moment is mk=E[Xk]m_k=E[X^k]. Therefore,

m0=1,μ=m1,σ2=m2m12.m_0=1,\qquad \mu=m_1,\qquad \sigma^2=m_2-m_1^2.

The second raw moment m2m_2 equals the variance only when μ=0\mu=0. Do not confuse raw moments with central moments, E[(Xμ)k]E[(X-\mu)^k].

General and Standard Normal Distributions

A general normal, or Gaussian, distribution is written as XN(μ,σ2)X\sim\mathcal N(\mu,\sigma^2). Its second parameter is the variance:

pX(x)=1σ2πexp ⁣[(xμ)22σ2],σ>0.p_X(x)=\frac{1}{\sigma\sqrt{2\pi}} \exp\!\left[-\frac{(x-\mu)^2}{2\sigma^2}\right],\qquad \sigma>0.

A standard normal variable ZN(0,1)Z\sim\mathcal N(0,1) has density

ϕ(z)=12πez2/2,E[Z]=0,Var(Z)=1.\phi(z)=\frac{1}{\sqrt{2\pi}}e^{-z^2/2},\qquad E[Z]=0,\quad \operatorname{Var}(Z)=1.

If XN(μ,σ2)X\sim\mathcal N(\mu,\sigma^2), then (Xμ)/σN(0,1)(X-\mu)/\sigma\sim\mathcal N(0,1). Define the standard normal cumulative distribution function by

Φ(z)=zϕ(u)du.\Phi(z)=\int_{-\infty}^z\phi(u)\,du.

An interval probability is P(aZb)=Φ(b)Φ(a)P(a\leq Z\leq b)=\Phi(b)-\Phi(a), and symmetry gives Φ(z)=1Φ(z)\Phi(-z)=1-\Phi(z).

The Precise CLT Statement and Its Assumptions

Let X1,,XnX_1,\ldots,X_n be independent and identically distributed (i.i.d.), with

E[Xi]=μ finite,0<Var(Xi)=σ2<.E[X_i]=\mu\ \text{finite},\qquad 0<\operatorname{Var}(X_i)=\sigma^2<\infty.

“Identically distributed” means that all variables follow the same probability law; it does not mean that every observed value is identical. Independence means that the joint probability law factorizes: learning outcomes for any subset does not change the joint distribution of the remaining variables. Define the sum and sample mean as

Sn=i=1nXi,Xn=Snn.S_n=\sum_{i=1}^nX_i,\qquad \overline X_n=\frac{S_n}{n}.

The central limit theorem (CLT) states that the standardized sum converges in distribution:

Zn=Snnμσn=n(Xnμ)σ,ZndN(0,1),n.\boxed{ \begin{aligned} Z_n&=\frac{S_n-n\mu}{\sigma\sqrt n} =\frac{\sqrt n(\overline X_n-\mu)}{\sigma},\\ Z_n&\xrightarrow{d}\mathcal N(0,1),\qquad n\to\infty. \end{aligned} }

Here, convergence in distribution means that P(Znz)Φ(z)P(Z_n\leq z)\to\Phi(z) for every fixed real number zz. The original variables XiX_i may be discrete or non-normal. The theorem does not assert exact normality at finite nn, nor does it guarantee pointwise convergence of arbitrary probability densities.

Why Standardization Uses the Square Root of nn

The scaling of means and variances explains the appearance of n\sqrt n:

E[Sn]=nμ,Var(Sn)=nσ2,E[Xn]=μ,Var(Xn)=σ2n.\begin{aligned} E[S_n]&=n\mu,\\ \operatorname{Var}(S_n)&=n\sigma^2,\\ E[\overline X_n]&=\mu,\\ \operatorname{Var}(\overline X_n)&=\frac{\sigma^2}{n}. \end{aligned}

Independence makes the cross-covariances zero. The sum has standard deviation σn\sigma\sqrt n, whereas the mean has standard deviation σ/n\sigma/\sqrt n. For large nn, we therefore often write the approximations

SnN(nμ,nσ2),XnN ⁣(μ,σ2n).\begin{aligned} S_n&\approx\mathcal N(n\mu,n\sigma^2),\\ \overline X_n&\approx\mathcal N\!\left(\mu,\frac{\sigma^2}{n}\right). \end{aligned}

When μ=0,σ2=1\mu=0,\sigma^2=1, Zn=nXn=Sn/nZ_n=\sqrt n\,\overline X_n=S_n/\sqrt n; the square root covers only nn. The fluctuations of the unstandardized mean shrink to zero as it approaches the constant μ\mu; we must not write XnN(0,1)\overline X_n\to\mathcal N(0,1). A density approximation must also include the correct normalization factor:

pXn(x)nσ2πexp ⁣[n(xμ)22σ2].p_{\overline X_n}(x)\approx\frac{\sqrt n}{\sigma\sqrt{2\pi}} \exp\!\left[-\frac{n(x-\mu)^2}{2\sigma^2}\right].

Why the CLT Is Useful, and Why Its Assumptions Matter

Wealth, stock prices, earthquakes, and supermarket sales are influenced by many factors, which can motivate a normal model as an initial hypothesis. Before applying this reasoning, check whether the contributions add, whether they are independent, and whether the relevant distributional and finite-variance assumptions hold. The examples themselves do not prove that these quantities are normally distributed. Correlated interactions, multiplicative growth, or very heavy tails can invalidate this simple argument.

The version used here assumes i.i.d. variables with finite variance. Having equal means and variances alone does not imply identical distributions. More general CLTs can relax assumptions, but require additional theorems. There is also no universal threshold such as “n30n\geq30” that guarantees a reliable approximation for every distribution; skewness and heavy tails affect the rate of convergence.

Moment-Generating Functions: Encoding Moments in One Function

The moment-generating function (MGF) is

MX(t)=E[etX]=etxpX(x)dx.M_X(t)=E[e^{tX}] =\int_{-\infty}^{\infty}e^{tx}p_X(x)\,dx.

For a discrete variable, use MX(t)=xetxpX(x)M_X(t)=\sum_x e^{tx}p_X(x) instead.

Generating Moments by Differentiating at Zero

Expand etXe^{tX} around t=0t=0. When summation and expectation can be interchanged,

etX=1+tX+t2X22!+t3X33!+,MX(t)=1+m1t+m2t22!+m3t33!+.\begin{aligned} e^{tX}&=1+tX+\frac{t^2X^2}{2!}+\frac{t^3X^3}{3!}+\cdots,\\ M_X(t)&=1+m_1t+\frac{m_2t^2}{2!}+\frac{m_3t^3}{3!}+\cdots. \end{aligned}

Consequently,

MX(k)(0)=mk=E[Xk].\boxed{M_X^{(k)}(0)=m_k=E[X^k].}

The notation MX(k)M_X^{(k)} denotes the kkth derivative, not the kkth power of MXM_X. Differentiate with respect to tt first, then set t=0t=0. Substituting t=0t=0 directly into the MGF gives only MX(0)=1M_X(0)=1.

A sufficient condition for these standard MGF operations is that MX(t)M_X(t) be finite on an open neighborhood of 00. Not every distribution has such an MGF; even the existence of all raw moments does not automatically guarantee it. The usual finite-variance CLT does not require an MGF to exist; the MGF proof given here imposes an additional existence assumption.

Translation, Scaling, and Independent Sums

The proof below uses two rules:

MaX+b(t)=ebtMX(at),MX+Y(t)=MX(t)MY(t)(X,Y independent).\begin{aligned} M_{aX+b}(t)&=e^{bt}M_X(at),\\ M_{X+Y}(t)&=M_X(t)M_Y(t)\qquad (X,Y\ \text{independent}). \end{aligned}

The first follows from et(aX+b)=ebteatXe^{t(aX+b)}=e^{bt}e^{atX}. The second uses independence to obtain E[etXetY]=E[etX]E[etY]E[e^{tX}e^{tY}]=E[e^{tX}]E[e^{tY}]. Being merely uncorrelated is generally insufficient for the second rule.

The Standard Normal MGF: Complete the Square

Let ZN(0,1)Z\sim\mathcal N(0,1). Then

MZ(t)=12πez2/2+tzdz=et2/212πe(zt)2/2dz=et2/2.\begin{aligned} M_Z(t) &=\int_{-\infty}^{\infty}\frac{1}{\sqrt{2\pi}}e^{-z^2/2+tz}\,dz\\ &=e^{t^2/2}\int_{-\infty}^{\infty}\frac{1}{\sqrt{2\pi}}e^{-(z-t)^2/2}\,dz\\ &=\boxed{e^{t^2/2}}. \end{aligned}

The last integral is the integral of a normal density with mean tt and variance 11, so it equals 11. Writing X=μ+σZX=\mu+\sigma Z then gives the MGF of a general normal distribution:

MX(t)=exp ⁣(μt+σ2t22).M_X(t)=\exp\!\left(\mu t+\frac{\sigma^2t^2}{2}\right).

The first four derivatives of the standard normal MGF are

MZ(t)=tet2/2,MZ(t)=(1+t2)et2/2,MZ(t)=(3t+t3)et2/2,MZ(4)(t)=(3+6t2+t4)et2/2.\begin{aligned} M'_Z(t)&=t e^{t^2/2},\\ M''_Z(t)&=(1+t^2)e^{t^2/2},\\ M'''_Z(t)&=(3t+t^3)e^{t^2/2},\\ M^{(4)}_Z(t)&=(3+6t^2+t^4)e^{t^2/2}. \end{aligned}

Thus m0=1,m1=0,m2=1,m3=0,m4=3m_0=1,m_1=0,m_2=1,m_3=0,m_4=3.

Distinguishing Raw Moments, Skewness, and Kurtosis

For a general distribution, skewness and kurtosis are defined as

γ1=E[(Xμ)3]σ3,β2=E[(Xμ)4]σ4,γ2=β23(excess kurtosis).\begin{aligned} \gamma_1&=\frac{E[(X-\mu)^3]}{\sigma^3},\\ \beta_2&=\frac{E[(X-\mu)^4]}{\sigma^4},\\ \gamma_2&=\beta_2-3\qquad\text{(excess kurtosis)}. \end{aligned}

The identities m3=γ1m_3=\gamma_1 and m4=β2m_4=\beta_2 hold only for standardized variables. A normal distribution has skewness 00, kurtosis 33, and excess kurtosis 00; keep these three quantities distinct.

The MGF Proof of the CLT: Where Each Assumption Is Used

Consider the simplified case E[Xi]=0E[X_i]=0, E[Xi2]=1E[X_i^2]=1, and assumes that the MGF of an individual XiX_i is finite near 00. The goal is to show that the MGF of Zn=Sn/nZ_n=S_n/\sqrt n converges to et2/2e^{t^2/2}.

Step 1: Turn the Exponential of a Sum into a Product

MZn(t)=E ⁣[exp ⁣(tni=1nXi)]=E ⁣[i=1netXi/n].\begin{aligned} M_{Z_n}(t) &=E\!\left[\exp\!\left(\frac{t}{\sqrt n}\sum_{i=1}^nX_i\right)\right]\\ &=E\!\left[\prod_{i=1}^n e^{tX_i/\sqrt n}\right]. \end{aligned}

Step 2: Factor the Expectation by Independence, Then Use Identical Distributions

MZn(t)=i=1nE[etXi/n]=[MX ⁣(tn)]n.\begin{aligned} M_{Z_n}(t)&=\prod_{i=1}^n E[e^{tX_i/\sqrt n}]\\ &=\left[M_X\!\left(\frac{t}{\sqrt n}\right)\right]^n. \end{aligned}

This is precisely where independence and identical distributions enter the proof.

Step 3: Use a Second-Order Taylor Expansion at Zero

For fixed tt, let u=t/n0u=t/\sqrt n\to0. Since MX(0)=1M_X(0)=1, MX(0)=0M'_X(0)=0, and MX(0)=1M''_X(0)=1,

MX(u)=MX(0)+MX(0)u+MX(0)2u2+o(u2)=1+u22+o(u2).\begin{aligned} M_X(u)&=M_X(0)+M'_X(0)u+\frac{M''_X(0)}{2}u^2+o(u^2)\\ &=1+\frac{u^2}{2}+o(u^2). \end{aligned}

Therefore,

MZn(t)=[1+t22n+o ⁣(1n)]n.M_{Z_n}(t)=\left[1+\frac{t^2}{2n}+o\!\left(\frac1n\right)\right]^n.

The derivatives must be evaluated at the expansion point 00. At finite nn, we cannot discard the remainder and retain an exact equality.

Step 4: Take the Limit

Using log(1+v)=v+o(v)\log(1+v)=v+o(v),

logMZn(t)=nlog ⁣[1+t22n+o ⁣(1n)]t22.\begin{aligned} \log M_{Z_n}(t) &=n\log\!\left[1+\frac{t^2}{2n}+o\!\left(\frac1n\right)\right]\\ &\longrightarrow\frac{t^2}{2}. \end{aligned}

Hence MZn(t)et2/2M_{Z_n}(t)\to e^{t^2/2}. The continuity theorem for MGFs gives ZndN(0,1)Z_n\xrightarrow{d}\mathcal N(0,1).

Step 5: Restore a General Mean and Variance

Repeat the argument for Yi=(Xiμ)/σY_i=(X_i-\mu)/\sigma. Since E[Yi]=0E[Y_i]=0 and Var(Yi)=1\operatorname{Var}(Y_i)=1,

1ni=1nYi=SnnμσndN(0,1).\frac1{\sqrt n}\sum_{i=1}^nY_i =\frac{S_n-n\mu}{\sigma\sqrt n}\xrightarrow{d}\mathcal N(0,1).

The complete chain is: standardize → turn the exponential of a sum into a product → factor by independence → use identical distributions → expand to second order at zero → apply (1+a/n)nea(1+a/n)^n\to e^a. The finite mean determines the centering term, and the finite variance determines the scale.

Why the Finite-Variance CLT Is More General Than This Proof

We can instead use the characteristic function φX(t)=E[eitX]\varphi_X(t)=E[e^{itX}], which always exists. For a variable with mean 00 and variance 11,

φX(u)=1u22+o(u2),\varphi_X(u)=1-\frac{u^2}{2}+o(u^2),

and the same argument gives

[φX ⁣(tn)]net2/2.\left[\varphi_X\!\left(\frac{t}{\sqrt n}\right)\right]^n\to e^{-t^2/2}.

This explains how to address the gap caused by possible nonexistence of an MGF; the main derivation above still follows the MGF route.

Random Walks: From One Step to the Endpoint Distribution

Consider a walk in which each step is +1+1 to the right or 1-1 to the left, with probability 1/21/2 each. Steps are independent, and the position after nn steps is Sn=X1++XnS_n=X_1+\cdots+X_n. Repeated left or right deflections in the falling-ball apparatus provide an intuitive analogy.

The Distribution and Moments of One Step

The step distribution is discrete, so it is described by a PMF:

P(X=1)=P(X=1)=12,MX(t)=et+et2=cosht.P(X=1)=P(X=-1)=\frac12,\qquad M_X(t)=\frac{e^t+e^{-t}}{2}=\cosh t.

Since cosht=sinht\cosh' t=\sinh t and sinht=cosht\sinh' t=\cosh t,

m1=0,m2=1,m3=0,m4=1.m_1=0,\quad m_2=1,\quad m_3=0,\quad m_4=1.

We can also see this directly: an odd power of XX equals XX, while an even power is always 11. A single step therefore has mean 00 and variance 11. Its distribution is not normal: its fourth moment is 11, whereas the fourth moment of a standard normal variable is 33.

The Exact Distribution After nn Steps

Let KK be the number of steps to the right. Then KBinomial(n,1/2)K\sim\operatorname{Binomial}(n,1/2) and Sn=K(nK)=2KnS_n=K-(n-K)=2K-n, so

P(Sn=s)=2n(n(n+s)/2),s=n,n+2,,n.P(S_n=s)=2^{-n}\binom{n}{(n+s)/2},\qquad s=-n,-n+2,\ldots,n.

All other values of ss have probability 00. The endpoint has the same parity as nn. The MGF of SnS_n is (cosht)n(\cosh t)^n, and

E[Sn]=0,E[Sn2]=n,E[Sn3]=0,E[Sn4]=3n22n.\begin{aligned} E[S_n]&=0,\\ E[S_n^2]&=n,\\ E[S_n^3]&=0,\\ E[S_n^4]&=3n^2-2n. \end{aligned}

The fourth moment can also be derived by counting terms. In the expansion of (iXi)4(\sum_iX_i)^4, the only terms with nonzero expectation are those containing one index four times, or two distinct indices twice each. Hence

E[Sn4]=nE[X4]+6(n2)(E[X2])2=n+3n(n1)=3n22n.\begin{aligned} E[S_n^4]&=nE[X^4]+6\binom{n}{2}(E[X^2])^2\\ &=n+3n(n-1)\\ &=3n^2-2n. \end{aligned}

The standardized endpoint Zn=Sn/nZ_n=S_n/\sqrt n has mean 00, variance 11, skewness 00, and kurtosis

E[Zn4]=32n3.E[Z_n^4]=3-\frac2n\longrightarrow3.

Its MGF is

MZn(t)=[cosh ⁣(tn)]net2/2.M_{Z_n}(t)=\left[\cosh\!\left(\frac{t}{\sqrt n}\right)\right]^n \longrightarrow e^{t^2/2}.

Thus each step can have only two possible values while the standardized endpoint after many steps approaches a normal distribution.

Simulating the Random Walk and Interpreting the Results

Use n=5,25,125n=5,25,125. For each nn, perform 10001000 independent repetitions. In each repetition, generate nn equally likely ±1\pm1 steps and sum them, giving 10001000 endpoints. Plot a histogram of the endpoints and compare it with N(0,n)\mathcal N(0,n); alternatively, plot Sn/nS_n/\sqrt n and compare it with N(0,1)\mathcal N(0,1).

Number of steps nn E[Sn]E[S_n] SD(Sn)\operatorname{SD}(S_n) Exact kurtosis of ZnZ_n
5 0 52.236\sqrt5\approx2.236 2.6002.600
25 0 55 2.9202.920
125 0 12511.180\sqrt{125}\approx11.180 2.9842.984

Keep the following distinctions in mind when interpreting the results:

  • nn is the number of steps in each walk, which determines the theoretical approximation. The 10001000 repetitions are independent trials, which determine the sampling noise in the estimated histogram. Increasing the number of repetitions does not turn the true distribution of a fixed 55-step walk into a continuous normal distribution.
  • All three values of nn are odd, and possible endpoints are separated by 22. Histogram bins of width 22, centered on the allowed endpoints, are appropriate. Normalize the histogram as a density when overlaying a PDF. If the bars instead show PMF values, compare them with the normal distribution’s probability areas over the corresponding intervals, rather than directly with density heights.
  • The theoretical parameters are μ=0,σ=n\mu=0,\sigma=\sqrt n. When fitting the simulated sample, report the sample mean and fitted standard deviation; these will generally differ slightly because of sampling fluctuations.
  • As nn increases, the overall profile of the standardized endpoints generally becomes closer to a bell shape. At finite nn, the true distribution remains discrete, and a finite set of 10001000 simulations retains sampling noise.

Practice Questions and a General Solution Method

The following exercises combine probability, standardization, and moment-generating functions.

Question 1: Normal Approximations for a Sum and a Mean

Independent, identically distributed variables XiX_i have mean 1010 and standard deviation 22. Let n=100n=100. Find the approximate distributions of SnS_n and Xn\overline X_n, and estimate P(9.6Xn10.4)P(9.6\leq\overline X_n\leq10.4).

Solution: First note that σ2=4\sigma^2=4, so

S100N(1000,400),X100N(10,0.04).\begin{aligned} S_{100}&\approx\mathcal N(1000,400),\\ \overline X_{100}&\approx\mathcal N(10,0.04). \end{aligned}

The standard deviation of the mean is 0.20.2, so the required probability is approximately Φ(2)Φ(2)0.9545\Phi(2)-\Phi(-2)\approx0.9545. Common errors are treating 0.040.04 as the standard deviation or incorrectly writing the variance of the sum as 1002×4100^2\times4.

Question 2: Reading Moments from an MGF

Given MX(t)=exp(3t+2t2)M_X(t)=\exp(3t+2t^2), find the mean, variance, and second raw moment.

Solution: Comparing with the normal MGF exp(μt+σ2t2/2)\exp(\mu t+\sigma^2t^2/2) gives μ=3\mu=3 and σ2=4\sigma^2=4. Therefore, m2=σ2+μ2=13m_2=\sigma^2+\mu^2=13. Alternatively, differentiate to obtain MX(0)=3M'_X(0)=3 and MX(0)=13M''_X(0)=13; the latter is not the variance.

Question 3: An Exact Random-Walk Probability

What is the probability of reaching s=1s=1 after 55 steps?

Solution: This requires K=(5+1)/2=3K=(5+1)/2=3 rightward steps. Therefore,

P(S5=1)=(53)25=1032=516.P(S_5=1)=\binom{5}{3}2^{-5}=\frac{10}{32}=\frac5{16}.

Also, P(S5=0)=0P(S_5=0)=0, because an odd number of steps cannot lead to an even endpoint. A normal approximation cannot replace this restriction on the discrete support.

Question 4: Why Having Many Terms Is Not Enough

Suppose X1==Xn=YX_1=\cdots=X_n=Y, where E[Y]=0E[Y]=0 and Var(Y)=1\operatorname{Var}(Y)=1. Can the ordinary i.i.d. CLT establish Sn/nN(0,1)S_n/\sqrt n\to\mathcal N(0,1)?

Solution: No. These variables are perfectly correlated, and Sn=nYS_n=nY. Thus Var(Sn)=n2\operatorname{Var}(S_n)=n^2 and Var(Sn/n)=n\operatorname{Var}(S_n/\sqrt n)=n; the independence assumption fails. Identical distributions do not imply independence, and the covariance terms cannot be dropped.

Question 5: Two Claims About the Proof

Are the following statements correct: “Finite variance guarantees that an MGF exists near 00” and “The MGF of the mean is [MX(t/n)]n[M_X(t/\sqrt n)]^n”?

Solution: Both are incorrect. The finite-variance CLT may hold even when the MGF method cannot be applied directly. The MGF of Xn\overline X_n is [MX(t/n)]n[M_X(t/n)]^n. When μ=0,σ=1\mu=0,\sigma=1, the expression [MX(t/n)]n[M_X(t/\sqrt n)]^n instead corresponds to nXn\sqrt n\,\overline X_n.

A General Sequence for Calculations

  1. Identify the distribution of an individual variable and establish independence.
  2. Calculate μ,σ2\mu,\sigma^2.
  3. Determine whether the target is SnS_n or Xn\overline X_n.
  4. Calculate the mean and variance of that target.
  5. Standardize to ZZ.
  6. Finish using Φ\Phi, an exact discrete probability, or an MGF.

In an explanatory answer, state the theorem, its assumptions, and what a finite-sample approximation means.


← Introduction · Series index · Scale-free distributions →