Improve Phase

Confidence vs. Prediction Intervals in Regression

A confidence interval in regression gives the plausible range for the mean response at a given X, while a prediction interval gives the plausible range for one new individual observation at that X. The prediction interval is always wider, because it adds the scatter of individual values, S, to the uncertainty in the fitted line.

Quick facts

Type
Interval estimates from a fitted regression model
Confidence interval (mean)
Ŷ ± t × SEfit
Prediction interval (one value)
Ŷ ± t × √(S² + SEfit²)
Degrees of freedom
n − k − 1 (n − 2 in simple regression)
Narrowest at
X = x̄; both widen as X moves away from the mean
Reference
IASSC™ Green Belt Body of Knowledge §4.2.3
Exam relevance
Green Belt (Improve phase)

What is the difference between a confidence interval and a prediction interval?

A fitted regression line answers two different questions at a chosen X, and each has its own interval:

  • Where is the average? The confidence interval for the mean response covers the true mean of Y for all units with that X. Its only uncertainty is where the line itself lies, because the coefficients were estimated from a sample.
  • Where will the next one fall? The prediction interval covers a single new observation at that X. It carries the uncertainty of the line plus the natural scatter of individual values around the line.

That second source of uncertainty does not shrink with more data: even a perfectly known line leaves individual results scattered by about S, the standard error of the regression. A confidence interval narrows toward zero as n grows; a prediction interval narrows only toward roughly ±2S.

Confidence and prediction intervals both come from the same fitted line, but one describes the mean and the other an individual result.

How do you calculate confidence and prediction intervals?

Both intervals use the standard error of the fit at the chosen value x₀:

  • SEfit = S × √(1/n + (x₀ − x̄)² / Sxx) (simple regression)
  • Confidence interval for the mean: Ŷ ± t(α/2, n − k − 1) × SEfit
  • Prediction interval for one value: Ŷ ± t(α/2, n − k − 1) × √(S² + SEfit²)

In multiple regression, the output reports SEfit directly; the two interval formulas stay the same.

Worked example. Kestrel Retail models shelf restocking time in minutes on cartons delivered: Ŷ = 12 + 0.5X, from n = 20 deliveries of 20 to 75 cartons, with S = 2.5, x̄ = 40 and Sxx = 2,000. With 18 degrees of freedom, t(0.025, 18) = 2.101.

x₀ (cartons)Ŷ (min)SEfit95% CI for the mean95% PI for one delivery
4032.00.56(30.83, 33.17)(26.62, 37.38)
5037.00.79(35.34, 38.66)(31.49, 42.51)
7047.01.77(43.29, 50.71)(40.57, 53.43)

At 50 cartons, SEfit = 2.5 × √(1/20 + 100/2,000) = 0.79, the CI half-width is 2.101 × 0.79 = 1.66, and the PI half-width is 2.101 × √(6.25 + 0.625) = 5.51. Intermediate values are kept unrounded; results are rounded half-up to two decimals.

Confidence and prediction intervals differ by one term, S², and that term makes the prediction interval more than three times wider here.

Why are the intervals narrowest at the mean of X?

Both formulas contain the term (x₀ − x̄)². The fitted line is anchored at the point (x̄, ȳ), where its position is known best. Away from x̄, any error in the slope swings the line further from the truth, so the uncertainty grows.

In the restocking example:

  • at x₀ = 40 (the mean), SEfit is 0.56 and the CI half-width ±1.17;
  • at x₀ = 70, SEfit rises to 1.77 and the CI half-width to ±3.71.

Plotted across the X range, the two intervals form curved bands around the line: narrowest at x̄, flaring toward the ends. The confidence band flares more in relative terms, because SEfit is its only component; the prediction band stays dominated by S.

The flare is one more reason to distrust extrapolation. Beyond the observed range, the bands keep widening, and they also assume the straight line still holds there, which the data cannot confirm.

Confidence and prediction intervals are most precise near the center of the data and least precise at its edges.

Which interval should you quote for a decision?

Match the interval to the question:

QuestionInterval
What is the average restocking time for 50-carton deliveries?Confidence interval for the mean
How long will tomorrow's 50-carton delivery take?Prediction interval
Can we promise this customer an answer within X days?Prediction interval
How many staff hours do 200 deliveries of 50 cartons need in total?Confidence interval for the mean, scaled
Is the effect of cartons real, and how large?Confidence interval for the slope

At Harbourside Council, an analyst quoted the confidence interval to a resident asking how long their own permit would take. The range looked precise, but it described the average permit, and many individual permits fell outside it. The prediction interval was the honest answer for one application.

In Improve, prediction intervals also help set realistic targets: if the prediction interval at the planned setting still crosses a specification limit, some individual results will miss it even when the average is on target.

Confidence intervals describe averages for planning; prediction intervals describe individual outcomes for promises and specifications.

What are the common mistakes with confidence and prediction intervals?

Both intervals are simple to compute from standard regression output and communicate uncertainty far better than a single predicted value. The common mistakes are:

  • Quoting the confidence interval for an individual case, which understates the uncertainty.
  • Using z instead of t, or the wrong degrees of freedom: n − k − 1, which is n − 2 with one predictor.
  • Adding S and SEfit instead of combining their squares under a square root.
  • Treating the band width as constant across X.
  • Extrapolating, where the intervals rest on an assumed shape.
  • Ignoring the assumptions. Both intervals rely on normal errors with constant variance; a funnel in the residuals makes the prediction interval too narrow at high fitted values.

Confidence and prediction intervals are only as good as the regression model and residuals behind them.

Confidence interval for the mean vs. prediction interval: what is the difference?

Confidence interval (mean response)Prediction interval (one new value)
CoversThe true mean of Y at x₀A single future observation at x₀
FormulaŶ ± t × SEfitŶ ± t × √(S² + SEfit²)
Width as n growsShrinks toward zeroShrinks toward about ±2S
Typical usePlanning, average performance, comparing settingsPromises to customers, individual forecasts, checking specs
Relative widthNarrowerAlways wider at the same x₀ and confidence level

Quote the confidence interval when the question is about an average and the prediction interval when it is about one case. Both come from the same fitted model and the same t value.

Exam focus

Confidence and prediction intervals are IASSC™ section 4.2.3, in Green Belt scope only. Expect to compute a prediction interval from Ŷ, S and SEfit with the formula on the formula sheet, a confidence-interval half-width from SEfit, and to choose which interval answers a scenario. Traps include using SEfit alone for a single case, adding S and SEfit, using z instead of t, and forgetting that both bands are narrowest at x̄. Practise in the Improve phase drill.

Practise this DMAIC phase →

FAQ

Why is a prediction interval wider than a confidence interval?

A confidence interval accounts only for the uncertainty in where the regression line lies. A prediction interval must also cover the random scatter of one individual value around the line, measured by S. Adding that second source of variation always makes the prediction interval wider at the same X and confidence level.

What is SE fit in regression output?

SE fit is the standard error of the fitted mean at a chosen X. It measures how precisely the model estimates the average Y there, and it grows as X moves away from the mean of the data. The confidence interval uses it alone; the prediction interval combines it with S.

Should I use a confidence or a prediction interval for a forecast?

For a forecast of a single outcome, such as one order, one claim or one day, use the prediction interval. For a forecast of an average over many similar units, use the confidence interval for the mean. Using the narrower confidence interval for a single case overstates your precision.

Does a larger sample make the prediction interval much narrower?

Only up to a point. More data shrink SEfit, so the confidence interval keeps narrowing, but the scatter of individual values, S, belongs to the process. The prediction interval therefore levels off at about ±2S; only reducing process variation narrows it further.

Sources

Last reviewed

Six Sigma is a registered trademark of Motorola Trademark Holdings, LLC. IASSC™, International Association for Six Sigma Certification™, IASSC Certified Green Belt™ and IASSC Certified Yellow Belt™ are trademarks of the International Association for Six Sigma Certification. ASQ® and its certification names belong to ASQ. Other names may be trademarks of their respective owners. This guide is independent and is not affiliated with, endorsed by or sponsored by IASSC™, PeopleCert, ASQ® or any certifying body. Its practice questions are original and are not taken from any exam.