サンプルサイズ計算器
誤差範囲の目標値に対する調査のサンプルサイズを求める。
結果はタイプすると更新されます。
この計算機の情報
This sample size calculator finds how many people you need to survey for a chosen margin of error and confidence level — the planning step before you run a poll or study. It uses the standard formula n = z²·p(1 − p) / e², where z is the critical value for the confidence level, p the expected proportion and e the target margin of error as a decimal.
When you supply a total population size it also applies a finite-population correction, n = n₀ / (1 + (n₀ − 1)/N), which lowers the required sample when you are surveying a large fraction of a small group. A table shows the sample needed at several common margins of error, and the result is always rounded up because you cannot survey a fraction of a person.
Worked example: for a 5% margin at 95% confidence with an unknown proportion (p = 0.5), n = 1.96² × 0.5 × 0.5 ÷ 0.05² = 3.8416 × 0.25 ÷ 0.0025 ≈ 384.16, so you need 385 respondents. Tightening the margin to 3% pushes that to about 1,068. The default 50% proportion gives the largest, safest sample; entering a better estimate of the true proportion reduces it.
よくある質問
標本の大きさはどのように計算されるか。
基礎式は,n=z2×p(1−p)/e2で,zは信頼限界値,pは期待比率,eは誤差幅を小数点で表したものである。
有限集団補正とは何か。
集団が小さいときは、基礎式が示すより少ない応答が必要になります。補正 n = n₀ / (1 + (n₀ − 1)/N) は、集団サイズ N に向かってサンプルを縮小します。これは、集団の大きな割合の場合に最も重要です。
95%の信頼度に 必要な人数は?
95%信頼度で5%の誤差を許容し、予測を行わないときは、約385人の回答者が必要になります。3%の誤差を許容すると、約1,068人、1%の誤差を許容すると、約9,604人が必要になります。
なぜサンプルサイズを丸める?
人間の一部を調査することはできません。それゆえ、分数の結果は次の整数に丸められます。丸める代わりに上に丸めることで、誤差幅が目標より大きくならないことを保証します。
人口の大きさを空にするかどうかです。
集団が非常に大きい場合は 0 にしておき、未知の場合は空白にしておく。これは標準的な無限集団サンプルサイズを与える。補正がサンプルを有意義に減らすのに十分小さい場合のみ実際の集団を入力します。
必要なサンプルサイズをどうやって減らすか。
誤差幅を大きくするか、信頼度を低くするか、または信頼できる推定値がある場合は 50% よりも大きい割合を与える。これらのいずれかは公式に必要な応答数を減らします。
API — コードからこの計算機を使う
この計算機を自由な JSON エンドポイントとして呼び出します。鍵は必要ありません。下のフィールド値をクエリパラメータまたは JSON として送信してください。 省略したものは、このページに既に入力されているデフォルトと同じ値を使用します。未知のパラメータは 400 で、サイレンスゼロはありません。 API ドキュメントを読む →
エンドポイント
GET https://calculator.free/api/v1/sample-size/
curl
curl "https://calculator.free/api/v1/sample-size/?conf=1.96&e=5"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/sample-size/?" + new URLSearchParams({
"conf": "1.96",
"e": "5"
}));
const data = await r.json();
console.log(data.results);
結果は一般的な指導のための推定であり,財務的,医療的または税務的な助言ではない。