Sampling & the Sampling Distribution
Statistical Inference & Applied Statistics
Chapter 2 · Sampling & the Sampling Distribution
Chapter 1 promised this chapter would build directly on Probability & Statistics Fundamentals' own Central Limit Theorem. Here's the payoff: the CLT isn't just a curiosity about averages — it's the entire mathematical foundation for saying anything trustworthy about a limited sample.
Population vs. Sample
The population is the complete set of everything you'd ideally want to know about — every request that will ever be made, every user who will ever sign up. The sample is the limited subset actually collected and measured. Almost every real measurement in engineering is a sample, not the full population — you never have every request that will ever occur, only the ones logged so far.
x̄ estimating the true population mean μ, for instance.
Sampling Error — Not a Mistake, Just Randomness
Sampling error is the natural, expected difference between a point estimate and the true population value, arising purely from which subset happened to be sampled — not from anything done wrong. Two different samples of the same size, drawn from the exact same population, will almost always produce two slightly different sample means, purely by chance.
The Sampling Distribution
Imagine repeating the sampling process many times — draw a fresh sample of size n, compute its mean, and repeat. The distribution of all those sample means is the sampling distribution of the sample mean — a genuinely different object from the distribution of individual data points.
μ, σ²/n) as n grows — regardless of the shape of the original population. Its own standard error formula, SE = σ/√n, is the standard deviation of this sampling distribution. Nothing new needs deriving here — this chapter is that formula, put to direct use.
Worked Example: Response Times, Revisited
Reusing Probability & Statistics Fundamentals' own response-time model — true population mean μ = 200ms, true population standard deviation σ = 30ms (values a team would rarely know for certain in reality, but useful here to see sampling behavior clearly):
| Sample size n | Standard error (σ/√n) |
|---|---|
| 25 | 6.0ms |
| 100 | 3.0ms |
| 900 | 1.0ms |
Suppose a team samples n = 25 requests and gets a sample mean of 204ms — 4ms above the true 200ms. Standardizing this as a z-score against the sampling distribution (not individual requests): z = (204 − 200) / 6 = 0.667. That's a thoroughly unremarkable result — well within a single standard error, exactly the kind of harmless wobble sampling error alone would produce. Nothing here suggests anything actually changed.
Sampling Error vs. Sampling Bias — A Critical Distinction
Collecting more data shrinks sampling error, per the σ/√n formula above — but only if the sampling method itself is sound. If the method itself systematically excludes part of the population, more data doesn't fix anything.
Sampling & the Sampling Distribution in Code
Hands-On Exercises
A metric's true population standard deviation is σ = 200 users. A sample of n = 25 days gives a sample mean 90 users above the assumed population mean. Compute the standard error, then the z-score for this sample mean against the sampling distribution. Is this result unremarkable (well within 1–2 standard errors) or notably large?
A metric has population standard deviation σ = 80. Compute the standard error for sample sizes n = 4, n = 16, and n = 64. Describe the pattern in how much n must grow to halve the standard error, connecting it back to Probability & Statistics Fundamentals' own Chapter 8 finding.
A company estimates customer satisfaction using only responses from an optional online contact form — a small, self-selected fraction of all customers. Their estimated satisfaction score is very high. Using this chapter's own sampling-error-vs-sampling-bias distinction, explain why collecting 10 times more responses through that exact same method would not fix the underlying problem with this estimate.
📄 View solutionChapter 2 Quick Reference
- Population = everything you'd ideally want to know; sample = the limited subset actually collected
- Point estimate: a single sample statistic (e.g.,
x̄) used to estimate an unknown population parameter (e.g.,μ) - Sampling error is the natural, expected sample-to-sample variation — not a mistake
- Sampling distribution of the sample mean: approaches Normal(μ, σ²/n) per the CLT —
SE = σ/√nis its standard deviation - Sampling error shrinks with more data; sampling bias (a systematically unrepresentative method) does not — more biased data is just more precisely wrong
- Next chapter: Confidence intervals