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。