Prediction Interval
Study guides: Exam SRM, Exam MAS-II, Exam ACIA-CAPSTONE
A Prediction Interval is a range that will contain a future observation with a stated probability. It is centred on the point prediction. A confidence interval covers a fixed quantity such as a mean response. A prediction interval must also allow for the random error the new observation will carry, so it is always at least as wide.
For a time series forecast \hat{x}_{t+k \mid t} the 95% prediction interval is
\hat{x}_{t+k \mid t} \pm 1.96\,\text{SE}
\text{SE}is the forecast standard error, the square root of the forecast error variance\sigma^2\sum_{j=0}^{k-1}\psi_j^2.
The interval assumes the new observation follows the same model as the data it was fitted to, with normal errors. In R, predict() on a fitted arima model returns the forecasts as pred and their standard errors as se.
Quarterly claim frequency is fitted as
x_t = 2.4 + 0.6x_ + w_t, and the software reportspred6.600andse0.500one step ahead, andpred6.216andse0.610three steps ahead. What are the 95% prediction intervals?
- One step ahead,
6.600 \pm 1.96(0.500) = 6.600 \pm 0.980, from5.62to7.58.- Three steps ahead,
6.216 \pm 1.96(0.610) = 6.216 \pm 1.196, from5.02to7.41.- The standard error grows with each step because one more unknown shock enters. For this AR(1) it levels off at
\sigma/\sqrt{1 - 0.6^2} = 0.5/0.8 = 0.625.
How the width grows with the horizon
- For an MA(
q) model, the width stops growing afterqsteps, at\sigma\sqrt{1 + \beta_1^2 + \cdots + \beta_q^2}. - For a stationary AR(1), the variance
\sigma^2(1 - \alpha_1^{2k})/(1 - \alpha_1^2)levels off at the series' own variance\sigma^2/(1 - \alpha_1^2). - For a random walk, the variance is
k\sigma^2, and the interval widens without limit.
An ARIMA model fitted to the log of monthly average severity forecasts
8.70for next month, with standard error0.08. What is the 95% prediction interval for the severity?
- On the log scale the interval is
8.70 \pm 1.96(0.08), from8.543to8.857.- Exponentiating the endpoints gives
e^{8.543} = \$5{,}132toe^{8.857} = \$7{,}022.- The interval is not symmetric about the point forecast
e^{8.70} = \$6{,}003.
Prediction interval in regression
In simple linear regression with n observations, write S_{xx} = \sum (x_i - \bar{x})^2 and let s be the residual standard error on n - 2 degrees of freedom. The confidence interval for the mean response E[Y] at x_0 is
\hat{y}_0 \pm t_{0.025,\,n-2}\; s\sqrt{\frac{1}{n} + \frac{(x_0 - \bar{x})^2}{S_{xx}}}
and the 95% prediction interval for a new observation Y at x_0 is
\hat{y}_0 \pm t_{0.025,\,n-2}\; s\sqrt{1 + \frac{1}{n} + \frac{(x_0 - \bar{x})^2}{S_{xx}}}
\hat{y}_0is the fitted value atx_0.
The extra 1 is the variance of the new observation's own error. The confidence interval reflects only the error in estimating the mean, which goes to zero as n grows, so its width approaches zero. The prediction interval does not shrink to zero, because the new observation's error does not depend on n. Both are narrowest at x_0 = \bar{x}, and the prediction interval is always the wider of the two, enclosing about 95% of new observations. With p predictors, the term under the root is 1 + \mathbf{x}_0^T(\mathbf{X}^T\mathbf{X})^{-1}\mathbf{x}_0.
A regression on
n = 12points has\bar = 5,S_ = 40ands = 3, and its fitted value atx_0 = 7is\hat_0 = 20. What are the 95% confidence interval for the mean response and the 95% prediction interval atx_0?
- The
tvalue with 10 degrees of freedom ist_{0.025,\,10} = 2.228.- For the mean,
\sqrt{1/12 + 4/40} = 0.428, so the interval is20 \pm 2.228(3)(0.428) = 20 \pm 2.86.- For a new observation,
\sqrt{1 + 1/12 + 4/40} = 1.088, so the interval is20 \pm 2.228(3)(1.088) = 20 \pm 7.27.
Model uncertainty is left out The usual intervals take the model and its parameters as known, so real outcomes fall outside them more often than the nominal 5%. Check the residuals with a correlogram and a QQ plot before relying on them.