Time Series Forecast
Study guides: Exam MAS-II, Exam ACIA-CAPSTONE
A Time Series Forecast is the expected value of a future value x_{t+k} of a time series, given the series observed up to time t. The k-step forecast is
\hat{x}_{t+k \mid t} = E[x_{t+k} \mid x_t, x_{t-1}, \ldots]
The forecast is built recursively. Each known past value stands for itself, each future value is replaced by its forecast, and each future white noise term is replaced by its mean, 0.
A series follows
x_t = 20 + 0.6x_ + w_t, andx_ = 61. What are the one- and two-step forecasts?
\hat{x}_{51 \mid 50} = 20 + 0.6(61) = 56.6.\hat{x}_{52 \mid 50} = 20 + 0.6(56.6) = 53.96, the forecast ofx_{51}standing in for its unknown value.
Forecast error variance
The forecast error x_{t+k} - \hat{x}_{t+k \mid t} is a sum of the k future white noise terms, weighted, and its variance is
\text{Var}(e_{t+k}) = \sigma^2\sum_{j=0}^{k-1}\psi_j^2
\sigma^2is the white noise variance, estimated by the mean square error of the fitted model.\psi_0 = 1, \psi_1, \psi_2, \ldotsare the weights of the model written as an infinite moving average.
The forecast standard error is the square root of this variance. For a stationary AR(1) with coefficient \alpha_1, \psi_j = \alpha_1^{\,j}. The variance then levels off at the series' own variance \sigma^2/(1 - \alpha_1^2), and the forecast decays to the mean. An MA(q) forecast reaches the mean after q steps.
A fitted AR(1) is
\hat_t = 5 + 0.85x_, with an estimated mean square error of13.645. What is the standard error of the two-step forecast?
- The two-step error variance is
\sigma^2(1 + \alpha_1^2) = 13.645(1 + 0.85^2) = 23.50.- The standard error is
\sqrt{23.50} = 4.85.
Forecasting a random walk
A random walk x_t = x_{t-1} + c_t has increments c_t that are white noise with a mean, estimated by the sample mean \bar{c} and sample standard deviation s_c of the observed increments. Its k-step forecast and its standard error are
\hat{x}_{t+k \mid t} = x_t + k\bar{c}
\text{SE} = s_c\sqrt{k}
The forecast error is the sum of the k actual future increments minus k\bar{c}. The forecast continues the trend of the increments from the last value, and its interval widens without limit.
A random walk's last value is 100, and its six observed increments are
3, 5, -1, 4, 2, 6. What are the three-step forecast and its standard error?
- The increments have mean
\bar{c} = 3.17and standard deviations_c = 2.48.- The forecast is
100 + 3(3.17) = 109.5.- The standard error is
2.48\sqrt{3} = 4.30.
Measuring forecast accuracy
A forecast is assessed on a held-out stretch of the series, not on the fitted data. With m out-of-sample errors e_t = x_t - \hat{x}_t, each the actual observation minus its forecast, and percentage errors p_t = 100\,e_t/x_t, the comparison statistics are:
- Mean error
\text{ME} = \frac{1}{m}\sum e_tand mean percentage error\text{MPE} = \frac{1}{m}\sum p_tmeasure bias. Errors of opposite sign cancel in them. - Mean squared error
\text{MSE} = \frac{1}{m}\sum e_t^2, or its root, and mean absolute error\text{MAE} = \frac{1}{m}\sum |e_t|measure size in the data's units. - Mean absolute percentage error
\text{MAPE} = \frac{1}{m}\sum |p_t|measures size without units, but breaks down when somex_tis zero or near it.
Three held-out values are
50, 40, 60, and their forecasts are48, 44, 57. What are the ME and the MAE?
- The errors are
50 - 48 = 2,40 - 44 = -4and60 - 57 = 3.\text{ME} = (2 - 4 + 3)/3 = 0.33, a small bias because the errors largely cancel.\text{MAE} = (2 + 4 + 3)/3 = 3.
The intervals built from these variances assume the model and its parameters are correct. They carry no parameter or model uncertainty, so they are optimistic in practice. A prediction interval turns the standard error into a range.
Practice questions
- CAS Exam MAS-I Fall 2018, Question 42
- CAS Exam MAS-I Spring 2018, Question 44
- CAS Exam MAS-I Fall 2019, Question 42
- CAS Exam MAS-I Fall 2019, Question 45
- CAS Exam MAS-I Spring 2019, Question 45
- Exam MAS-II Practice Question 23
- SOA Exam SRM Sample Question 3
- SOA Exam SRM Sample Question 4
- SOA Exam SRM Sample Question 46
- SOA Exam SRM Sample Question 55