Confidence vs Prediction Intervals
In simple linear regression, once you have a fitted line, you can use it to estimate values of the response variable at a given . But a single point estimate () doesn't tell you how uncertain that estimate is. That's where confidence intervals and prediction intervals come in. They both give you a range of plausible values, but they answer different questions.
A confidence interval for the mean response answers: What is the plausible range for the average across the entire population at this ?
A prediction interval answers: What is the plausible range for a single new observation's at this ?
This distinction matters a lot. Predicting where one individual data point will land involves more uncertainty than estimating where the population mean sits, because individual observations scatter around the mean. That extra source of variability is why prediction intervals are always wider than confidence intervals at the same confidence level and the same .
Factors Influencing Interval Width
Both types of intervals get wider or narrower depending on:
- Sample size — Larger gives you more information about the regression line, so both intervals shrink.
- Data variability — Higher (more scatter around the fitted line) widens both intervals.
- Confidence level — A 99% interval is wider than a 95% interval because you need a larger range to be "more sure."
- Distance of from — The farther is from the center of your data, the wider both intervals become. This is reflected in the term in the formulas below.
Prediction Intervals for Individual Observations
Standard Error of Prediction
The standard error of prediction captures two sources of uncertainty: uncertainty in the estimated regression line itself, plus the natural variability of individual observations around that line. The formula is:
- — mean squared error (estimate of , the variance of the errors)
- — sample size
- — the specific value of the predictor where you're making the prediction
- — mean of the predictor variable in your sample
- — sum of squared deviations of the predictor,
Notice the 1 inside the parentheses. That term accounts for the variability of an individual observation around the true regression line. It's what makes prediction intervals wider than confidence intervals.
Calculating the Prediction Interval
Once you have , the prediction interval is:
-
Compute by plugging into your fitted regression equation.
-
Calculate using the formula above.
-
Find the critical value from the t-distribution with degrees of freedom. For a 95% interval, .
-
Multiply the critical value by and add/subtract from .

Confidence Intervals for Mean Response
Standard Error of the Mean Response
The standard error of the mean response (sometimes called the standard error of ) captures only the uncertainty in estimating the regression line:
Compare this to the prediction standard error. The only difference is the absence of the 1 inside the parentheses. Without that term, always, which is why confidence intervals for the mean are narrower.
Calculating the Confidence Interval
The steps mirror the prediction interval calculation:
- Compute at .
- Calculate using the formula above.
- Look up .
- Form the interval: .
Interpreting Intervals in Context
Getting the numbers right is only half the job. You also need to state what the interval means in the context of the problem, and the wording differs for the two interval types.

Interpreting a Prediction Interval
A prediction interval gives a range for a single future observation. Correct interpretation:
"We are 95% confident that the exam score for a particular student who studies 5 hours will be between 72 and 91."
The interval covers where one individual's response might fall, including all the person-to-person variability.
Interpreting a Confidence Interval for the Mean Response
A confidence interval for the mean response gives a range for the population average at that . Correct interpretation:
"We are 95% confident that the mean exam score of all students who study 5 hours is between 78 and 85."
Notice this interval is narrower. You're estimating a population parameter (the mean), not predicting a single outcome.
A Common Interpretation Mistake
Be careful with the phrase "95% probability." Strictly speaking, the true mean (or the future observation) is a fixed quantity; it either falls in the interval or it doesn't. The 95% refers to the procedure: if you repeated the sampling and interval construction many times, about 95% of those intervals would contain the true value. In practice, saying "we are 95% confident" is the accepted shorthand, but avoid saying "there is a 95% probability that the true mean is in this interval" on an exam, as many instructors will mark that as incorrect.
Why Intervals Widen Away from
Both interval types are narrowest when and grow wider as moves away from the center of the data. This happens because the term increases. Visually, if you plot confidence or prediction bands around the regression line, they form a "bowtie" or hyperbolic shape, tightest at the mean of and flaring out at the edges. This is a good reminder that extrapolating far beyond your data produces very wide (and unreliable) intervals.