Central Limit Theorem (CLT)
Understand why sample means become approximately normal and enable classic inference.
In plain words
Even if single measurements are messy, the averages of many samples pile up into a neat bell curve centred on the true average.
Think of it like…
Throwing a single die gives a flat spread of 1 to 6, but the average of 30 dice throws almost always lands near 3.5, and averages of averages form a neat bell. Individual outcomes are wild; averages are tame.
Where you’ve seen it
Order values are right-skewed with mean ₹50 and standard deviation ₹20 (units illustrative). The average of a sample of n = 100 orders has a standard error of 20 / √100 = 2, so about 95% of sample means fall within 50 ± 1.96 × 2 = 46.1 to 53.9. With n = 400 the standard error is 1, so the window halves to 48.0 to 52.0. A dashboard showing a weekly average of ₹53 from 100 orders is therefore within normal noise of ₹50, while the same figure from 400 orders (3 standard errors above the mean) would be a real signal.
Words you’ll hear
- Sampling distribution
- The distribution of a statistic (like the mean) across repeated samples.
- Standard error
- The standard deviation of the sampling distribution: σ / √n for the mean.
- CLT
- Means of large samples are approximately normal, whatever the population shape.
- √n law
- Precision improves with the square root of the sample size.
Visual diagram
Theory & deep dive
What the CLT says, and the √n rule
Take i.i.d. observations with mean μ and variance σ². The sample mean x̄ has mean μ and variance σ²/n, so its standard deviation (the standard error) is σ / √n; the CLT adds that for large n the shape is close to normal. To make the standard error half as big you need 4× the data; for a tenth you need 100×. In practice σ is unknown and estimated by the sample std s, which leads to the t distribution for small samples.
How large is "large"? The rule of thumb n ≥ 30 works for mildly skewed data, but strongly skewed variables (order values with big outliers, rare-event indicators) may need hundreds or thousands. For a 0/1 outcome with probability p, a common check is np ≥ 10 and n(1 − p) ≥ 10: with a 1% conversion rate you need at least 1,000 observations before the normal approximation for the proportion is reasonable. You can check any case by simulation: resample and look at the histogram of means.
means = [rng.exponential(50, 100).mean() for _ in range(5000)] draws 5,000 means of 100 skewed values (exponential with mean 50, std 50); the histogram is bell-shaped, centred at 50 with std ≈ 50 / 10 = 5.
Using it, and when it fails
The CLT justifies the z interval x̄ ± 1.96 · s/√n, tests on means and proportions, control charts that flag averages beyond 3 standard errors, and the normal approximation to the binomial. It applies to sums and means (and smooth functions of them), not to every statistic: maxima, minima and medians in small samples behave differently, and ratios or percentiles may need the delta method or bootstrap.
When it fails: samples that are too small for the skew; dependent observations (time series, repeated measurements per user), where the effective sample size is smaller than n and standard errors are understated (use cluster-robust or block methods); heavy-tailed distributions with infinite variance (Cauchy; some power-law distributions), where averages don't settle; and non-random samples. Safer alternatives: the bootstrap (resample the data to estimate the sampling distribution without normality), permutation tests, or modelling the distribution directly.
boot = [rng.choice(x, len(x)).mean() for _ in range(5000)] then np.percentile(boot, [2.5, 97.5]) gives a 95% interval for the mean without assuming normality, a useful cross-check on a CLT-based interval.
How it works, step by step
Step 1 of 41. Identify the statistic
Confirm the quantity is a mean, proportion or sum so the CLT applies.
- Medians
- need other methods
When to use it & trade-offs
What it is
The central limit theorem (CLT) says that if you take many random samples of size n from a population with mean μ and finite standard deviation σ, the sample means follow approximately a normal distribution with mean μ and standard deviation σ / √n (the standard error), regardless of the population's own shape, once n is reasonably large. Skewed order values, waiting times or 0/1 conversions all produce bell-shaped distributions of averages. This is why z-tests, t-tests and normal confidence intervals work for means and proportions even when individual data aren't normal.
Why it matters: The CLT is the bridge from one sample to inference about the population. It tells you how precise an average is (the error shrinks with √n), when normal-theory methods are trustworthy, and why you need four times the data to halve your uncertainty. It also tells you when not to trust it: tiny samples from heavily skewed data, heavy-tailed distributions, and statistics other than means may need other methods such as the bootstrap.
When to reach for it
- Confidence intervals for means and proportions
- Control charts and anomaly thresholds on averages
- Planning sample sizes
When to avoid or be careful
- Applying normal theory to tiny, strongly skewed samples
- Treating repeated measures per user as independent
- Assuming the CLT for medians or maxima
Ways to get a sampling distribution
Strengths: Closed-form; fast; foundation of classic tests.
Watch out: Needs large n, independence and finite variance.
Strengths: Few assumptions; works for medians and ratios.
Watch out: Computational; still assumes i.i.d. data.
Strengths: Exact under the null; simple logic.
Watch out: Tests, not intervals (directly).
Interview signals & numbers to know
When this topic comes up
- “Why can we use a t-test on non-normal data?”
- “How big a sample do we need?”
- “Standard error vs standard deviation”
- Bootstrap as an alternative
- Effective sample size
Benchmarks & rules of thumb
- σ / √n
- standard error of the mean
- 50 ± 3.92
- 95% window of sample means for n = 100, σ = 20
- ≥ 10
- expected successes and failures for the proportion approximation
Common mistakes & follow-ups
Common interview mistakes
- Using the standard deviation of the data where the standard error of the mean was needed.
- Treating 10 sessions from each of 50 users as 500 independent observations.
- Quoting n ≥ 30 as a guarantee for a heavily skewed metric.
Likely interviewer follow-ups
- State the central limit theorem and its conditions.
- What's the difference between standard deviation and standard error?
- How would you check the CLT works for your data?
Knowledge check
Put it into practice
Practice related interview Q&A
Apply Central Limit Theorem (CLT) with data science interview Q&A and hands-on practice.