Math & Statistics

Central Limit Theorem

The magic theorem of statistics that guarantees sample means tend toward a Gaussian distribution regardless of original population shape.

🟢 beginner4 min readstatistics
The Central Limit Theorem (CLT) states that the sample mean of N independent, identically distributed (i.i.d.) random variables with finite variance approaches a Normal distribution N(μ, σ²/N) as N → ∞, regardless of the underlying population distribution. In ML and experimentation, CLT powers confidence intervals, hypothesis testing (z-test, t-test), A/B testing variance estimation, and mini-batch gradient descent stability.

What the CLT states

Let X_1, X_2, ..., X_N be N i.i.d. random variables with mean μ and finite variance σ².

As sample size N → ∞, the sum S_N = ∑ X_i and the sample mean X̄_N = 1/N ∑ X_i converge in distribution to a Normal distribution:

X̄_N  ~  N( μ,  σ² / N )

Standardizing the sample mean gives the standard Normal variable Z:

Z = ( X̄_N - μ ) / ( σ / √N )  ~  N( 0, 1 )

Notice the key insight: The original variables X_i can follow any distribution (Uniform, Exponential, Bernoulli, Poisson). Their sample mean will still form a bell curve for large N.

Rule of 30 & standard error shrink

Population (Exponential / Skewed)   ──►  Take Sample Means (N=50)  ──►  Distribution of X̄ (Gaussian)
  ║                                                                        ░░▒▒▓▓██▓▓▒▒░░
  ╚═══════════════════════════════════════════════════════════════════════════════════════╝

CLT in ML & Experimentation

  1. A/B Testing: Conversion rates are binary (0/1). By CLT, sample conversion rate p̂ = X / N is asymptotically N(p, p(1-p)/N), enabling Z-tests.
  2. Confidence Intervals: 95% Confidence Interval for mean μ is X̄ ± 1.96 · (σ / √N).
  3. Linear Regression: Standard errors and p-values of OLS weights β rely on CLT for asymptotic normality when residuals are non-Gaussian in large samples.

Say this out loud

"The Central Limit Theorem guarantees that the sample mean of independent random variables approaches a Normal distribution N(μ, σ²/N) as sample size grows, regardless of the population's original shape. In A/B testing and ML, CLT lets us construct valid confidence intervals and run Z-tests on non-Gaussian user logs because sample averages of binary or skewed events converge to a bell curve."

Follow-ups to expect

Check yourself

Question 1 of 3

Why is the Central Limit Theorem critical for evaluating A/B test sample metrics like Click-Through Rate (CTR)?

More in Math & Statistics

See all →
Bayes’ Theorem4 minLaw of Large Numbers4 minExpectation & Variance4 min