Autoregressive Model
Study guides: Exam MAS-II, Exam ACIA-CAPSTONE
An Autoregressive Model of order p, AR(p), expresses the value x_t of a time series as a linear combination of its previous p values plus a white noise term w_t. The AR(p) model is
x_t = \alpha_1 x_{t-1} + \alpha_2 x_{t-2} + \cdots + \alpha_p x_{t-p} + w_t
\alpha_1, \ldots, \alpha_pare the model's coefficients.w_thas mean 0 and variance\sigma^2.
The order is the largest lag with a nonzero coefficient, so a model with lags 1 and 2 is AR(2). An AR model is the "AR" in ARIMA. Its ACF tails off, and its PACF cuts off after lag p.
A series follows
x_t = 0.6x_ - 0.2x_ + w_t, withx_ = 5andx_ = 8. What is the one-step forecast ofx_?
- The future noise term
w_{11}is forecast as its mean, 0.\hat{x}_{11} = 0.6(8) - 0.2(5) = 4.8 - 1.0 = 3.8.
Model with a constant
A series with a nonzero mean is modelled with a constant \alpha_0:
x_t = \alpha_0 + \alpha_1 x_{t-1} + \cdots + \alpha_p x_{t-p} + w_t
If the model is stationary, its mean is
\mu = \frac{\alpha_0}{1 - \alpha_1 - \cdots - \alpha_p}
The one-step forecast is \alpha_0 plus the coefficients times the latest values, and multi-step forecasts converge toward \mu. A stationary AR model is therefore mean reverting.
A stationary series follows
x_t = 12 + 0.5x_ + 0.3x_ + w_t. What is its mean?
\mu = 12/(1 - 0.5 - 0.3) = 12/0.2 = 60.
Stationarity of an AR model
The characteristic equation of an AR(p) model, in the backward shift operator \mathbf{B}, is
1 - \alpha_1\mathbf{B} - \alpha_2\mathbf{B}^2 - \cdots - \alpha_p\mathbf{B}^p = 0
The model is stationary if and only if every root of this equation lies outside the unit circle, that is, has absolute value greater than 1. A root on or inside the unit circle makes the series non-stationary. The constant \alpha_0 plays no part. A pure AR model has no moving average terms, so it is always invertible.
Are
x_t = 0.5x_ + 0.3x_ + w_tandx_t = 0.5x_ + 0.5x_ + w_tstationary?
- The first model's equation is
1 - 0.5\mathbf{B} - 0.3\mathbf{B}^2 = 0, with roots1.17and-2.84.- Both roots are outside the unit circle, so the first model is stationary.
- The second model's equation is
1 - 0.5\mathbf{B} - 0.5\mathbf{B}^2 = 0, and\mathbf{B} = 1solves it, since1 - 0.5 - 0.5 = 0.- A root on the unit circle makes the second model non-stationary.
The AR(1) model
The AR(1) model x_t = \alpha_1 x_{t-1} + w_t has the characteristic equation 1 - \alpha_1\mathbf{B} = 0, with root \mathbf{B} = 1/\alpha_1. It is stationary if and only if |\alpha_1| < 1. With \alpha_1 = 1 it is a random walk. A stationary AR(1) has autocorrelation and variance
\rho_k = \alpha_1^{\,k}
\text{Var}(x_t) = \frac{\sigma^2}{1 - \alpha_1^2}
A negative \alpha_1 makes consecutive values negatively correlated, so the series alternates in sign and looks jagged. A positive \alpha_1 gives a smoother series. As |\alpha_1| approaches 1 the variance grows, the swings are larger and deviations from the mean persist longer. A small |\alpha_1| gives a series close to white noise. The one-step forecast of a zero-mean AR(1) is \hat{x}_{t+1} = \alpha_1 x_t, which depends only on the latest value.
An annual loss ratio follows
x_t = 0.24 + 0.70x_ + w_twith\sigma = 0.05, andx_ = 0.92. What are its mean, its variance and the forecasts ofx_andx_?
- The mean is
\mu = 0.24/(1 - 0.70) = 0.80.- The variance is
0.05^2/(1 - 0.70^2) = 0.0025/0.51 = 0.0049.\hat{x}_{21} = 0.24 + 0.70(0.92) = 0.884.\hat{x}_{22} = 0.24 + 0.70(0.884) = 0.859, a step closer to the mean of 0.80.
Fitting an AR(1) by conditional least squares
Written as x_t = \alpha_0 + \alpha_1 x_{t-1} + w_t, an AR(1) fitted to n observations by approximate conditional least squares has the estimates
\hat{\alpha}_1 = r_1
\hat{\alpha}_0 = \bar{x}(1 - \hat{\alpha}_1)
r_1is the lag-1 sample autocorrelation of the series.\bar{x}is the sample mean of allnobservations.
The fitted value at time t is \hat{\alpha}_0 + \hat{\alpha}_1 x_{t-1}, and the residual e_t is x_t minus it. The first observation has no predecessor, so there are n - 1 residuals. The variance \sigma^2 is estimated by their mean square error, centred on their own average \bar{e}, with divisor n - 3:
s^2 = \frac{1}{n - 3}\sum_{t=2}^{n}(e_t - \bar{e})^2
An AR(1) is fitted to the series
10, 11, 13, 12, 14by approximate conditional least squares. What are\hat_1,\hat_0ands^2?
- The mean is
\bar{x} = 12, and the lag-1 sample autocorrelation isr_1 = 1/10 = 0.1, so\hat{\alpha}_1 = 0.1.\hat{\alpha}_0 = 12(1 - 0.1) = 10.8.- The fitted values for
t = 2, \ldots, 5are11.8, 11.9, 12.1, 12.0, so the residuals are-0.8, 1.1, -0.1, 2.0, with average\bar{e} = 0.55.- Their squared deviations from
0.55sum to4.65, sos^2 = 4.65/(5 - 3) = 2.325.
Practice questions
- CAS Exam 7 Spring 2016, Question 28
- CAS Exam MAS-I Fall 2018, Question 43
- CAS Exam MAS-I Spring 2018, Question 44
- CAS Exam MAS-I Fall 2019, Question 42
- CAS Exam MAS-I Fall 2019, Question 43
- CAS Exam MAS-I Fall 2019, Question 45
- CAS Exam MAS-I Spring 2019, Question 43
- CAS Exam MAS-I Spring 2019, Question 45
- CAS Exam MAS-II Fall 2018, Question 7
- Exam MAS-II Practice Question 22
- SOA Exam SRM Sample Question 22
- SOA Exam SRM Sample Question 58
- SOA Exam SRM Sample Question 64
- Exam SRM Practice Question 5