The idea
Compute a statistic from a random sample and you get a number. Draw a different sample and you get a different number. The sampling distribution is the distribution of that statistic across all the samples you might have drawn — it is the honest answer to "how much should I trust this estimate?" Inference is essentially the art of reasoning about a distribution you only ever see one draw from.
For the sample mean, the central limit theorem gives the sampling distribution almost for free. If are i.i.d. with mean and finite variance :
Two separate miracles are packed in here:
- Normality regardless of input shape. The raw data can be binary, skewed, multimodal — averages of enough of it are bell-shaped anyway. This is why the same / machinery serves conversion rates and revenue alike.
- The law. The spread of the sampling distribution — the standard error — shrinks with the square root of sample size. Precision is bought at quadratic cost: half the error needs the data, a tenth needs .
Keep the two spreads straight: the SD () is about individuals and never shrinks with more data; the SE is about the estimate and does. For a proportion, — a special case since a proportion is just a mean of 0/1 values.
"Large " depends on skew: symmetric data is effectively normal by ; heavily skewed metrics like revenue may need thousands. And the two load-bearing assumptions — independence and finite variance — are exactly where real data attacks: repeated events per user are correlated (cluster by user, or your SE is fake), and whale-dominated metrics converge painfully slowly.
Worked example
Revenue per user: true mean dollars, SD dollars (right-skewed; most users spend nothing). Sample users:
So : about 95% of such samples yield a mean in . Now shrink the sample:
| SE | 95% range for | |
|---|---|---|
| 100 | $10 | $30 – $70 |
| 1,000 | $3.16 | $43.8 – $56.2 |
| 10,000 | $1 | $48 – $52 |
| 40,000 | $0.50 | $49 – $51 |
Note the diminishing returns: going from 10,000 to 40,000 users (4x the data, 4x the cost) only halves the interval. And an A/B test comparing two arms needs the SE of a difference, , which is larger than either arm alone — one reason experiments always need more data than intuition suggests.
Cheat sheet
- CLT: for i.i.d. data with finite variance; equivalently .
- SE of mean: . SE of proportion: (max at ).
- SE of difference of independent estimates: .
- Precision law: SE → halve the error = the data.
- SD describes individuals (never shrinks); SE describes the estimator (shrinks with ).
| Symptom | Problem | Fix |
|---|---|---|
| Metric dominated by whales | slow CLT convergence, unstable means | winsorize/cap, log-transform, compare quantiles, or bootstrap |
| Multiple rows per user | dependence → SE too small, false positives | aggregate to one row per randomization unit, or cluster-robust SEs |
| Small + skew | normal approx poor | -distribution helps only with symmetry — prefer bootstrap |
| Need tail quantities (p99, max) | CLT says nothing about tails | extreme value methods or direct quantile estimation |
- The CLT applies to sums and means. Sample medians and quantiles have their own (different) asymptotics; the sample maximum is not normal at all.
- Rule of thumb: for mild skew; heavily skewed metrics can need in the thousands before the normal approximation is trustworthy.