本文へスキップ
CalcVerse

信頼区間計算機

Calculate a confidence interval for a population mean (using the t or z distribution) or for a proportion (Wilson score interval), with the margin of error and critical value.

以下のガイドはまだ日本語に翻訳されていないため、英語で表示しています。計算機自体はすべて日本語に対応しています。

この計算機の使い方

  1. Choose an interval for a mean or for a proportion.
  2. For a mean, enter the sample mean, standard deviation and sample size, and choose whether the SD is from the sample (t) or known for the population (z).
  3. For a proportion, enter the sample size and number of successes.
  4. Choose the confidence level.

計算式

A confidence interval is the estimate plus or minus a margin of error. When the population SD is unknown (the usual case), the critical value comes from Student's t distribution with n − 1 degrees of freedom.

Mean: x̄ ± t* × s / √n
Mean (σ known): x̄ ± z* × σ / √n
Proportion (Wilson): (p̂ + z²/2n ± z√(p̂(1−p̂)/n + z²/4n²)) / (1 + z²/n)

Example

  1. x̄ = 50, s = 8, n = 40, 95% confidence: t*(39) ≈ 2.0227.
  2. SE = 8 / √40 ≈ 1.2649; margin ≈ 2.5585.
  3. 95% CI ≈ 47.44 to 52.56.

よくある質問

What does 95% confidence mean?

If you repeated the sampling many times, about 95% of the intervals built this way would contain the true value. It does not mean there is a 95% probability that this particular interval contains it.

When should I use t instead of z?

Use t whenever the standard deviation is estimated from your sample. For large samples (n > 100) t and z are nearly identical.

How can I make the interval narrower?

Increase the sample size (the margin shrinks with √n) or accept a lower confidence level.