Sample Size Estimation

On this page
  1. Direct answer
  2. What you must remember
  3. Working through a worked example
  4. Where the exam tries to catch you
  5. Frequently asked questions
  6. Related topics

Direct answer

Sample size estimation determines how many subjects a study needs to estimate a proportion or mean with chosen precision and confidence. For a proportion, the standard formula is n equals 4pq divided by L squared, where p is the expected prevalence, q equals 1 minus p, and L is the allowable absolute error. The factor 4 approximates Z squared for 95 per cent confidence.

What you must remember

  • Formula for a proportion: n equals 4pq divided by L squared, with p as the expected prevalence and L as the absolute error.
  • Factor 4: it approximates Z squared, where Z is 1.96 for 95 per cent confidence and Z squared is about 3.84.
  • Maximum sample: when prevalence is unknown, p equal to 50 per cent makes pq largest and gives the largest n.
  • Precision: halving the allowable error quadruples the sample size, because L is squared in the formula.
  • Non-response: the base sample is commonly increased by about 10 per cent to allow for refusals and absences.
  • Design effect: cluster surveys multiply the base sample by the design effect to restore the precision of simple random sampling.
  • Mean estimation: n equals (Z multiplied by SD divided by d) squared, where d is the allowable error for the mean.

Working through a worked example

A common exam problem gives an expected prevalence and an allowable error, then asks for the sample size. Working through the steps in a fixed order ensures that no term is missed or applied twice.

  1. Fix the confidence level: for 95 per cent confidence use Z equals 1.96, which the factor 4 approximates.
  2. Estimate the prevalence: suppose anaemia prevalence is expected at 20 per cent, so p equals 0.2 and q equals 0.8.
  3. Set the allowable error: with an absolute error of 5 per cent, L equals 0.05.
  4. Compute the base sample: n equals 4 multiplied by 0.2 and 0.8, divided by 0.05 squared, which gives 256.
  5. Adjust for non-response: adding 10 per cent gives about 282 subjects.
  6. Adjust for design: if the study is a cluster survey, multiply by the design effect before reporting the final figure.

The same logic applies to a mean, where the standard deviation replaces prevalence. Exam questions usually supply that standard deviation from a pilot study or an earlier survey, so the calculation uses the same steps with a different formula.

Where the exam tries to catch you

Most lost marks come from applying a default value where a given value was intended, or from mixing up absolute and relative error.

  • Trap: using 50 per cent prevalence when the prevalence is known Correct: the known value gives the appropriate sample; 50 per cent is a conservative default only when nothing is known.
  • Trap: assuming a 5 per cent error needs only twice the sample of a 10 per cent error Correct: L is squared, so halving the error quadruples n.
  • Trap: using relative and absolute error interchangeably Correct: the formula takes absolute error, so a 20 per cent relative error on a prevalence of 0.2 means L equals 0.04.
  • Trap: reporting the base sample as final Correct: non-response and design effects are added after the base calculation.

Frequently asked questions

What is the formula for sample size to estimate a proportion?

The formula for estimating a proportion is n equals 4pq divided by L squared, where p is the expected prevalence, q is 1 minus p, and L is the allowable absolute error. It assumes 95 per cent confidence.

Why is 4 used in the sample size formula for a proportion?

The number 4 approximates Z squared, where Z is 1.96 for 95 per cent confidence and 1.96 squared is about 3.84. Using 4 keeps the arithmetic simple without materially changing the result.

Why is prevalence taken as 50 per cent when it is unknown?

When prevalence is unknown, taking p as 50 per cent makes the product pq as large as possible, giving the largest and most conservative sample size. The study then has adequate precision whatever the true prevalence turns out to be.

By how much is the sample size increased for non-response?

Sample size is commonly increased by about 10 per cent to allow for non-response. The adjustment is made after the base sample size is calculated, not before.

What is the difference between absolute and relative precision in sample size calculation?

Absolute precision is a fixed distance in percentage points, while relative precision is a fraction of the expected prevalence. For a prevalence of 20 per cent, a 10 per cent relative error corresponds to an absolute error of 2 per cent.

Same topic for other exams

Practise this in the PrepElephant app

Question banks, previous-year questions, mock tests and revision tools — for Sample Size Estimation and MBBS Community Medicine. Free to start.

Get the free app WhatsApp