Confidence Interval Formula
Calculate the range where the true population mean likely falls.
Essential for surveys, experiments, and data analysis.
The Formula
A confidence interval gives a range of values that is likely to contain the true population parameter. The wider the interval, the more confident you can be — but the less precise the estimate.
Variables
| Symbol | Meaning |
|---|---|
| CI | Confidence interval (lower bound to upper bound) |
| x̄ | Sample mean |
| z | Z-score for desired confidence level (1.96 for 95%, 2.576 for 99%) |
| σ | Standard deviation (population or sample) |
| n | Sample size |
| σ/√n | Standard error of the mean |
Example 1
Sample of 100 students: mean score = 75, σ = 10. Find the 95% CI.
Standard error = 10 / √100 = 10 / 10 = 1
Margin of error = 1.96 × 1 = 1.96
95% CI: 75 ± 1.96 = (73.04, 76.96)
Example 2
Survey of 400 people: mean spending = $150, σ = $40. Find the 99% CI.
Standard error = 40 / √400 = 40 / 20 = 2
Margin of error = 2.576 × 2 = 5.15
99% CI: $150 ± $5.15 = ($144.85, $155.15)
When to Use It
Use the confidence interval formula when:
- Estimating population parameters from sample data
- Reporting survey results with a margin of error
- Determining if two groups are statistically different
- Deciding how large a sample you need for a desired precision