Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
StatisticsIntroductory StatisticsHigh school

Confidence Intervals

Estimate a mean or proportion with a margin of error.

A confidence interval estimates an unknown population value from a sample and reports how uncertain the estimate is. It has the form estimate ±\pm margin of error, for example xˉ±z∗σn\bar{x} \pm z^* \frac{\sigma}{\sqrt{n}} for a mean. A 95%95\% confidence level means the method captures the true value in 95%95\% of repeated samples.

The margin of error shrinks as the sample size grows, but only with the square root of nn: quadrupling the sample halves the margin. Higher confidence levels need a larger critical value and give wider intervals, so there is always a trade-off between precision and confidence.

Key terms

Interval for a mean
Point estimate plus or minus critical value times standard error.
xˉ±t∗sn\bar{x} \pm t^*\frac{s}{\sqrt{n}}

Key ideas

  • Critical values: z∗=1.645z^* = 1.645 (90%), 1.961.96 (95%), 2.5762.576 (99%).
  • Use t∗t^* with n−1n - 1 degrees of freedom when σ\sigma is estimated by ss.
  • Proportion: p^±z∗p^(1−p^)n\hat{p} \pm z^*\sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}.
  • Check conditions: random sample, independence, roughly normal sampling distribution.

Worked example

A random sample of 100 bulbs has mean life 1200 hours; assume σ=50\sigma = 50. Build a 95%95\% interval.

  1. Standard error: 50100=5\frac{50}{\sqrt{100}} = 5.
  2. Margin: 1.96×5=9.81.96 \times 5 = 9.8.
  3. Interval: 1200±9.81200 \pm 9.8.
  4. (1190.2,1209.8)(1190.2, 1209.8) hours.

Answer: (1190.2,1209.8)(1190.2, 1209.8)

Common mistakes

  • Saying there is a 95%95\% probability the true mean is in this particular interval.
  • Using nn instead of n\sqrt{n} in the standard error.
  • Ignoring the conditions for inference.

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.What is the standard error when σ=12\sigma = 12 and n=36n = 36?

    Show answer

    22

  2. 2.What is the 95%95\% margin of error when the standard error is 3?

    Show answer

    5.885.88

  3. 3.For p^=0.5\hat{p} = 0.5 and n=400n = 400, what is the standard error?

    Show answer

    0.0250.025

More in Introductory Statistics