Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ARIMA(p , d , q )
An ARMA model is not suitable for tting a times with a trend: Remember a time series showing a trend is not stationary in mean and ARMA models are only suited for time series stationary in mean and variance. Differencing is an operation that can be applied to a time series to remove a trend. If after differencing the time series looks stationary in mean and variance, then an ARMA(p,q) model can be used. Section 14.1 presents differencing (of order d ) and section 14.2 extends the ARMA(p,q) models to the ARIMA(p,d,q) models.
Visualisation. Figures 14.1, 14.2 and 14.3 shows the dowjones time series before and after differencing with d = 1 and d = 2.
48
dowjones
110 0
115
120
20
40
60
80
1.0
0.8
0.6
0.4
0.2
PACF 5 10 Lag 15
ACF
0.2
0.2
0.2
0.4
0.6
0.8
1.0
10 Lag
15
diff(dowjones, differences = 1)
1.5 0.5 0 0.0 0.5 1.0
20
40
60
80
0.4
0.2
0.0
PACF 5 10 Lag 15
ACF
0.2
0.2
0.0
0.2
0.4
10 Lag
15
Example: Random Walk The Random walk is an ARIMA(0,1,0): (1 B )1 y t = t or y t = y t 1 + t Exercises 49 Rozenn Dahyot 2011
diff(dowjones, differences = 2)
1.0 1.0 0 0.0 0.5
20
40
60
80
0.1
PACF 5 10 Lag 15
ACF
0.3
0.3
0.1
10 Lag
15
(1) In the table overpage are some data to which we wish to t the ARIMA(1,1,1) model (1 0.4 B )(1 B ) y t = 0.1 + (1 0.9 B ) t . If we let x t = (1 B ) y t be the differenced series, we can t the simpler ARMA(1,1) model: (1 0.4 B ) x t = 0.1 + (1 0.9 B ) t . t . With these tted We can re-write this as x t = 0.1 + 0.4 x t 1 0.9 t 1 + t , and so create tted values x t = x t + y t 1 . Use these facts to ll in the table. values we can back transform to get tted values y (2) Here is the ARIMA(1,1,1) model: (1 1 B ) (1 B ) y t = c + (1 1 B )t . Expand this equation and apply the backshift operators to get an equation for y t in terms of y t 1 , y t 2 , t and t 1 .
Time t
Data yt
Differenced data x t = y t y t 1
Error t t = x t x
Fitted values t = x t + y t 1 y
9.5
13.7
4.2
4.2
8.7
-5.0
16.1
7.4
15.3
-0.8
12.2
-3.1
Table 14.1: ARIMA(1,1,1) (1 0.4B )(1 B ) y t = 0.1 + (1 0.9B )t . (3) If there is non-stationarity, such as a trend (were ignoring seasonal behaviour for the moment!), difference the data. Practically, at most two differences need to be taken to reduce a series to stationarity. Verify stationarity by plotting the differenced series and looking at the ACF and PACF. (4) Once stationarity is obtained, look at the ACF and PACF to see if there is any remaining pattern. Check against the theoretical behaviour of the MA and AR models to see if they t. This will give you an ARIMA model with either no MA or no AR component i.e. ARIMA(0,d ,q ) or ARIMA(p ,d ,0). (5) If there is no clear MA or AR model, an ARMA model will have to be considered. These can in general not be guessed from the ACF and PACF, other methods are needed, based on the ideas of minimising Information Criterion (AIC or BIC).
51