Minimum n for a proportion
◈ 5 cardsn ≥ z² p*(1 − p*)/m², rounded up; with no prior estimate use p* = 0.5, the worst case, because p(1 − p) peaks at 0.25.
Solve the margin for n
The margin of error for a proportion is . Fix the margin you can live with, and solve for :
Round up to the next whole unit — a sample of 1,067.1 invoices is 1,068 invoices, because 1,067 would leave the margin a hair too wide. The awkward part is : the formula needs the proportion you are about to estimate. Two conventions:
- A prior estimate is given (last year’s audit, a pilot sample): use it as .
- No prior estimate: use . The product is at and smaller everywhere else — , — so 0.5 gives the largest possible , guaranteeing the margin whatever turns out to be.
Worked example — how many invoices to audit?
Maple Ledger wants next year’s audit to estimate the invoice error rate to within 3 percentage points at 95 % confidence. How many invoices must be sampled?
With no prior estimate. , , :
Using this year’s as the prior.
The prior estimate cuts the sample by more than half. That is the value of last year’s audit: it is not just a number, it is a cheaper next audit. The risk is that the rate has drifted towards 0.5 since — if it has, 451 invoices give a margin wider than 3 points. When the prior is old or doubtful, a question will say so and expect .
The margin is in proportion units
"Within 3 percentage points" is , not and not 3 % of . A margin of "3 % of the estimated rate" would be and need a sample seventy times larger; the paper does not ask for that, but it does expect you to write as a decimal.
Same shape as the mean
Module 9’s rule for a mean was . This is the same rule with — the Bernoulli variance — and the same instructions: from the confidence level, from the question, round up. For a mean the difficulty was a you had to guess; for a proportion the guess is bounded, which is why is always available.