Prediction interval
A prediction interval bounds where a single new observation will likely fall. It is wider than the confidence interval for the mean because it must also account for the natural variability of individual observations around the fitted line.
FrameworkRegression inference
See it move
A regression's confidence interval bounds where the true average response lies at a given predictor value, capturing only estimation error. A prediction interval instead bounds where the next individual observation will fall, so it must also capture the natural scatter of observations around the fitted line. That extra scatter never disappears, so a prediction interval is always wider than the matching confidence interval.
The formula
Variables
- Fitted value at the new predictor value x*
- Critical t-value with n − 2 degrees of freedom at the chosen confidence level
- Residual standard error of the regression
- Number of observations in the sample
- New predictor value at which the forecast is made
- Sample mean of the predictor
The extra '1' inside the square root accounts for the natural scatter of individual observations around the true line, making the prediction interval always wider than the confidence interval for the conditional mean.