StatsCalculators.com

Confidence Interval for a Mean

Created:September 22, 2024
Last Updated:February 13, 2025

This calculator will compute the confidence interval for a mean, given the raw data or sample statistics. It will perform a t-test or a z-test based on whether the population standard deviation is known.

Calculator

1. Load Your Data

Learn More

Confidence Interval for a Mean: Definition, Formula, and Interpretation

What is a Confidence Interval?

A confidence interval for a mean is a range of values that is likely to contain the true population mean with a certain level of confidence. It provides both an estimate of the mean and a measure of the uncertainty associated with that estimate.

Formula

The general formula for a confidence interval is:

CI=xˉ±(critical value)(standard error) \text{CI} = \bar x \pm (\text{critical value}) \cdot (\text{standard error})

Where:

  • xˉ\bar x is the sample mean
  • The critical value depends on the confidence level and whether you're using a z-distribution or t-distribution
  • The standard error is sn\frac{s}{\sqrt{n}} for unknown population standard deviation, or σn\frac{\sigma}{\sqrt{n}} for known population standard deviation

Interpretation

If you were to repeat the sampling process many times and calculate a 95% confidence interval for each sample, about 95% of these intervals would contain the true population mean. It does not mean there's a 95% probability that the population mean falls within a single calculated interval.

Verification

Related Calculators