Practice questions
Q1. You have 18 exam scores and want to test whether the class mean differs from 60. You don’t know the population SD. Which test?
Q2. A factory’s machine has a documented, long-established population SD of 0.4mm. You take 50 parts to check the mean. z or t?
Q3. Why does it barely matter which you pick when n = 200, but matter a lot when n = 8?
Q4. A student measures the same 20 patients’ blood pressure before and after a drug and runs an independent-samples t-test. What did they get wrong?
Worked answers
A1. One-sample t-test. You’re estimating the SD from your 18 scores, so it’s a t-test — and with only 18 observations, the difference between t and z is real, so getting this right matters.
A2. This is the rare genuine z-test case: the population SD is known independently (documented from long production history, not estimated from your 50 parts). Quality-control settings like this are one of the few places z-tests legitimately appear.
A3. Because the t-distribution converges to the normal as n grows. At n = 200, your estimate of σ is rock-solid and the two distributions are visually identical — the fat tails have vanished. At n = 8, your SD estimate is shaky, the t-distribution’s tails are noticeably fatter, and using z would understate your uncertainty and give you falsely confident (too-small) p-values.
A4. The measurements are paired — the same 20 patients measured twice. Each “after” reading has a natural partner in its “before” reading. They should have run a paired t-test, which analyses the before/after differences. Treating paired data as two independent groups throws away the pairing and usually makes the test far less powerful.
The short version
• Know σ? → z. Estimating it from data? → t.
• You almost never know σ, so it’s almost always t.
• “n > 30 use z” is a shortcut — t is always technically correct and self-corrects to z.
• The t is wider because you’re uncertain about the mean and the SD.
• Three+ groups → ANOVA, not a pile of t-tests.
References
1. Student [Gosset, W.S.] (1908) “The Probable Error of a Mean,” Biometrika, 6(1), pp. 1–25.
2. Moore, D.S., McCabe, G.P. & Craig, B.A. (2021) Introduction to the Practice of Statistics. 10th edn. New York: W.H. Freeman.
Choosing the right test is a whole chapter in Statistics Made Simple.
Complete with a master decision tree that takes you from “what kind of data do I have?” to the exact procedure.