Bell Statistics

What is a sampling distribution?

A sampling distribution describes how a statistic would vary if you repeated the study many times. It is a distribution of estimates rather than of data, and it is the object every p-value and confidence interval is actually computed from.

Also called
distribution of the sample mean, sampling variability, distribution of a statistic
Allon Korem

Written by Allon Korem

Chief Executive Officer

Last updated

In plain English

There are two distributions in any analysis and confusing them causes most of the trouble. The first is the distribution of your data: how revenue is spread across users, which for revenue is skewed with a long right tail. The second is the sampling distribution: how the *average* of that revenue would vary if you drew a fresh sample of the same size, over and over. Everything inferential — the standard error, the p-value, the confidence interval — is computed from the second.

This is the rung that makes the rest of the vocabulary coherent. The standard error is simply the standard deviation of the sampling distribution. A confidence interval is a range read off it. A p-value is a tail area under it. None of those quantities is about your data directly; they are about how much the number you computed from your data would move if you did it again.

The reason it is usable at all is the central limit theorem, which says that for a mean the sampling distribution tends towards normal as the sample grows, regardless of the shape underneath. That is what allows a t-test on revenue data that looks nothing like a bell curve. The normality assumption people worry about attaches to this distribution, not to the raw values, and knowing which one is being assumed resolves most of the anxiety about it.

You never observe it, which is what makes it feel abstract. You have one sample, not a thousand, so the sampling distribution is inferred rather than seen — usually from theory, using the formula for the standard error. The bootstrap is the alternative: resample your own data thousands of times and watch the statistic move, which builds an empirical approximation of exactly this object. That is worth knowing because it makes the concept concrete rather than theoretical.

The practical payoff is knowing when the machinery breaks. The theory assumes independent observations, so correlated data — several sessions from one user — makes the real sampling distribution wider than the formula predicts, and every interval too narrow. And for a badly skewed metric at small sample sizes the convergence to normality has not happened yet, so the formula's answer is wrong in a way no amount of care about the raw data would reveal.

The formula

Three facts define it for a mean, and the third is the one that makes inference possible on non-normal data.

Its centre
E[ x̄ ] = μ

The sample mean is unbiased: across repeats it centres on the true value.

Its spread
SD( x̄ ) = σ / √n = the standard error

This is the definition of the standard error, and the reason precision improves with the square root of n.

Its shape
x̄ → Normal( μ, σ²/n ) as n grows

The central limit theorem, whatever the shape of the underlying data — see the two-sample t-test calculator.

The empirical version
resample with replacement, recompute, repeat

The bootstrap builds the sampling distribution directly rather than assuming its form.

Worked example

A dataset of 40,000 users' monthly revenue is heavily right-skewed: median £4, mean £18.40, and a small number of users above £2,000. A simulation repeatedly draws samples of three different sizes and records the mean each time, to show what the sampling distribution looks like at each.

Raw data shape
heavily right-skewed, skewness 6.8
Population mean
£18.40
n = 30: mean of sample means
£18.39, visibly right-skewed
n = 30: shape test
clearly non-normal
n = 1,000: shape
close to normal, mild right skew
n = 10,000: shape
indistinguishable from normal

The data is never normal at any sample size. The sampling distribution of its mean becomes normal somewhere between n = 30 and n = 1,000.

The first and last rows together are the whole point. The underlying data stays skewed no matter how much of it you collect — that is a property of the population and does not change. What changes is the distribution of the average, which is normal enough for standard inference well before n = 1,000 and clearly is not at n = 30. So the familiar advice that a t-test needs normally distributed data is asking about the wrong distribution, and the equally familiar 'n = 30 is enough' is asking about the right one and giving a number that is far too small for a metric this skewed. The honest guidance is that the required sample depends on how skewed the data is, and that skewness of 6.8 needs hundreds rather than dozens. A bootstrap gives the answer directly for any specific dataset without needing the rule of thumb at all.

Common misconceptions

The sampling distribution is the distribution of your data.
It is the distribution of a statistic computed from your data, across hypothetical repeats of the study. Your revenue figures can be violently skewed while the distribution of their mean is close to normal. Nearly every misunderstanding about normality assumptions comes from conflating these two objects.
You need a large sample for the data to become normal.
The data never becomes normal — collecting more of a skewed distribution gives you more skewed data. What converges towards normality as n grows is the sampling distribution of the mean. The underlying population is whatever it is, and no sample size changes it.
Since you only have one sample, the sampling distribution is purely theoretical.
It is unobserved rather than untestable. The standard error estimates its spread from a single sample using theory, and the bootstrap constructs an empirical version by resampling. Both give you a usable handle on it, which is why confidence intervals are computable at all.

Frequently asked questions

How is the sampling distribution different from my data's distribution?
Your data's distribution describes individual observations — how revenue is spread across users. The sampling distribution describes how a summary of those observations, usually the mean, would vary across repeated studies. They can look completely different: heavily skewed data can have a near-normal sampling distribution for its mean, which is precisely what makes standard inference work on messy data.
Which distribution has to be normal for a t-test?
The sampling distribution of the mean, not the data. The central limit theorem usually delivers that at experiment sample sizes even for badly behaved data. The case where it genuinely fails is heavy skew combined with a small sample, where convergence has not occurred yet — and the fix is a rank-based test, capping the extreme values, or a bootstrap rather than worrying about the raw histogram.
Does correlated data break the sampling distribution?
The theoretical sampling distribution is too narrow, so every standard error and interval computed from it is too small. Several sessions from one user carry less information than several independent users, and the formula does not know that. The fix is to aggregate to the randomisation unit before computing anything, or to bootstrap by resampling whole users rather than individual rows.

Related terms

  • Central limit theorem

    Why averages go bell-shaped even when the data do not — the result that makes ordinary tests work.

  • Percentile

    The value 95% of your users sit under — and the reason average latency hides the experience that loses customers.

  • Skewness

    The asymmetry that pulls the mean away from the median, and quietly decides how much traffic your test needs.

  • Standard error

    How much your estimate would move if you ran the study again — precision, not spread.

Calculate it

  • Two-sample t-test

    Compare the average of two independent groups — plan the sample size, then test the result.

  • Proportion confidence interval

    A defensible interval around one rate — Wilson, Agresti-Coull, Jeffreys and Clopper-Pearson, side by side.

Knowing the term is the easy part

Applying it to a live measurement problem is the part that goes wrong. If you are designing an experiment, reading a result you do not trust, or trying to work out what your marketing actually caused, that is the work we do.

References

  • Casella, G., & Berger, R. L. (2002). Statistical Inference (2nd ed.). Duxbury.
  • Efron, B., & Tibshirani, R. J. (1993). An Introduction to the Bootstrap. Chapman and Hall.