Learning Objectives

By the end of this note, you will compute required $n$ for a mean as $n=(z_{\alpha/2}\sigma/E)^{2}$, compute required $n$ for a proportion as $n=\hat{p}(1-\hat{p})(z_{\alpha/2}/E)^{2}$ with conservative $p=0.5$ when $\hat{p}$ is unknown, and adjust the result for nonresponse and finite populations.

Why Sample Size Is a Budget Decision

Field teams, tablets, printing, travel across wards, and supervision all cost NPR. An undersized Palika survey produces an interval so wide the council cannot act, an oversized one burns budget for little gain. The sample size formula converts a desired margin of error $E$ and a confidence level $1-\alpha$ into the smallest $n$ that delivers that precision before a single household is contacted.

Grouped Framework: Sample Size Toolkit

Start from the margin of error. For a mean with $z$,

\[E = z_{\alpha/2}\frac{\sigma}{\sqrt{n}}\]

Solve for $n$:

\[n = \left(\frac{z_{\alpha/2}\sigma}{E}\right)^{2}\]

Always round up. $n=150.06$ requires $151$.

Proportion. From

\[E = z_{\alpha/2}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}\] \[n = \frac{z_{\alpha/2}^{2}\hat{p}(1-\hat{p})}{E^{2}} = \hat{p}(1-\hat{p})\left(\frac{z_{\alpha/2}}{E}\right)^{2}\]

Because $\hat{p}$ is unknown before the survey, use a pilot estimate if available.

Conservative proportion. $p(1-p)$ attains its maximum $0.25$ at $p=0.5$. When no prior estimate exists, use

\[n = \frac{0.25\,z_{\alpha/2}^{2}}{E^{2}}\]

This is the largest $n$ any true $p$ could require at that $E$ and confidence. It protects against underestimation but inflates cost, so state explicitly when you use it.

When $\sigma$ is unknown before sampling. Estimate $\sigma$ by:

  • Pilot sample $s$
  • Prior study $\sigma$
  • Range rule $\sigma\approx \text{Range}/4$ when only bounds are known

Treat the range estimate as coarse. Prefer a pilot when budget allows.

What drives $n$.

  • Smaller $E\Rightarrow$ larger $n$ quadratically. Halving $E$ quadruples $n$.
  • Higher confidence $\Rightarrow$ larger $z_{\alpha/2}\Rightarrow$ larger $n$.
  • Larger $\sigma$ or more dispersed $p$ near $0.5\Rightarrow$ larger $n$.

Adjustments after the raw $n$.

Nonresponse:

\[n_{\text{contact}} = \frac{n_{\text{required}}}{\text{response rate}}\]

Finite population with size $N$:

\[n_{\text{adj}} = \frac{n}{1+(n-1)/N}\]

The finite correction reduces $n$ when the sample would otherwise exceed about 5 percent of $N$.

Worked Example: Palika Budget and Staffing Survey, BS 2081

Context. Biratnagar Metropolitan City needs two estimates for its BS 2081/82 plan.

  • Question A: Mean monthly household expenditure with $\sigma=\text{NPR }5000$ from the BS 2080 living standards module, desired $E=\text{NPR }800$ at 95 percent.
  • Question B: Proportion of households with reliable internet, pilot $\hat{p}=0.40$, desired $E=0.05$ at 95 percent.
  • The contact list has $N=6000$ households and expected response rate $0.70$.

Plan A: Mean.

\[n = \left(\frac{1.96\times 5000}{800}\right)^{2}=\left(\frac{9800}{800}\right)^{2}=12.25^{2}=150.06\]

Round up to $151$. With $N=6000$, $n/N\approx 0.025<0.05$, so finite correction is optional. At expected response $0.70$,

\[n_{\text{contact}} = 151/0.70\approx 216\]

Contact 216 households to expect about 151 completions.

Sensitivity: at 90 percent ($z=1.645$) $n\approx 106$, at 99 percent ($z=2.576$) $n\approx 260$. The council trades confidence for field cost explicitly.

Plan B: Proportion with pilot $p$.

\[n = \frac{1.96^{2}\times0.40\times0.60}{0.05^{2}}=\frac{3.8416\times0.24}{0.0025}=\frac{0.9220}{0.0025}=368.8\]

Round up to $369$. Contact $369/0.70\approx 528$ households.

If no pilot existed, the conservative version gives

\[n = 0.25\times1.96^{2}/0.05^{2}=384.2\approx 385\]

The pilot saves $16$ completions because $0.24<0.25$. Over many wards that saving is material.

Range rule illustration. Suppose salaries span NPR 20000 to 80000. Then $\sigma\approx 60000/4=15000$. For $E=5000$ at 95 percent,

\[n=(1.96\times15000/5000)^{2}=5.88^{2}=34.6\approx35\]

Report that this $n$ rests on a rough $\sigma$ and replace it with pilot $s$ at the first opportunity.

Government dual request. Mean processing time with $\sigma=12$ minutes, $E=2$ minutes at 99 percent needs

\[n=(2.576\times12/2)^{2}=15.456^{2}=238.9\approx239\]

Proportion satisfied with $\hat{p}=0.75$, $E=0.04$ at 95 percent needs $n=3.8416\times0.1875/0.0016=450.2\approx451$. The larger $n$ for the proportion question governs the shared field deployment if one survey must serve both.

Self-check

Try this (calculable): A Palika in BS 2081 wants two fresh estimates.

(a) Mean ward service time: $\sigma=15$ minutes, $E=3$ minutes at 95 percent. Compute raw $n$. (b) Voter share for a local agenda: no prior $p$ is trusted, $E=0.03$ at 95 percent using conservative $p=0.5$. Compute $n$. (c) If expected response is 80 percent and population $N=2000$, adjust both $n$ values for contact size and apply finite correction.

Answer: (a) $n=(1.96\times15/3)^{2}=9.8^{2}=96.04\Rightarrow97$. (b) $n=0.25(1.96)^{2}/0.03^{2}=0.9604/0.0009=1067.1\Rightarrow1068$. (c) Contacts $97/0.80=122$ and $1068/0.80=1335$. Finite correction for (a): $97/(1+96/2000)=92.5\Rightarrow93$. For (b): $1068/(1+1067/2000)=697.3\Rightarrow698$. Large $n$ relative to $N$ shrinks markedly.

Check: halve $E$ in (a) to $1.5$ and verify $n$ quadruples to about $384$ before rounding.

Summary

Determine $n$ from the margin of error, not from rules of thumb. For a mean use $n=(z_{\alpha/2}\sigma/E)^{2}$, for a proportion use $n=z_{\alpha/2}^{2}\hat{p}(1-\hat{p})/E^{2}$ and conservative $0.25z_{\alpha/2}^{2}/E^{2}$ when $p$ is unknown. Estimate missing $\sigma$ from a pilot or prior study, round $n$ up, inflate for nonresponse, and reduce by finite population correction when $n/N$ is nontrivial. Precision is bought quadratically: halving $E$ quadruples $n$.

Key Takeaways

  • Derive $n$ by inverting $E=z_{\alpha/2}\sigma/\sqrt{n}$. Keep $z_{\alpha/2}$ at 1.645, 1.96, or 2.576 for 90, 95, 99 percent.
  • For proportions, use pilot $\hat{p}$ when available. State when you switch to conservative $0.25$, since it maximizes $n$.
  • Estimate $\sigma$ with $s$ from a pilot before using $\text{Range}/4$. Label the source so reviewers can judge risk.
  • Always round up, then divide by response rate to get contacts. Apply $n/(1+(n-1)/N)$ when sampling a notable share of a finite Palika.
  • Remember the quadratic tradeoff. Halving $E$ needs $4n$, and raising confidence from 95 to 99 raises $n$ by $(2.576/1.96)^{2}\approx 1.73$ times.

Discussion

  • Your Palika can field only $n=200$ when $\sigma=15$ and 95 percent confidence is required. Compute the achievable $E$ from $E=z\sigma/\sqrt{n}$ and rewrite the survey objective to match what $200$ can actually deliver.
  • A team uses $p=0.5$ even though a BS 2080 pilot gave $\hat{p}=0.20$. What cost does the conservative choice impose, and when would you defend it despite that cost?
  • A ward with $N=400$ computes $n=200$ without finite correction. Recalculate with correction and discuss how the reduced $n$ changes supervision and travel plans in BS 2081.

Exercises

  1. Compute $n$ for mean estimation with $\sigma=20$, $E=3$, 95 percent confidence. Show rounding and state contacts needed at 75 percent response.
  2. Compute $n$ for proportion with $\hat{p}=0.60$, $E=0.04$, 99 percent confidence. Repeat with conservative $p=0.5$ and compare.
  3. Prove that halving $E$ quadruples $n$ algebraically from $n=(z\sigma/E)^{2}$. Illustrate with numbers from exercise 1.
  4. Voter survey needs $E=0.03$ at 95 percent. Compute $n$ with no prior $p$, then recompute with $\hat{p}=0.35$. Explain which estimate you report to the election officer.
  5. Range of monthly revenue per shop is NPR 40000. Estimate $\sigma$ by $\text{Range}/4$, then compute $n$ for $E=\text{NPR }2000$ at 95 percent. Discuss why you would replace that $n$ after a pilot of $30$ shops.