Hypothesis test for a mean
Is my sample mean surprising enough to doubt the claimed ? Stand the claim up as , measure how many standard errors your sits from it — that's — and reject only if it lands past the critical cut-off.
z = (x̄ − μ₀) ÷ standard error
The standard error is how much a sample mean wobbles: averaging values tames the spread by . State and a direction for , then read off the critical : 1.645 (one-tailed 5%), 1.960 (two-tailed 5%), 2.326 (one-tailed 1%). Use if the variance is known, else from a large sample.
z = (x̄ − μ₀) ÷ SE, SE = σ/√n. Compare with the critical z; hypotheses are about μ, and the conclusion is non-definite and in context.
Worked example
Start simple: variance known, one-tailed
Cucumbers are . A new feed is claimed to increase mass; a sample of gives . Test at 5%.
- , — one-tailed (looking only for an increase).
- ; critical value .
- , so is in the critical region.
There is evidence the feed increases mass.
Two-tailed, raw data, with assumptions
A two-tailed test asks whether differs either way, so the 5% is split and the cut-off is . With raw data you first compute , and you must state the assumptions.
Worked example
Two-tailed test from raw data
Candle burn times are normal with ; the maker claims a mean of 250 min. Ten candles give 245, 247, 236, 255, 250, 239, 241, 252, 251, 243. Test the claim at 5%, stating any assumptions.
- Assumptions: the sample is random (representative). Normality and are given, so no further assumption is needed.
- ; , , critical .
- .
- , so it lands in the lower critical region.
There is evidence the mean burn time is not 250 minutes.
Variance unknown: a large sample lets you use s
If is unknown but the sample is large (), estimate it: find first, then use as the standard error.
Worked example
Variance unknown, borderline reject
42 students estimate “one minute”; (seconds). Test at 10% whether the mean is below 60.
- ; , , critical .
- .
- ; just past .
When sits this close to the cut-off, advise that more data be collected — the verdict is fragile.
Variance unknown + large sample → estimate σ with s, SE = s/√n, then z exactly as before.
Your turn— tap to reveal the worked answer (borderline accept)
Pesto is g; check at 5% whether the mean has reduced. Ten jars give .
, vs .
There is no evidence of a reduction.
Examiner note
Common mistake