Sub topic 16
Forecasting with Regression and Prediction Intervals
Assume you know the simple regression model, ordinary least squares, the standard error of estimate, and basic t distributions. This chapter shows how to use a fitted line to forecast a new observation and how to measure forecast uncertainty.
Point forecasts and interval forecasts
A simple regression produces a point forecast:
\hat y_0=b_0+b_1x_0Here, \(x0\) is the new explanatory-variable value, and \(\hat y0\) is the estimated average value of \(y\) at that value.
For example, suppose a fund's return is modeled from a market index return. A forecast for a 6% market return gives the fund's expected return according to the fitted line. The point forecast alone does not show how uncertain the result is.
A confidence interval estimates the mean response. It describes the average fund return for all observations with \(x=6\). A prediction interval estimates one individual future observation, so it is wider because it includes both uncertainty about the mean and the fund's remaining random variation.
| Interval | What it estimates | Width |
|---|---|---|
| Confidence interval | Mean response at \(x_0\) | Narrower |
| Prediction interval | One new observation at \(x_0\) | Wider |
For a regression with \(n\) observations, sample mean \(\bar x\), sum of squares \(S{xx}=\sum(xi-\bar x)^2\), and standard error of estimate \(s_e\):
\text{CI for mean response}=
\hat y_0\pm t_{\alpha/2,n-2}s_e
\sqrt{\frac{1}{n}+\frac{(x_0-\bar x)^2}{S_{xx}}}\text{PI for new observation}=
\hat y_0\pm t_{\alpha/2,n-2}s_e
\sqrt{1+\frac{1}{n}+\frac{(x_0-\bar x)^2}{S_{xx}}}The extra \(1\) makes the prediction interval wider. Both intervals become wider when \(x_0\) is far from \(\bar x\). Forecasting outside the observed range is called extrapolation, and it is especially risky because the linear relationship may not continue.
Worked calculation
For the data \(x=(1,2,3,4,5)\) and \(y=(2.1,3.9,6.2,7.8,10.1)\), the fitted line is approximately:
\hat y=0.05+1.99xAt \(x0=6\), the point forecast is approximately \(11.99\). Using \(se\approx0.19\), \(\bar x=3\), \(S{xx}=10\), and \(t{0.025,3}=3.182\), the 95% prediction interval is approximately:
11.99\pm3.182(0.19)
\sqrt{1+\frac15+\frac9{10}}
=[11.12,12.86]The forecast is about 11.99, but an individual future result could reasonably fall anywhere in this wider range under the model assumptions.
Exercise
Why is a prediction interval wider than a confidence interval for the mean response?
Show answer
It includes uncertainty in estimating the mean plus the random variation of an individual future observation.