Sampling distributions
If you drew a different sample, you’d get a different mean. The sampling distribution describes how much the mean would vary from sample to sample, and it’s the idea that makes inferential statistics possible. It’s abstract, because you only ever see one sample, so a simulation is the clearest way to understand it.
Three distributions not to confuse
| What it shows | Spread measured by | |
|---|---|---|
| Population distribution | Every individual value in the population | σ (population SD) |
| Sample distribution | The individual values in your one sample | s (sample SD) |
| Sampling distribution | The statistic (such as the mean) across many repeated samples | Standard error (σ / √n for the mean) |
A simulation
We simulated a strongly right-skewed population with mean 10 and standard deviation 10. Think waiting times: most short, a few very long. Then we drew 20,000 random samples of a given size, calculated each sample’s mean, and looked at how those means were distributed.
| Sample size | Average of the 20,000 means | SD of the means (simulated) | σ / √n (theory) |
|---|---|---|---|
| n = 5 | 10.0 | 4.46 | 4.47 |
| n = 30 | 10.0 | 1.82 | 1.83 |
Three things to notice:
- Centred on the truth. The means average out at 10, the population mean. The sample mean is an unbiased estimate.
- Spread shrinks with n. Individual values have an SD of 10, but means of 30 values vary with an SD under 2. Averages are much more stable than individuals.
- Theory matches. The spread of the sampling distribution is predicted by σ / √n, the standard error, so you can estimate it from a single sample without simulating anything.
The shape changes too. With n = 30 the sample means are close to normally distributed, even though the population is heavily skewed. That’s the central limit theorem.
Why this matters for every test
You only ever observe one sample, but the sampling distribution tells you what other samples could plausibly have shown.
- A confidence interval uses the standard error to give a range that would capture the true mean in 95% of samples. See confidence intervals.
- A p-value asks where your result falls in the sampling distribution you’d get if the null hypothesis were true. Far out in the tail means a small p. See p-values.
Not just the mean
Every statistic has a sampling distribution: differences between means, proportions, correlations, regression slopes. Test statistics such as t, F and χ² have known sampling distributions under the null hypothesis, which is how software turns them into p-values. When no formula exists, bootstrapping builds one by resampling your own data thousands of times. Analytika uses this for the confidence interval of the indirect effect in mediation analysis.
The key assumption: random sampling
All of this assumes your sample is a random draw from the population. The standard error describes random sampling variation only. It says nothing about bias from who chose to take part. See population vs sample.
More in Probability distributions
Try it with the free tools
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.