Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ARMA Models

Let’s recall that we can represent an Autoregressive Moving Average (ARMA) model as:

xt=j=1pϕjxtj+j=0qθjwtjx_t = \sum_{j=1}^p \phi_j x_{t-j} + \sum_{j=0}^q \theta_j w_{t-j}

where wtw_t is a white noise sequence. The coefficients ϕ1,,ϕj,θ0,,θq\phi_1, \dots, \phi_j, \theta_0, \dots, \theta_q are fixed (nonrandom), ϕp,θq0\phi_p,\theta_q\neq 0, and we set θ0=1\theta_0=1.

We talked last time about:

Because causality implies stationarity, this renders the ARMA(p,q) process stationary, as long as the roots of ϕ\phi and θ\theta lie outside the unit circle.

Autocorrelation and Partial Autocorrelation

We previously discussed that the autocovariance for an AR(1) model decays away from h=0h=0. On the other hand, the autocovariance for an MA(q) model is zero when h>q|h| > q.

Let’s look at an example of the ACF for an AR(2) model with ϕ1=1.5\phi_1=1.5 and ϕ2=0.75\phi_2=-0.75

Example of the ACF for an AR(2) model with \phi_1=1.5 and \phi_2=-0.75

The ACF tells us about the total correlation between xtx_t and xthx_{t-h}, but includes indirect information through intermediate lags. For example, in an AR(1) process, xtx_t and xt2x_{t-2} are correlated, but only because both are correlated with xt1x_{t-1}. The ACF at lag 2 is nonzero even though there is no direct dependence for lag 2! So what do we do?

We can use the partial autocorrelation function (PACF) here. This is written as ϕhh\phi_hh, which represents the correlation between xtx_t and xthx_{t-h} after regressing out the effects of xt1,xt2,,xth+1x_{t-1}, x_{t-2}, \dots, x_{t-h+1}. This is helpful because it tells you whether lag hh provides additional predictive information beyond lags 1 through h1h-1.

For random variables X,YX, Y and Z={Z1,,Zk}Z=\{Z_1,\dots, Z_k\}, the partial correlation between XX and YY given ZZ is obtained by regressing XX on ZZ to obtain X^\hat{X}, regressing YY on ZZ to obtain Y^\hat{Y}, and then calculating:

ρXYZ=corr(XX^,YY^)\rho_{XY|Z} = \text{corr}(X-\hat{X}, Y-\hat{Y})

Section 3.3.2 in your book provides more information on deriving this function.

Let’s look at how that helps for the AR(2) model:

Example of the ACF and PACF for an AR(2) model with \phi_1=1.5 and \phi_2=-0.75

The following table shows how this information can be used in practice when determining if a time series has AR, MA, or ARMA components:

FunctionAR(p)MA(q)ARMA(p,q)
ACFtails offcuts off after lag qtails off
PACFcuts off after lag qtails offtails off

Examples on real data

Now let’s turn to the accompanying notebook for this lecture to see these models in action.