Central Limit Theorem › Mathematical Statement

Michael BrenndoerferUpdated January 5, 20264 min read
Machine Learning from ScratchAll chapters
Part 1 of 9Statistics 101
Chapter 4Central Limit Theorem › Mathematical Statement
Reading section 3 of 8 · Mathematical Statement · 4 minSection 3 of 8 · 4 min

Book contents

Section 3 of 8 · 4 min read

Central Limit Theorem › Mathematical StatementOne section · Sections in this chapter3 / 8 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

The Central Limit Theorem can be stated formally as follows. Let X1,X2,…,XnX_1, X_2, \ldots, X_n be a sequence of independent and identically distributed (i.i.d.) random variables with mean μ\mu and finite variance σ2\sigma^2. Define the sample mean as:

Xˉn=1n∑i=1nXi\bar{X}_n = \frac{1}{n} \sum_{i=1}^n X_i

Then, as the sample size nn approaches infinity, the standardized sample mean converges in distribution to a standard normal distribution:

Xˉn−μσ/n→dN(0,1)\frac{\bar{X}_n - \mu}{\sigma / \sqrt{n}} \xrightarrow{\text{d}} N(0, 1)

This can be equivalently stated as:

Xˉn∼N(μ,σ2n)for large n\bar{X}_n \sim N\left(\mu, \frac{\sigma^2}{n}\right) \quad \text{for large } n

Where:

  • Xˉn\bar{X}_n: Sample mean of nn observations
  • μ\mu: Population mean (expected value of XiX_i)
  • σ2\sigma^2: Population variance
  • σ/n\sigma / \sqrt{n}: Standard error of the mean
  • N(0,1)N(0, 1): Standard normal distribution
  • →d\xrightarrow{d}: Converges in distribution

The key insight here is that the standard error of the mean decreases at a rate proportional to 1/n1/\sqrt{n}. This means that as we collect more data, our estimate of the population mean becomes more precise, and the distribution of sample means becomes increasingly concentrated around the true population mean.

To illustrate that the Central Limit Theorem applies regardless of the original population distribution, the following examples show convergence to normality across several population shapes: uniform and exponential distributions, plus a bimodal one.

Out[2]:
Visualization
Histogram showing sample means from uniform population converging to normal.
Sample means from uniform population (n=30). The uniform distribution has no skewness, so sample means converge to normality quickly. The resulting distribution is symmetric and bell-shaped, centered at the population mean of 0.5.
Histogram showing sample means from exponential population converging to normal.
Sample means from exponential population (n=30). Despite the strong right skew in the original distribution, sample means with n=30 show clear convergence to a normal distribution, though slight right skewness may still be detectable.
Histogram showing sample means from bimodal population converging to normal.
Sample means from bimodal population (n=30). Even with a population that has two distinct peaks, the distribution of sample means becomes unimodal and approximately normal. This demonstrates the remarkable power of the CLT to smooth out complex distributional features.