Autoregressive Processes¶
\(\smash{AR(1)}\) Process¶
Given white noise \(\smash{\{\varepsilon_t\}}\), consider the process
where \(\smash{c}\) and \(\smash{\phi}\) are constants.
- This is a first-order autoregressive or \(\smash{AR(1)}\) process.
- We can rewrite in terms of the lag operator:
\(\smash{AR(1)}\) as \(\smash{MA(\infty)}\)¶
From our discussion of lag operators, we know that if \(\smash{|\phi| < 1}\)
where
\(\smash{AR(1)}\) as \(\smash{MA(\infty)}\)¶
Restating, when \(\smash{|\phi| < 1}\)
- This is an \(\smash{MA(\infty)}\) with \(\smash{\mu = c/(1-\phi)}\) and \(\smash{\theta_i = \phi^i}\).
- Note that \(\smash{|\phi| < 1}\) implies
which means that \(\smash{Y_t}\) is weakly stationary.
Expectation of \(\smash{AR(1)}\)¶
Assume \(\smash{Y_t}\) is weakly stationary: \(\smash{|\phi| < 1}\).
A Useful Property¶
If \(\smash{Y_t}\) is weakly stationary,
- That is, for \(\smash{j \geq 1}\), \(\smash{Y_{t-j}}\) is a function of lagged values of \(\smash{\varepsilon_t}\) and not \(\smash{\varepsilon_t}\) itself.
- As a result, for \(\smash{j \geq 1}\)
Variance of \(\smash{AR(1)}\)¶
Given that \(\smash{\mu = c/(1-\phi)}\) for weakly stationary \(\smash{Y_t}\):
Squaring both sides and taking expectations:
Autocovariances of \(\smash{AR(1)}\)¶
For \(\smash{j \geq 1}\),
Autocorrelations of \(\smash{AR(1)}\)¶
The autocorrelations of an \(\smash{AR(1)}\) are
- Since we assumed \(\smash{|\phi| < 1 }\), the autocorrelations decay exponentially as \(\smash{j}\) increases.
- Note that if \(\smash{\phi \in (-1,0)}\), the autocorrelations decay in an oscillatory fashion.
Examples of \(\smash{AR(1)}\) Processes¶
###########################################################
# Simulate AR(1) processes for different values of phi
###########################################################
# Number of simulated points
nSim = 1000000;
# Values of phi to consider
phi = c(-0.9, 0, 0.9, 0.99);
# Draw one set of shocks and use for each AR(1)
eps = rnorm(nSim, 0, 1);
# Matrix which stores each AR(1) in columns
y = matrix(0, nrow=nSim, ncol=length(phi));
# Each process is intialized at first shock
y[1,] = eps[1];
# Loop over each value of phi
for(j in 1:length(phi)){
# Loop through the series, simulating the AR(1) values
for(i in 2:nSim){
y[i,j] = phi[j]*y[i-1,j]+eps[i]
}
}
Examples of \(\smash{AR(1)}\) Processes¶
###########################################################
# Plot the AR(1) realizations for each phi
###########################################################
# Only plot a subset of the whole simulation
plotInd = 1:1000
# Specify a plot grid
png(file="ar1ExampleSeries.png", height=600, width=1000)
par(mfrow=c(2,2))
# Loop over each value of phi
for(j in 1:length(phi)){
plot(plotInd,y[plotInd,j], type='l', xlab='Time Index',
ylab="Y", main=paste(expression(phi), " = ", phi[j], sep=""))
abline(h=0)
}
graphics.off()
Examples of \(\smash{AR(1)}\) Processes¶

\(\smash{AR(1)}\) Autocorrelations¶
###########################################################
# Plot the sample ACFs for each AR(1) simulation
# For large nSim, sample ACFs are close to true ACFs
###########################################################
# Specify a plot grid
png(file="ar1ExampleACF.png", height=600, width=1000)
par(mfrow=c(2,2))
# Loop over each value of phi
for(j in 1:length(phi)){
acf(y[,j], main=paste(expression(phi), " = ", phi[j], sep=""))
}
graphics.off()
\(\smash{AR(1)}\) Autocorrelations¶

\(\smash{AR(p)}\) Process¶
Given white noise \(\smash{\{\varepsilon_t\}}\), consider the process
where \(\smash{c}\) and \(\smash{\{\phi\}_{i=1}^p}\) are constants.
- This is a \(\smash{p}\) th-order autoregressive or \(\smash{AR(p)}\) process.
- We can rewrite in terms of the lag operator:
where
\(\smash{AR(p)}\) as \(\smash{MA(\infty)}\)¶
From our discussion of lag operators,
if the roots of \(\smash{\phi(L)}\) all lie outside the unit circle.
- In this case, \(\smash{\phi(L) = (1-\lambda_1 L)(1-\lambda_2 L) \cdots (1-\lambda_pL).}\)
If the roots, \(\smash{\frac{1}{|\lambda_i|} > 1}\), \(\smash{\forall i}\) then \(\smash{|\lambda_i| < 1}\),
\(\smash{\forall i}\) and
\(\smash{AR(p)}\) as \(\smash{MA(\infty)}\)¶
For \(\smash{|\lambda_i| < 1}\), \(\smash{\forall i}\)
- \(\smash{Y_t}\) is an \(\smash{MA(\infty)}\) with \(\smash{\mu = \phi(L)^{-1} c}\) and \(\smash{\theta(L) = \phi(L)^{-1}}\).
- It can be shown that \(\smash{\sum_{i=1}^{\infty} |\theta_i| < \infty}\).
- As a result, \(\smash{Y_t}\) is weakly stationary.
Vector Autoregressive Process¶
We can rewrite the \(\smash{AR(p)}\) as
where
and \(\smash{{\bf c} = (c,c,\ldots,c)'_{1 \times p}}\).
Vector Autoregressive Process¶
It turns out that the values \(\smash{\{\lambda_i\}_{i=1}^p}\) are the \(\smash{p}\) eigenvalues of \(\smash{\Phi}\).
- So the eigenvalues of \(\smash{\Phi}\) are the inverses of the roots of the lag polynomial \(\smash{\phi(L)}\).
- Hence, \(\smash{\phi(L)^{-1}}\) exists if all \(\smash{p}\) roots of \(\smash{\phi(L)}\) lie outside the unit circle or all \(\smash{p}\) eigenvalues of \(\smash{\Phi}\) lie inside the unit circle.
- These conditions ensure weak stationarity of the \(\smash{AR(p)}\) process.
Expectation of \(\smash{AR(p)}\)¶
Assume \(\smash{Y_t}\) is weakly stationary: the roots of \(\smash{\phi(L)}\) lie outside the unit circle.
Autocovariances of \(\smash{AR(p)}\)¶
Given that \(\smash{\mu = c/(1-\phi_1 - \ldots - \phi_p)}\) for weakly stationary \(\smash{Y_t}\):
Thus,
Autocovariances of \(\smash{AR(p)}\)¶
For \(\smash{j = 0, 1, \ldots, p}\), the equations above are a system of \(\smash{p+1}\) equations with \(\smash{p+1}\) unknowns: \(\smash{\{\gamma_j\}_{j=0}^p}\).
- \(\smash{\{\gamma_j\}_{j=0}^p}\) can be solved for as functions of \(\smash{\{\phi_j\}_{j=1}^p}\) and \(\smash{\sigma^2}\).
It can be shown that \(\smash{\{\gamma_j\}_{j=0}^p}\) are the first \(\smash{p}\) elements of the first column of \(\smash{\sigma^2 [I_{p^2} - \Phi \otimes \Phi]^{-1}}\), where
\(\smash{\otimes}\) denotes the Kronecker product.
- \(\smash{\{\gamma_j\}_{j=p+1}^{\infty}}\) can then be determined using prior values of \(\smash{\gamma_j}\) and \(\smash{\{\phi_j\}_{j=1}^p}\).
Autocorrelations of \(\smash{AR(p)}\)¶
Dividing the autocovariances by \(\smash{\gamma_0}\),