Confidence Interval: formula
NIST: confidence intervals for known and estimated deviation
A normal-z interval requires the relevant assumptions, including a known population standard deviation or an explicitly justified approximation. When population deviation is estimated from normal data, a t interval accounts for that uncertainty even with larger samples. Bias, dependence and sampling design are not corrected merely by increasing sample size.
Confidence Interval: worked example
| Sample mean | 100 |
|---|---|
| Standard deviation | 15 |
| Sample size | 30 |
| Confidence level | 95% |
| Lower bound | 94.6 |
| Upper bound | 105.4 |
Use a sample mean, known population standard deviation, positive sample size and the normal critical value for the selected confidence level. A population-normality assumption supports the exact known-deviation mean interval. If deviation is estimated, use an appropriate t procedure or explicitly justified approximation; this z tool does not select that procedure automatically.
Confidence Interval: changing Sample mean
| Sample mean | Lower bound | Upper bound |
|---|---|---|
| 80 | 74.6 | 85.4 |
| 90 | 84.6 | 95.4 |
| 100 (example) | 94.6 | 105.4 |
| 110 | 104.6 | 115.4 |
| 120 | 114.6 | 125.4 |
Confidence Interval: compare input ranges
| Input | Tested from | To | Lower bound: low input | Lower bound: high input | Swing |
|---|---|---|---|---|---|
| Sample mean | 90 | 110 | 84.6 | 104.6 | 20 (21%) |
| Confidence level | 90% | 99% | 95.5 | 92.9 | 2.5 (2.7%) |
| Standard deviation | 14 | 17 | 95 | 93.9 | 1.1 (1.1%) |
| Sample size | 27 | 33 | 94.3 | 94.9 | 0.54 (0.6%) |
Confidence Interval: individual input comparisons
| Input | Value | Lower bound | Upper bound |
|---|---|---|---|
| Sample mean | 80 | 74.6 | 85.4 |
| 90 | 84.6 | 95.4 | |
| 100 | 94.6 | 105.4 | |
| 110 | 104.6 | 115.4 | |
| 120 | 114.6 | 125.4 | |
| Standard deviation | 12 | 95.7 | 104.3 |
| 14 | 95 | 105 | |
| 15 | 94.6 | 105.4 | |
| 17 | 93.9 | 106.1 | |
| 18 | 93.6 | 106.4 | |
| Sample size | 24 | 94 | 106 |
| 27 | 94.3 | 105.7 | |
| 30 | 94.6 | 105.4 | |
| 33 | 94.9 | 105.1 | |
| 36 | 95.1 | 104.9 | |
| Confidence level | 90% | 95.5 | 104.5 |
| 95% | 94.6 | 105.4 | |
| 99% | 92.9 | 107.1 |
Confidence Interval: combined input changes
| Sample mean / Standard deviation | 12 | 15 | 18 |
|---|---|---|---|
| 80 | 75.7 | 74.6 | 73.6 |
| 90 | 85.7 | 84.6 | 83.6 |
| 100 | 95.7 | 94.6 | 93.6 |
| 110 | 105.7 | 104.6 | 103.6 |
| 120 | 115.7 | 114.6 | 113.6 |
Confidence Interval: which assumptions move the result?
Confidence Interval: values and definitions
| Quantity and definition | Value used |
|---|---|
| Sample mean | 100 |
| Standard deviation | 15 |
| Sample size | 30 |
| Confidence level — How confident the interval should be. | 95% |
| Lower bound | 94.6 |
| Upper bound | 105.4 |
Confidence Interval: half and double Sample mean
| Sample mean | Lower bound |
|---|---|
| 50 | 44.6 |
| 100 | 94.6 |
| 200 | 194.6 |
Common error: Reading a 95% interval as 95% likely to contain the true value. That statement describes a different, more casual idea than what the confidence level is a guarantee about.
Statistics & Probability calculators: Sample Size Calculator, Binomial Probability Calculator, Normal Distribution Probability Calculator, P-Value from Z-Score Calculator, Expected Value Calculator, Bayes' Theorem Calculator.
A 95% confidence interval does not mean there's a 95% chance the true population mean falls inside this particular interval: the true mean either is or isn't in there, with no probability left to assign once the sample is drawn. What 95% describes is the method: run the same sampling process many times, and about 95% of the intervals it produces would contain the true mean.
Confidence coverage concerns the long-run reliability of the interval procedure, not a probability assigned to this particular fixed interval.
Plan how many observations you need on the sample size calculator, find the standard deviation on its page, and test claims on the z-score and p-value calculators. The mean and median page gives the sample mean, and the normal probability calculator handles areas under the curve.
Confidence Interval Calculator: quantities and terminology
What does a 95% confidence interval mean?
If you repeated the sampling many times, about 95% of the intervals built this way would contain the true population value.
How can I make an interval narrower?
Increase the sample size, reduce variability in the measurements or accept a lower confidence level, which trades certainty for precision.
When should I use the t distribution?
For the usual independent normal-sample mean procedure with unknown population standard deviation, use the sample estimate and the appropriate t critical value. It is not only a small-sample distinction. Check the sampling assumptions and degrees of freedom; another data-generating process may require a different interval procedure.