Skip to content

Determining sample size

Find the sample size needed to estimate a mean or a proportion within a chosen margin of error, rounded up, and say what it costs to make the margin smaller.

It opens on

To estimate the mean invoice within $5, with σ about $40 and 95% confidence, will Harbor and Pine need about 25, about 250 or about 2,500 invoices?

Why it matters

A survey that is too small cannot answer the question and one that is too large wastes money, so the sample size is a decision made before any data are collected.

Good to know first

  • margin of error for a mean

Step by step

  1. Sample size for a mean

    Solve E = z* σ / √n for n and round up.

    n = (1.96 × 40 / 5)² = (15.68)² = 245.86.

    n = (1.96 × 40 / 5)² = 245.86

    A common mix-up

    Round n to the nearest whole number.

    In fact: Round up, because a smaller n would break the promised margin of error.

  2. Sample size for a proportion

    Solve E = z* √(p(1 − p) / n) for n using a planning value or the conservative p = 0.5.

    A common mix-up

    Use p̂ = 0.37 from the planned survey in the formula for n.

    In fact: We need n before the survey, so we use a planning value or the conservative 0.5.

  3. Precision and cost

    Compare margins of error by sample size and cost, and allow for nonresponse.

    A margin of 5 points needs 385 completes, which costs 385 × 8 = $3,080. A margin of 3 points needs 1,068, which costs $8,544.

    385 × $8 = $3,080 and 1,068 × $8 = $8,544

    A common mix-up

    Surveying more people always makes the answer proportionally better.

    In fact: Precision improves with √n, so each extra point of accuracy costs more than the last.

Try it

How many deliveries must be timed to estimate the mean within 0.5 hours at 95% confidence, with σ = 3 hours?Answer

(1.96 × 3 / 0.5)² = 138.3, so 139

Hint: n = (z* σ / E)²

Estimate the share of late deliveries within 4 points at 95% when a past rate of 15% is a good planning value.Answer

1.96² × 0.15 × 0.85 / 0.04² = 306.1, so 307

Hint: n = z*² p(1 − p) / E²

A firm can spend at most $5,000 at $8 a complete. What is the largest number of completes, and is a 4-point margin at p = 0.5 affordable?Answer

625 completes, and a 4-point margin needs 601, so yes

Hint: Divide the budget by $8

Using the 99% level, z* = 2.576, and the same σ and E = $5, what sample size is needed?Answer

(2.576 × 40 / 5)² = 424.7, so 425

With p = 0.5 and a margin of 4 points, what sample size is needed at 95%?Answer

1.96² × 0.25 / 0.04² = 600.25, so 601

Determining sample size

30 minutes every month. No card.