03 · What You Need to Know
How Prevalence Changes the Precision and Sample Size of a Population Proportion
Why Does Prevalence Determine Sampling Variability?
For a binary characteristic, each eligible observation can be represented by an indicator equal to one when the characteristic is present and zero when it is absent.
If the population prevalence is p, the variance of this binary indicator is p(1 − p).
This expression reaches its maximum at p = 0.50, where the variance equals 0.25. It becomes smaller as prevalence approaches zero or one.
Under independent Bernoulli sampling, the variance of the sample proportion is p(1 − p) / n, where n is the number of observations.
The standard error is therefore:
The calculations show that the same sample size can provide different absolute precision at different prevalence levels.
How Is Expected Prevalence Used in the Sample-Size Formula?
For estimating a single population proportion with a specified absolute margin of error, a conventional large-population normal approximation is:
Expected prevalence therefore changes the required sample through its influence on the variance term, even when confidence level and absolute precision remain fixed.
How Much Does Sample Size Change Across Different Prevalence Values?
The following calculations use a 95% confidence level and a fixed absolute margin of error of five percentage points.
| Expected prevalence |
Binomial variance p(1 − p) |
Approximate required sample |
| 1% |
0.0099 |
16 |
| 5% |
0.0475 |
73 |
| 10% |
0.0900 |
139 |
| 20% |
0.1600 |
246 |
| 30% |
0.2100 |
323 |
| 40% |
0.2400 |
369 |
| 50% |
0.2500 |
385 |
Each value is rounded upward from the same conventional formula. The small calculated samples at very low prevalence should not be interpreted as generally adequate designs for rare-outcome estimation.
For example, a sample of 16 observations at an anticipated prevalence of 1% would contain only 0.16 expected cases. Such a sample is poorly suited to many substantive prevalence objectives, and the normal approximation underlying the calculation is inappropriate in this setting.
This illustrates an important distinction between obtaining a numerical result from a formula and obtaining a scientifically useful estimate.
Why Is the Required Sample Size Largest at 50%?
The variance term p(1 − p) is symmetric around 0.50. Prevalences of 20% and 80%, for example, both produce a variance of 0.16.
The mathematical maximum occurs at 50%, making this the maximum-variance assumption for the conventional fixed-absolute-precision formula.
That is why researchers sometimes use p = 0.50 when expected prevalence is unknown.
However, the result is specific to the variance term and the stated precision criterion. It does not establish that 50% is the most likely prevalence, nor does it guarantee sufficient precision for every possible inferential objective.
Why Can Rare Prevalence Require a Larger Sample?
The apparent paradox arises because a fixed absolute margin of error can be inappropriate for rare characteristics.
Suppose the anticipated prevalence is 1%. A margin of error of five percentage points is five times the anticipated prevalence. Such uncertainty would often be unacceptable for estimating the frequency of a rare condition.
Instead, a researcher may require an absolute margin of error of 0.5 percentage points, or a relative margin based on a specified fraction of the anticipated prevalence.
These stricter requirements can dramatically increase sample size.
For rare outcomes, the selected confidence-interval procedure also matters. Conventional Wald intervals can have poor coverage and may produce nonsensical bounds outside the possible range of proportions.
Wilson score intervals, exact binomial intervals, and other appropriate procedures should be considered according to the intended coverage and precision requirements.
How Does Relative Precision Change the Relationship?
Relative precision defines the acceptable margin as a proportion of the anticipated prevalence.
If the desired relative margin is r, the absolute margin is E = rp. Substituting this into the conventional formula gives:
Unlike the fixed-absolute-precision formula, the relative-precision requirement generally becomes more demanding as anticipated prevalence decreases.
Researchers should therefore define the precision needed for the prevalence estimate before interpreting the influence of p on sample size.
Does the Expected Number of Cases Matter?
Yes. A prevalence study may require enough observed cases to support stable estimation or additional analyses.
The expected number of cases is approximately np under independent sampling with anticipated prevalence p.
For example, a sample of 500 participants with expected prevalence of 2% would contain approximately ten cases on average.
The actual number may be smaller or larger. Ten expected cases may be insufficient for certain subgroup analyses or regression models, even if the total sample appears substantial.
Researchers should distinguish the sample needed to estimate overall prevalence from the sample needed for additional analyses involving cases.
For regression or prediction research, the number of outcome events relative to the total sample may be particularly consequential.
What If the Expected Prevalence Comes From a Different Population?
Prevalence depends on the population, case definition, measurement method, and time period.
An estimate from one country, institution, age group, or clinical setting may not apply directly to another.
For example, the prevalence of a particular student difficulty among first-year university students may differ from that among postgraduate students.
Researchers should assess the comparability of previous evidence and examine plausible alternative values when transferability is uncertain.
Using a range of prevalence assumptions may be preferable to adopting one estimate without qualification.
How Do Confidence-Interval Methods Affect Planning?
The conventional sample-size formula is derived from a normal approximation to the sampling distribution of a proportion.
However, different confidence-interval procedures have different widths and coverage properties, especially when sample sizes are small or prevalence is near zero or one.
Brown, Cai, and DasGupta (2001) provide a detailed examination of interval estimation for binomial proportions and explain important limitations of the Wald interval.
Researchers may need to calculate sample size using the intended interval method rather than relying exclusively on the simple formula.
This is particularly relevant when the target precision is strict or the expected number of cases is small.
How Does a Finite Population Affect the Relationship?
When a probability sample is drawn without replacement from a known finite population, the variance of the sample proportion can be reduced by the finite population correction.
A common approximate adjustment to the initial sample size is:
The correction becomes more consequential when the required sample is a substantial fraction of the population.
Its application should reflect the actual sampling design, rather than simply the fact that a study is conducted within a particular institution.
What Happens When Sampling Is Clustered or Weighted?
The conventional binomial formula assumes independent observations under an appropriate sampling model.
Cluster sampling, unequal selection probabilities, and survey weighting can alter the variance of the prevalence estimator.
For example, students within the same classroom may have correlated experiences, reducing the effective information provided by a given number of observations.
In such cases, a design effect or a more detailed survey-sampling calculation may be necessary.
The effect of expected prevalence should therefore be evaluated within the actual sampling design, not independently of it.
How Should Uncertainty in Expected Prevalence Be Addressed?
If the anticipated prevalence is uncertain, calculate sample sizes under several credible values.
For a fixed absolute margin of error, the largest sample-size requirement within a plausible prevalence interval occurs at the value closest to 50%.
For a fixed relative margin, smaller prevalence values generally produce larger requirements under the conventional approximation.
This distinction means that the most demanding scenario depends on the precision criterion.
A sample-size sensitivity analysis can make these differences explicit before recruitment.
Researchers should also consider whether the chosen prevalence assumptions are compatible with the intended population and case definition.