Confidence Intervals for a Mean and a Proportion
A confidence interval is a range, computed from sample data, that is likely to contain a population parameter such as a mean or a proportion. A 95% confidence interval comes from a method that captures the true value in about 95% of repeated samples, and its width shows how precisely the sample estimates the parameter.
Quick facts
- Type
- Interval estimate of a population parameter
- Mean
- x̄ ± t(α/2, n − 1) × s / √n; with σ known, x̄ ± z(α/2) × σ / √n
- Proportion
- p̂ ± z(α/2) × √[ p̂(1 − p̂) / n ]
- Critical values
- z = 1.96 (95%) and 2.58 (99%); t from the table with n − 1 df
- Origin
- Jerzy Neyman, first in 1934, with the full theory of estimation in 1937
- Reference
- IASSC™ Green Belt Body of Knowledge §3.2
- Exam relevance
- Green Belt (Analyze phase); frequent calculation and interpretation items
How do you calculate a confidence interval for a mean?
Every interval has the same shape: estimate ± critical value × standard error.
x̄ ± z(α/2) × σ / √nwhen σ is known (from long, stable history)x̄ ± t(α/2, n − 1) × s / √nwhen σ is estimated by s, the usual case
Critical values come from the formula sheet: z = 1.96 for 95% and 2.58 for 99%; t with n − 1 degrees of freedom, read in the α/2 column because the interval is two-sided.
With σ known. Larchfield Logistics times 36 truck unloadings: x̄ = 55.0 minutes, and long-run data give σ = 9 minutes, so σ/√n = 9/6 = 1.5.
| Confidence | Calculation | Interval |
|---|---|---|
| 95% | 55.0 ± 1.96 × 1.5 = 55.0 ± 2.94 | 52.06 to 57.94 min |
| 99% | 55.0 ± 2.58 × 1.5 = 55.0 ± 3.87 | 51.13 to 58.87 min |
With σ unknown. Northgate Insurance samples 25 claims: x̄ = 18.0 days and s = 5.0 days, so s/√n = 1.0. With 24 df, t = 2.064 for 95%.
| Step | Calculation | Result |
|---|---|---|
| Margin of error | 2.064 × 5.0 / √25 | 2.064 |
| Interval | 18.0 ± 2.064 | 15.94 to 20.06 days |
Intervals are rounded half-up to two decimals. With an estimated σ, t gives a wider interval than z, reflecting the extra uncertainty.
A confidence interval for a mean is the sample mean plus or minus a critical value times the standard error, never times the standard deviation alone.
How do you calculate a confidence interval for a proportion?
For a proportion, the standard error comes from p̂ itself:
p̂ ± z(α/2) × √[ p̂(1 − p̂) / n ]
Worked example. Harbourside Council reviews 400 permit applications and finds 48 incomplete.
| Step | Calculation | Result |
|---|---|---|
| p̂ | 48 / 400 | 0.12 |
| Standard error | √(0.12 × 0.88 / 400) | 0.0162 |
| Margin of error (95%) | 1.96 × 0.0162 | 0.032 |
| Interval | 0.12 ± 0.032 | 0.088 to 0.152 |
Intermediate values are carried unrounded; the interval is rounded half-up to three decimals. The council can say that between about 9% and 15% of applications arrive incomplete.
This is the normal-approximation interval. It needs enough successes and failures: a common check is n·p̂ ≥ 5 and n(1 − p̂) ≥ 5 (here 48 and 352) (some texts ask for 10). For small samples or proportions near 0 or 1, exact or Wilson intervals are more reliable.
A confidence interval for a proportion follows the same estimate-plus-margin logic, with the binomial standard error √[p̂(1 − p̂)/n].
How do you interpret a confidence interval?
"95% confident" describes the method, not one interval. If the study were repeated many times, about 95% of the intervals built this way would contain the true parameter. The true mean is fixed; it is the interval that changes from sample to sample.
Three readings follow:
- It is about the parameter, not individuals. The Northgate interval of 15.94 to 20.06 days brackets the mean claim time, not 95% of individual claims, which spread much wider.
- It links to hypothesis tests. If a hypothesized value lies outside a 95% interval, a two-sided test at α = 0.05 rejects it. A target of 21 days is outside 15.94 to 20.06, so the mean differs from 21 days at the 5% level.
- Intervals for a difference (between two teams, before and after a change) that include 0 mean the data do not show a difference at that confidence level.
The width is the practical message: a narrow interval means the estimate is precise; a wide one means more data are needed before deciding.
A confidence interval is read as a range of plausible values for the parameter, with its width showing how much the sample really tells.
What makes a confidence interval wider or narrower?
Four things set the width of the interval, all visible in the formulas:
| Change | Effect on width | Why |
|---|---|---|
| Higher confidence (95% to 99%) | Wider | Larger critical value: 2.58 instead of 1.96 |
| Larger sample | Narrower | The standard error falls with √n; four times the data halves the width |
| More variation in the data | Wider | Larger s or p̂(1 − p̂) |
| Small sample with σ estimated | Wider | t critical values exceed z, most at low df |
In the Larchfield example, moving from 95% to 99% widened the interval from ±2.94 to ±3.87 minutes. Cutting the width in half at the same confidence would need 144 unloadings instead of 36.
The interval can also be planned: fix the margin of error E you need and solve for n before collecting data.
Confidence level, sample size and variation are the three levers that set the width of a confidence interval.
What are the common mistakes with confidence intervals?
Confidence intervals are more informative than a bare p-value: they show the size of an effect and the uncertainty around it in the units of the process. Their common misuses are:
- Using s instead of s/√n. The interval becomes √n times too wide.
- Reading the one-tailed t value. A two-sided 95% interval uses the 0.025 column, not 0.05.
- Using z with a small sample and an estimated σ. The interval is too narrow.
- Mixing up 1.96 and 2.58. 1.96 is for 95%, 2.58 for 99%.
- Reading the interval as a range for individual values. That is a prediction or tolerance interval.
- Saying the true mean "has a 95% chance" of being inside this interval. The confidence is in the method.
- Ignoring bias. An interval from a non-random sample is precise about the wrong population.
Most errors with confidence intervals come from the standard error and the critical value, so write both down before computing the interval.
Confidence interval vs. prediction interval: what is the difference?
| Confidence interval | Prediction interval | |
|---|---|---|
| Brackets | A parameter, such as the mean | One future individual value |
| Width | Narrower | Wider: adds the spread of individual values |
| As n grows | Shrinks toward zero width | Shrinks toward the spread of individual values, never to zero |
| Typical question | What is the mean claim time? | How long will the next claim take? |
| Example use | Estimating a baseline or a difference | Forecasting from a regression model |
A confidence interval estimates where the mean lies; a prediction interval estimates where the next single value will fall. Use the first for decisions about the process and the second for individual outcomes.
Exam focus
Confidence intervals sit in IASSC™ section 3.2 (inference), in Green Belt scope, as calculation and interpretation items. Expect to build an interval for a mean with z when σ is known or with t and n − 1 df when it is not, and an interval for a proportion. The traps are using s instead of s/√n, reading the one-tailed t value, using 2.58 at 95%, and treating the interval as a range for individual values. Practise in the Analyze phase drill.
Practise this DMAIC phase →FAQ
What does a 95% confidence interval actually mean?
It means the method used to build the interval captures the true parameter in about 95% of repeated samples. For one computed interval, the true value is either inside or not; the 95% describes how reliable the procedure is, not a probability that the fixed true value moves around.
When do I use t instead of z for a confidence interval?
Use t whenever the population standard deviation is unknown and estimated by the sample standard deviation, which is almost always. Read t with n − 1 degrees of freedom in the α/2 column. Use z only when σ is known from long, stable history, or for proportions.
How do I make a confidence interval narrower?
Collect more data, reduce the variation in the data (for example with a better measurement system or by stratifying), or accept a lower confidence level. Because the width depends on √n, halving the width needs about four times the sample size.
What does it mean if a confidence interval for a difference includes zero?
It means the data are consistent with no difference at that confidence level, so a matching two-sided hypothesis test would not reject the null hypothesis. It does not prove the groups are equal: a wide interval that includes zero may also include differences large enough to matter.
What is the margin of error in a confidence interval?
The margin of error is the half-width of the interval: the critical value times the standard error. In the interval 18.0 ± 2.064 days, the margin of error is 2.064 days. Sample-size formulas start from the margin of error you are willing to accept.
Sources
- Neyman, J. (1937). Outline of a Theory of Statistical Estimation Based on the Classical Theory of Probability. Philosophical Transactions of the Royal Society A, 236, 333–380.
- Neyman, J. (1934). On the Two Different Aspects of the Representative Method: The Method of Stratified Sampling and the Method of Purposive Selection. Journal of the Royal Statistical Society, 97(4), 558–625.
- Student [Gosset, W. S.] (1908). The Probable Error of a Mean. Biometrika, 6(1), 1–25.
- Montgomery, D. C. & Runger, G. C. (2018). Applied Statistics and Probability for Engineers (7th ed.). Wiley.
- IASSC™ (n.d.). Lean Six Sigma Green Belt Body of Knowledge, §3.2.
- Last reviewed