Choose a Sample Size for a Mean or Proportion
Plan the precision before collecting data
A confidence interval uses observed data to estimate a parameter. At the planning stage, work backwards from the desired margin of error E, which is half the total interval width. Choose a confidence level and its two-sided normal critical value z. For 90% use z ≈ 1.645 and for 95% use z ≈ 1.96.
The following planning rules assume independent sampling, or simple random sampling from a population large relative to the sample, and a suitable normal approximation. They target the number of usable observations. A small finite population, clustering or a different interval method can require a different calculation.
Plan for a population mean
With a credible planning standard deviation σ, the planned margin of error is zσ/√n. Require it to be at most E.
Required n ≥ (zσ/E)².
A service wants to estimate mean processing time with a 95% interval whose margin is at most 5 minutes. Historical data support a planning standard deviation of 18 minutes.
Calculate (1.96 × 18 ÷ 5)² = 49.787136. Plan for at least 50 completed observations. Rounding to 49 would miss the limit. If σ comes from a pilot, the resulting precision depends on how well that planning value represents the population.
Plan for a population proportion
Use an anticipated population proportion p* as a decimal, and write the margin as a decimal too. A margin of 5 percentage points means E = 0.05.
Required n ≥ z²p(1 − p)/E².
A past survey suggests 30% of applications use an online form. With 95% confidence and a margin of at most 5 percentage points, calculate 1.96² × 0.30 × 0.70 ÷ 0.05² = 322.6944. Round up to 323 usable responses.
If no credible proportion is available, use p* = 0.50 for a conservative plan. The product p(1 − p) is largest there because it equals 0.25 − (p* − 0.50)². For the same target, 1.96² × 0.25 ÷ 0.05² = 384.16, so plan for 385 usable responses. For a normal-approximation interval, check that the plan produces sufficiently many expected successes and failures.
Check rounding and how many people to approach
- Round up once, after calculating the unrounded required n. An exact whole number already meets the target.
- Holding confidence and variability fixed, the unrounded n is proportional to 1/E². Halving E multiplies the required n by four before rounding.
- If the target is 240 usable responses and an estimated 80% of contacts will provide one, plan to contact at least 240/0.80 = 300 people. The assumed yield is an expectation.
Quick check. A two-sided 95% mean interval must have a total width no greater than 8 units. The planning standard deviation is 10. How many observations should you plan for? Answer. Use E = 8/2 = 4. The unrounded n is (1.96 × 10/4)² = 24.01, so plan for 25.
SSC CGL 2026, Statistics syllabus · Penn State, sample sizes for means and proportions
Sign in to keep your progress. Sign in