3.2.1 Definition
The AR(p) process is the generalization of the AR(1) that uses \(p\) lags of \(y\) instead of one:
\[y_t = \alpha + \phi_1 y_{t-1} + \phi_2 y_{t-2} + \ldots + \phi_p y_{t-p} + \epsilon_t, \qquad \epsilon_t \sim \text{WN}(0, \sigma^2)\]
In summation form:
\[y_t = \alpha + \sum_{j=1}^{p} \phi_j y_{t-j} + \epsilon_t\]
And in the lag-operator notation from Module 1, using the course convention \(\Phi(L) = 1 - \phi_1 L - \phi_2 L^2 - \ldots - \phi_p L^p\):
\[\Phi(L) y_t = \alpha + \epsilon_t\]
The minus signs in \(\Phi(L)\) are not cosmetic. They come from the same move we made for the AR(1) in Module 1: subtract the AR terms from both sides to collect \(y_t\) on the left.
\[y_t - \phi_1 y_{t-1} - \phi_2 y_{t-2} - \ldots - \phi_p y_{t-p} = \alpha + \epsilon_t\]
\[(1 - \phi_1 L - \phi_2 L^2 - \ldots - \phi_p L^p) y_t = \alpha + \epsilon_t\]
The minuses come for free the moment you move the \(\phi_j y_{t-j}\) terms across the equals sign. The reference for all of this is notation_dictionary.md, which is the final word on sign conventions for the course. Other textbooks differ — some write \(\Phi(L) = 1 + \sum \phi_j L^j\) and then the \(\phi_j\) are the negatives of ours. When you read outside this course, always check which convention the author is using.
We use \(\epsilon_t\) throughout — the DGP innovation — and reserve \(e_t\) for residuals from an estimated model. That distinction, introduced in Module 1 and enforced in Module 2, matters here too.
3.2.2 Stationarity Condition
Statement. A stationary AR(p) exists if and only if every root of the lag polynomial \(\Phi(L) = 0\) lies outside the unit circle in the complex plane.
For the AR(1), this reduces to something you already know. \(\Phi(L) = 1 - \phi_1 L\), so the single root is \(L^* = 1/\phi_1\). “Outside the unit circle” means \(|L^*| > 1\), which is the same as \(|\phi_1| < 1\) — the AR(1) stationarity condition from Module 1.
For \(p > 1\), the polynomial has \(p\) roots and we need all of them outside the unit circle. One warning: the condition \(|\phi_j| < 1\) applied to the individual coefficients is not the right generalization. You can have an AR(2) whose coefficients are both small in absolute value and yet whose lag polynomial has a root inside the unit circle, and vice versa. The condition is on the roots, not the coefficients.
A note on conventions, because this is a place where textbooks disagree and it confuses students. Some books — Hamilton, notably — state the condition as we have: “all roots of \(\Phi(L) = 0\) outside the unit circle.” Other books — Enders among them, along with the F2024 slides for this course — write the characteristic equation
\[r^p - \phi_1 r^{p-1} - \phi_2 r^{p-2} - \ldots - \phi_p = 0\]
and require all roots \(\lambda_1, \ldots, \lambda_p\) to lie inside the unit circle. The two conditions are identical — they are related by the substitution \(r = 1/L\), so a root of \(\Phi(L)\) outside the unit circle corresponds to a characteristic root inside. We will use the characteristic-equation form for the AR(2) worked examples below because the arithmetic is cleaner, and we will state answers in the “modulus less than one” language that both conventions agree on.
3.2.3 The AR(2) Worked Examples
For an AR(2),
\[y_t = \phi_1 y_{t-1} + \phi_2 y_{t-2} + \epsilon_t, \qquad \Phi(L) = 1 - \phi_1 L - \phi_2 L^2\]
the characteristic equation is
\[r^2 - \phi_1 r - \phi_2 = 0\]
and the quadratic formula gives
\[\lambda_{1,2} = \frac{\phi_1 \pm \sqrt{\phi_1^2 + 4 \phi_2}}{2}.\]
The sign of the discriminant \(\phi_1^2 + 4\phi_2\) tells us whether the roots are real or complex. Stationarity requires \(|\lambda_1| < 1\) and \(|\lambda_2| < 1\) — both characteristic roots inside the unit circle.
We will work three examples by hand. These are the F2024 examples, and the arithmetic matters — this is one of the two places in the module where we do not just state a result. Work through it with a calculator or an R console as you read. (Examples 2 and 3 use \(z_t\) and \(v_t\) purely as fresh series labels so the three processes do not collide on the page — they play exactly the role \(y_t\) plays everywhere else.)
Example 1 — stationary, two real roots.
\[y_t = 0.5 y_{t-1} + 0.3 y_{t-2} + \epsilon_t\]
Here \(\phi_1 = 0.5\) and \(\phi_2 = 0.3\). The discriminant is
\[\phi_1^2 + 4\phi_2 = 0.25 + 4(0.3) = 0.25 + 1.2 = 1.45 > 0\]
so the roots are real. Applying the quadratic formula,
\[\lambda_{1,2} = \frac{0.5 \pm \sqrt{1.45}}{2} = \frac{0.5 \pm 1.2042}{2}\]
\[\lambda_1 = \frac{0.5 + 1.2042}{2} \approx 0.8521, \qquad \lambda_2 = \frac{0.5 - 1.2042}{2} \approx -0.3521.\]
Both have modulus less than 1, so the process is stationary. The ACF will decay as a mixture of \(0.8521^k\) and \((-0.3521)^k\) — smooth decay dominated by the larger root, with a small alternating component from the negative root.
Example 2 — non-stationary, one real root outside.
\[z_t = 0.8 z_{t-1} + 0.3 z_{t-2} + \epsilon_t\]
Now \(\phi_1 = 0.8\) and \(\phi_2 = 0.3\). The discriminant is
\[\phi_1^2 + 4\phi_2 = 0.64 + 4(0.3) = 0.64 + 1.2 = 1.84 > 0\]
so again the roots are real. The quadratic formula gives
\[\lambda_{1,2} = \frac{0.8 \pm \sqrt{1.84}}{2} = \frac{0.8 \pm 1.3565}{2}\]
\[\lambda_1 \approx \frac{0.8 + 1.3565}{2} \approx 1.0782, \qquad \lambda_2 \approx \frac{0.8 - 1.3565}{2} \approx -0.2782.\]
The root \(\lambda_1 \approx 1.078\) is outside the unit circle (in the “characteristic root inside unit circle” language, it is on the wrong side). The process is non-stationary. If you simulate it, you will see the series drift in a way that looks a lot like the random walks from Module 1, because it has a characteristic root only barely larger than one.
Notice how close this example is to the stationary one. The only change was \(\phi_1 = 0.5 \to 0.8\); the second coefficient stayed the same. This is exactly the warning from §3.2.2: you cannot read stationarity off the individual coefficients. \(\phi_1 = 0.8\) and \(\phi_2 = 0.3\) are both less than 1 in absolute value, and yet the process is non-stationary. The roots of the joint polynomial are what matter.
Example 3 — stationary, complex roots (the discriminant moment).
\[v_t = 0.6 v_{t-1} - 0.5 v_{t-2} + \epsilon_t\]
Here \(\phi_1 = 0.6\) and \(\phi_2 = -0.5\). The discriminant is
\[\phi_1^2 + 4\phi_2 = 0.36 + 4(-0.5) = 0.36 - 2 = -1.64 < 0\]
negative. This is the discriminant moment. A negative discriminant means the characteristic roots are a pair of complex conjugates, and a stationary process with complex characteristic roots has an ACF that oscillates — a damped sine wave instead of smooth geometric decay.
Plugging into the quadratic formula,
\[\lambda_{1,2} = \frac{0.6 \pm \sqrt{-1.64}}{2} = \frac{0.6 \pm i \sqrt{1.64}}{2} \approx 0.3 \pm 0.6403 i.\]
The roots are \(\lambda_1 = 0.3 + 0.6403 i\) and \(\lambda_2 = 0.3 - 0.6403 i\). For a complex number \(a + bi\), “inside the unit circle” means the modulus \(\sqrt{a^2 + b^2}\) is less than one. Here,
\[|\lambda| = \sqrt{0.3^2 + 0.6403^2} = \sqrt{0.09 + 0.4100} = \sqrt{0.5000} \approx 0.7071.\]
Both roots have modulus \(\approx 0.707\), safely inside the unit circle, so the process is stationary. But because the roots are complex, the dynamics are qualitatively different from Example 1:
- Example 1 (real roots) \(\Rightarrow\) ACF decays smoothly, roughly like \(0.85^k\).
- Example 3 (complex roots) \(\Rightarrow\) ACF decays as a damped sinusoid, crossing zero repeatedly before it finally dies out.
This is the AR(2) version of “fingerprinting.” We will see it for real in the simulation gallery in §3.5.
The discriminant as a one-glance classifier. For AR(2), the discriminant is
\[\phi_1^2 + 4 \phi_2.\]
If it is positive, the roots are real and the ACF decays smoothly (monotonically or with a single sign pattern depending on the root signs). If it is negative, the roots are a complex-conjugate pair and the ACF is a damped sine wave. Stationarity is a separate question answered by the modulus of the roots, not the sign of the discriminant. Example 3 has a negative discriminant and is stationary — complex roots are perfectly fine, they just produce oscillatory dynamics.