What is a confidence interval?
A confidence interval is a range, worked out from a sample, that is likely to contain the true mean. A 90% confidence level means that if you took many samples and built an interval from each one in the same way, about 90% of those intervals would contain the true mean. A higher level gives a wider interval; a bigger sample gives a narrower one.
Source OpenStax · Introductory Statistics 2e, 8.1 A Single Population Mean using the Normal Distribution ↗
How to calculate a confidence interval
Here it is with your numbers:
- For 90% confidence, z = 1.6449
- Standard error: 3 ÷ √36 = 0.5
- Margin of error: 1.6449 × 0.5 = 0.8224
- Interval: 68 ± 0.8224, from 67.1776 to 68.8224.
It means that if you took many samples of 36 and worked out an interval this way each time, about 90% of the intervals would contain the true mean.
Confidence interval at 80%, 90%, 95%, 98% and 99%
For the numbers above:
| Level | Margin of error | Interval |
|---|---|---|
| 80% | ± 0.6408 | 67.3592 – 68.6408 |
| 90% | ± 0.8224 | 67.1776 – 68.8224 |
| 95% | ± 0.98 | 67.02 – 68.98 |
| 98% | ± 1.1632 | 66.8368 – 69.1632 |
| 99% | ± 1.2879 | 66.7121 – 69.2879 |
Known standard deviation, or from your sample?
This calculator uses the normal curve (z-scores), which is right when you know the standard deviation of the whole population. In practice it usually comes from the sample itself. Then the Student’s t-distribution is the standard choice, and it gives a slightly wider interval, most of all for small samples.
Confidence interval examples
| Example | Interval |
|---|---|
| Exam scores (OpenStax 8.2) | 67.1776 – 68.8224 |
| The same, at 95% (OpenStax 8.4) | 67.02 – 68.98 |
| Phone radiation, SAR (OpenStax 8.3) | 0.8809 – 1.1671 |
FAQs
How do I calculate a 95% confidence interval?
Work out 1.96 × standard deviation ÷ √(sample size), then subtract it from and add it to the mean. For a mean of 68, a standard deviation of 3 and 36 people, 1.96 × 3 ÷ 6 is 0.98, so the 95% interval is 67.02 to 68.98.
Source OpenStax · Introductory Statistics 2e, 8.1 A Single Population Mean using the Normal Distribution ↗
How do you calculate a confidence interval?
Mean ± z × standard deviation ÷ √n. The z-score depends on the confidence level: 1.6449 for 90%, 1.96 for 95% and 2.5758 for 99%. The part after ± is the margin of error (error bound).
Sources
- OpenStax: Introductory Statistics 2e, 8.1 A Single Population Mean using the Normal Distribution
- OpenStax: Introductory Statistics 2e, 8.2 A Single Population Mean using the Student t Distribution