Memra

Minimum sample size for a mean

◈ 7 cards

To 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 %77308
95 %110438

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.

Confidencezm = 1.5 daysm = 0.75 days90 %1.6457730895 %1.96110438(1.96 × 8/1.5)² = 109.27 → 110. Rounded up in every cell; z in every cell, never t.
Minimum n = ⌈(z σ/m)²⌉ for σ = 8. Across a row, halving the margin quadruples n; down a column, 95 % costs about 43 % more than 90 %.
NORMAL ~/memra/learn/afm-113/minimum-sample-size-for-a-mean utf-8 LF