Central Limit Theorem

The central limit theorem explains why averages, totals, and many estimated effects often have nearly normal sampling distributions even when the individual observations are not normal. It is the reason a click-rate lift, average latency difference, survey mean, model-score delta, or revenue-per-user estimate can often be paired with a standard error and a normal or t reference distribution.

The theorem is not saying that raw data become normal. User spending can remain skewed, failures can remain rare, and waiting times can remain positive and long-tailed. The theorem says that after many independent finite-variance observations are averaged, the remaining estimation error has a universal shape:

The law of large numbers says the sample mean moves toward the true mean . The central limit theorem says what the remaining fluctuation around looks like. That second statement is what powers many confidence intervals, z-statistics in hypothesis testing, and large-sample analyses of randomized experiments.

The problem it solves

Suppose a metric is noisy. One user clicks or does not click, one request is fast or slow, one annotated answer receives a high or low score. A single observation is a poor guide to the population mean. Averaging helps, but a decision still needs to know how much random error remains.

The central limit theorem gives that scale and shape. If each observation has standard deviation , then the sample mean has standard error:

That formula explains the square-root economics of sampling: multiplying traffic or examples by 100 reduces the standard error by 10, not by 100. The normal limit explains why the standardized error,

can be compared with standard normal cutoffs such as .

Sampling distributions of the sample mean get narrower as n grows, while standardization maps the remaining error to a fixed z scale.

The first visual separates two ideas that are often mixed together. The sampling distribution of tightens around because averaging reduces variance. For the exponential example, the curve is just the raw exponential density: it is highest at 0 even though its mean is 1. Standardization then zooms back in by multiplying the error by , producing a stable scale where normal reference values can be reused.

Statement with named symbols

Let be independent and identically distributed copies of a random variable . Assume:

  1. The mean exists and is finite:
  1. The variance exists, is finite, and is positive:
  1. The sample mean is:

Then:

Equivalently, for any real numbers ,

SymbolMeaning
Observation before averaging.
Population mean of one observation.
Population variance of one observation.
Average of observations.
Standard deviation of the sample mean, also called its standard error.
Convergence in distribution: CDF probabilities converge at continuity points of the limit.
Standard normal distribution.

Why centering and scaling are necessary

Without centering, just converges to . The limiting distribution would collapse to a point, which is useful for consistency but not useful for uncertainty. Centering removes the deterministic target:

Without scaling, that centered error shrinks to zero. Multiplying by keeps the random fluctuation visible:

Dividing by makes the scale unitless:

The theorem says this unitless residual error has a universal limiting law. That is why different domains can reuse the same z table: the individual data-generating processes differ, but the standardized average behaves similarly when the assumptions are good enough.

How averaging changes shape

A skewed observation can have a long right tail, but an average is a sum of many independent small contributions. Centering removes the deterministic mean, and scaling by keeps the random fluctuation from collapsing to zero. Convolution smooths the shape, so the sampling distribution of the mean can be close to normal even when the original distribution is not.

Standardized exponential sample means becoming more symmetric and closer to a normal curve as n grows.

The plot uses exponential observations, which are right-skewed and strictly nonnegative. After centering and scaling the sample mean, the curve is still visibly skewed, is closer, and is close to the dashed standard normal reference. The curve starts abruptly because cannot be smaller than when the original observations are nonnegative; its peak is left of zero because the finite-sample Gamma shape is still skewed. The approximation improves in shape, not only in mean and variance.

Proof from characteristic functions

The following proof handles the classical iid finite-variance theorem. It uses characteristic functions because they turn sums of independent random variables into products. That is exactly the algebraic structure needed for averages.

Step 1: Standardize one observation

Define:

Then each has mean 0 and variance 1:

The CLT for is equivalent to proving:

This removes unnecessary symbols. The only remaining assumptions are independence, identical distribution, mean 0, and variance 1.

Step 2: Use a function that encodes the distribution

The characteristic function of is:

It is a distribution fingerprint: under standard uniqueness results, knowing for every real determines the distribution of . Characteristic functions are useful here because independence makes the characteristic function of a sum factor:

when and are independent.

Step 3: Approximate the one-observation characteristic function near zero

For small , the exponential has a Taylor expansion:

Taking expectations and using and gives:

The notation means a remainder that is small compared with as . This is the whole reason the assumptions “mean 0” and “variance 1” matter: they force the first-order term to vanish and the second-order term to be exactly .

Step 4: Apply the product rule to the standardized sum

Let:

The characteristic function of is:

Substitute the definition of :

Independence turns this into a product:

Step 5: Insert the near-zero approximation

Because , the expansion from step 3 applies:

Therefore:

The elementary limit

now gives:

Step 6: Identify the limiting distribution

The function

is the characteristic function of the standard normal distribution . Levy’s continuity theorem says that pointwise convergence of characteristic functions to a valid limiting characteristic function implies convergence in distribution. Hence:

Returning to the original variables:

That proves the theorem.

Worked simulation

This simulation draws sample means from an exponential distribution at increasing sample sizes and reports how their standardized skew and quantiles move toward a normal distribution.

import numpy as np
from scipy import stats
 
rng = np.random.default_rng(20260711)
for n in [2, 10, 50]:
    means = rng.exponential(scale=1.0, size=(20000, n)).mean(axis=1)
    z = np.sqrt(n) * (means - 1.0)
    print(f"n={n} mean={z.mean():.4f} std={z.std(ddof=1):.4f} "
          f"skew={stats.skew(z):.4f} q025={np.quantile(z,.025):.4f} "
          f"q975={np.quantile(z,.975):.4f}")
print("normal_q025_q975", np.round(stats.norm.ppf([.025,.975]), 4))

Observed output:

n=2 mean=-0.0081 std=0.9885 skew=1.3804 q025=-1.2480 q975=2.5171
n=10 mean=-0.0044 std=1.0055 skew=0.6182 q025=-1.6479 q975=2.2662
n=50 mean=0.0039 std=0.9915 skew=0.2877 q025=-1.7956 q975=2.0871
normal_q025_q975 [-1.96  1.96]

The standardized means from an exponential distribution keep mean near 0 and standard deviation near 1 for all three sample sizes. The skewness shrinks from 1.3804 at to 0.2877 at , which is the numerical sign that the sampling distribution is becoming more normal.

The 2.5 percent and 97.5 percent quantiles also move toward the normal reference [-1.96, 1.96]. They do not match perfectly at because the exponential distribution is skewed; the theorem is asymptotic, so finite-sample error remains.

Sample sizeWhat changes
The standardized average still inherits much of the original right skew.
The center is close to 0 and the spread is close to 1, but the right tail is still heavy.
The curve is much closer to normal, though skewness has not vanished completely.

How it is used in data science

The CLT is usually not used by itself. It is the approximation layer inside workflows:

  1. Estimate an effect, such as a mean latency difference or conversion-rate lift.
  2. Estimate or model the standard error of that effect.
  3. Standardize the effect by dividing by the standard error.
  4. Use a normal or t reference distribution to build an interval or p-value.

For a large independent A-B test with a binary metric, the two arms have binomial success counts. The difference in observed proportions is not exactly normal, but the CLT makes it approximately normal when the arms are large and the rates are not too close to 0 or 1. That is why the z-statistic on hypothesis testing has the form:

The same logic appears in model evaluation. If a metric is averaged over many independent or paired examples, the average metric difference may be approximately normal even when each example-level score is discrete, bounded, or skewed. The approximation is only as good as the sampling design and standard error model.

Caveats

The theorem is asymptotic, not a guarantee that is enough. Skewed or heavy-tailed observations can need much larger samples than symmetric light-tailed observations.

The classical version assumes independence and identical distribution. Time series, repeated measurements per user, clustered traffic, duplicate examples, and network effects can reduce the effective sample size. The sample mean may still have a normal limit under more advanced dependent-data CLTs, but the standard error must match the dependence structure.

Finite variance matters. If the observation distribution has infinite variance, the scaling and normal limit can fail. Stable-law limits or robust estimators may be more appropriate.

The CLT describes the sampling distribution of an average, not whether the average is the right estimand. For highly skewed business metrics, a mean can be mathematically valid but operationally incomplete; quantiles, trimmed means, or segment-level analyses may be needed.

History and adoption

The earliest central-limit result was the de Moivre-Laplace approximation for binomial counts, developed for repeated Bernoulli trials. Laplace extended normal approximations and helped make the normal law central to probability. Later work by Lyapunov, Lindeberg, Levy, Feller, and others clarified when sums of many small contributions converge to the normal law.

In modern data science, the theorem is a practical bridge between probability models and decision procedures. It justifies standard errors for large-sample estimates, supports normal approximations for many common distributions, and explains why normal reference values appear throughout experimentation, monitoring, and statistical modelling.

References