n = z²·p(1−p) / e²

Given a confidence level, margin of error and expected proportion, estimate the minimum sample size needed to estimate a population proportion, for survey design.

📐 计算公式
基础 n₀=z²×p×(1−p)÷e²;有限总体校正 n₁=n₀÷(1+(n₀−1)/N);设计效应 n₂=n₁×DEFF;最终发放 n=⌈n₂÷应答率⌉
这是简单随机抽样下的正态近似精度规划:需检查 n₀·p 与 n₀·(1−p) 均不小于 5,罕见比例或极小样本应改用 Wilson/精确区间规划。N、DEFF、应答率均为可选:N 留空表示无限总体,DEFF 留空按 1(简单随机),应答率留空按 100%。基础估算不是任何复杂调查的最终人数。抽样标准误按向上取整后的有效样本 n₂ 计算,不按邀请人数计算;p=0 或 1 会退化,本页直接拒绝而非给出 0 样本。

给定置信水平与误差界估计所需样本量。

Formula & Standard References

Item Formula / Note Source / Standard
Sample size for a proportion n = z^2 · p · (1 - p) / E^2, where E is the margin of error Cochran WG, Sampling Techniques (3rd ed., 1977), Wiley
Finite population correction n_adj = n / (1 + (n - 1)/N), where N is the population size Cochran WG, Sampling Techniques (3rd ed., 1977)
Worst-case proportion p = 0.5 maximizes p(1-p) and gives the most conservative sample size Cochran WG, Sampling Techniques (3rd ed., 1977)
Confidence level and z A 95% two-sided confidence level corresponds to z = 1.96 NIST/SEMATECH e-Handbook of Statistical Methods, normal quantiles
📌 计算说明
  • p=0.5 时样本量最大。
  • 95% 置信取 z=1.96。