Minimum sample size for a mean
◈ 7 cardsTo estimate μ within a margin m at a given confidence, n ≥ (z σ/m)² — always z (df is unknown before n is), always rounded UP; halving m quadruples n.
Solving the margin for n
The margin of error is . Planning a study turns this around: the analyst fixes the margin they can live with and the confidence they want, and asks how many observations that costs. Solve for :
Two rules ride with the formula. Always , never : a critical value needs df , and is the unknown — there is no row to read. Use a planning value for from history, a pilot sample or a range/4 guess, and from the memorised trio. Always round up: is a count of invoices, and the inequality says at least — 109.27 invoices means 110, never 109, because 109 leaves the margin fractionally above target.
Worked example — planning Kitchener Ridge's audit sample
Kitchener Ridge wants to estimate mean days-to-pay to within days at 95 % confidence, with from its history:
What if 90 % is enough? :
Dropping from 95 % to 90 % confidence saves a third of the sample. What if the margin must be 0.75 days — half as wide — at 95 %?
Halving the margin quadruples the sample (, allowing for rounding), because sits squared in the denominator. Precision is expensive at an accelerating rate — the square-root law of L8.2 seen from the buyer's side.
| Confidence | ||
|---|---|---|
| 90 % | 77 | 308 |
| 95 % | 110 | 438 |
Reading the question
The paper phrases the target several ways: "within 1.5 days", "to within ±1.5 days", "a margin of error of 1.5", "an interval no wider than 3 days". The first three all give ; the last gives a width of 3, so too. Read for the half-width. And use the the question supplies — if it gives a variance, take the square root before it goes into the formula; is , and squaring 64 by mistake produces an in the thousands.