Overview
Sample size determination involves calculating how many observations are needed to achieve a desired level of precision or statistical power.
For Estimating a Mean
When σ is Known
n=(MEzα/2×σ)2
Where ME = desired margin of error
When σ is Unknown
Use a pilot study or estimate σ, or use:
n=(MEtα/2,df×s)2
For Estimating a Proportion
n=p^(1−p^)×(MEzα/2)2
Conservative Estimate
When p is unknown, use p=0.5 (maximizes variance):
n=0.25×(MEzα/2)2
For Hypothesis Testing (Power Analysis)
n=δ2(zα+zβ)2×σ2
Where:
- zα = critical value for significance level
- zβ = critical value for power (1−β)
- δ = minimum detectable effect size
Common Values
| Confidence | zα/2 |
|---|
| 90% | 1.645 |
| 95% | 1.96 |
| 99% | 2.576 |
| Power | zβ |
|---|
| 80% | 0.84 |
| 90% | 1.28 |
| 95% | 1.645 |
Practical Considerations
| Factor | Effect on Required n |
|---|
| Smaller ME | Larger n |
| Higher confidence | Larger n |
| Higher power | Larger n |
| Larger σ or variance | Larger n |
| Smaller effect size | Larger n |
Examples
Example 1: Sample Size for Mean
Estimate mean with ME=5, σ=20, 95% confidence:
n=(51.96×20)2=(539.2)2=7.842=61.5⇒n=62
Example 2: Sample Size for Proportion
Estimate proportion within ±3% (ME=0.03), 95% confidence, unknown p:
n=0.25×(0.031.96)2=0.25×65.332=0.25×4268=1067
Example 3: With Prior Estimate of p
If we expect p≈0.20, ME=0.03, 95% confidence:
n=(0.20)(0.80)×(0.031.96)2=0.16×4268=683
Less than conservative estimate since p(1−p)<0.25
Example 4: For Power Analysis
Detect difference of δ=5, σ=15, α=0.05, power = 80%:
n=52(1.96+0.84)2×152=257.84×225=251764=70.6⇒n=71 per group
Adjustments
Finite Population Correction
If sampling from population of size N:
nadj=1+Nn−1n
Adjusting for Nonresponse
If expected response rate is r:
nneeded=rn
Sample Size Quick Reference
For 95% CI for mean (σ=10):
| Desired ME | Required n |
|---|
| 5.0 | 16 |
| 2.0 | 97 |
| 1.0 | 385 |
| 0.5 | 1537 |
For 95% CI for proportion (conservative):
| Desired ME | Required n |
|---|
| 10% | 97 |
| 5% | 385 |
| 3% | 1068 |
| 1% | 9604 |