Section 1.7

Sampling Distributions

One idea powers all of inference: any number you calculate from a sample — its mean, its median, its standard deviation — is itself a random quantity. Take a different sample and you'd get a slightly different value. The pattern those values make, over many samples, is a sampling distribution.

One sample gives one estimate

Suppose the truth is fixed but unknown — the average reaction time of an entire population. You can't measure everyone, so you take a sample of n people and compute their mean. That single number is your estimate. But it came from a random draw, so it's a little high or a little low by luck.

The crucial move is to imagine repeating the study thousands of times. Each repetition gives one estimate; collect them all, and you get the sampling distribution of that statistic. It tells you how much your estimate bounces around — and that's exactly what you need to judge how trustworthy a single estimate is.

🎮 Build a Sampling Distribution

Each draw grabs n values from the population (top) and drops the sample's statistic into the collection (bottom).

The population you're sampling from (fixed). Pick a shape above.

The sampling distribution of your chosen statistic

Draws0
Average estimate
Standard error (SD of estimates)

Two things to take away

1. The spread of the sampling distribution is the standard error. It measures how much your estimate would vary from study to study. A small standard error means a single estimate is trustworthy; a large one means "take this with a grain of salt."

2. Bigger samples give tighter sampling distributions. Slide n up and the bottom distribution narrows — more data per sample means each estimate lands closer to the truth, so the standard error shrinks.

Different statistics, different distributions

Switch the statistic from mean to median and the sampling distribution changes shape and width. Every statistic has its own sampling distribution. That's a big deal: it means we can reason about the reliability of any estimate, not just the mean.

Which estimate should you trust?

That switch raises a question the bottom panel can settle. When two statistics both aim at the middle of a population, which one deserves your sample? Estimators get graded on three properties, and the widget shows all three.

An estimator is unbiased when its sampling distribution sits centered on the truth, so the "Average estimate" readout settles on the population value instead of beside it. It is consistent when the whole distribution tightens onto that value as n rises, which is what the sample-size slider demonstrates. Efficiency is the comparative one: of two unbiased estimators, the efficient one has the smaller standard error, so it gets more precision out of the same participants. Methods sections use all three words without stopping to define them, and the glossary keeps a short entry for each.

Efficiency carries a price tag. Sampling from a normal population, the median's standard error runs larger than the mean's by a factor of √(π/2), about 1.253. Matching the mean's precision with a median therefore costs π/2, roughly 1.57 times as many people. Discarding the magnitudes buys robustness, and you pay for it in sample size.

The three populations in the widget make that trade visible. Each row below is 400,000 simulated draws at n = 25:

PopulationSE of the meanSE of the medianMedian costs
Uniform5.779.611.7×
Bimodal4.6813.452.9×
Skewed3.163.231.0×

The bimodal row is the extreme case, and the population panel explains it. Hardly anyone sits near 50 in that population, so the middle value of a sample has nothing solid to settle on and swings between the two humps: 74% of sample medians land outside the 40-to-60 band. The mean uses every value and stays put.

The skewed row tells a different story, and the honest answer there is that efficiency is the wrong question. That population's mean is about 16 while its median is 11.1, so the two statistics are estimating different numbers. Set the widget to Skewed and Sample median and the "Average estimate" readout drifts toward 11 rather than 16. Neither is wrong; they answer different questions, and only for a symmetric population are they competing for the same job. Skew is also why the median is the usual summary for income or reaction times, and why a few extreme values change one statistic far more than the other.

One practical wrinkle: the median has no formula as tidy as SE = σ/√n. Its standard error depends on how densely the population packs around its own middle, which you never know. That is one of the reasons the bootstrap exists, since resampling your own data estimates the width of any sampling distribution without needing a formula for it.

Why it matters: the sampling distribution is the bridge between one sample and a claim about the whole population. Next, the Central Limit Theorem tells us its shape is predictable, and confidence intervals turn its width into an honest margin of error.

Problem 6 of the practice problems works the standard error in both directions: what it is for 25 drivers, what happens at 100, and how many you would need to reach a target precision.

Common questions

What is the difference between standard deviation and standard error?

Standard deviation describes the spread of individual data points around their mean. Standard error describes the spread of a statistic (like a sample mean) across repeated samples — it's the standard deviation of the sampling distribution, and it shrinks as n grows (SE = σ/√n for the mean). SD answers "how much do people vary?"; SE answers "how much would my estimate vary if I redid the study?"

What is a sampling distribution in simple terms?

Imagine repeating your study thousands of times, each time computing the same statistic — say, the sample mean. The pile of those thousands of values is the sampling distribution. It's a thought experiment (you only run the study once), but its shape and spread are exactly what let you judge how trustworthy your one estimate is.

My estimator is unbiased. Doesn't that make it the right one to use?

Unbiasedness only says the estimator lands on the truth on average, which is a promise about a thousand studies you will never run. You are running one. Two unbiased estimators can have very different standard errors, and the one with the smaller error is the one that makes your single study informative: on a normal population the sample median is unbiased for the center and still needs about 1.57 times as many participants as the mean to match its precision. Check where an estimator centers, then check how tightly it clusters.