🔮 Sample Size Estimator

Enter a mean margin in the same unit as σ and a proportion margin on the 0–1 scale, then estimate the minimum sample size for a mean and a proportion separately.

📐 計算公式 / 原理
均值估計 n = ⌈(z·σ / e)²⌉;比例估計 n = ⌈z²·p(1−p) / e²⌉
按給定置信水平反解 z 後分別估計樣本量:均值用 n = (z·σ/e)²,e 必須與 σ、原始測量值同單位;比例用 n = z²·p(1−p)/e比例²,e比例為 0–1 的比例(0.05 表示 ±5 個百分點)。兩個誤差不能共用一個數字代表相同精度;結果向上取整,用於調查與實驗的抽樣規劃。

📐 計算公式與說明

n均值 = (Z · σ / e均值)²
n比例 = Z² · p(1−p) / e比例²

結果向上取整。