Formulate an \(\text{AR}(p)\) process in level and backshift-polynomial notation and compute its unconditional mean.
Determine causal stationarity from the roots of the characteristic polynomial \(\phi(z) = 0\) and classify real versus oscillatory \(\text{AR}(2)\) dynamics.
Recognize \(\text{AR}(p)\) correlation signatures using ACF and PACF plots.
Fit, diagnose, and forecast pure autoregressive models in fable with proper Ljung-Box degrees of freedom.
1. The AR(p) Model and Characteristic Polynomial
An autoregressive model of order \(p\), written \(\text{AR}(p)\), expresses the current value \(y_t\) as a linear combination of its \(p\) most recent values plus white noise \(\varepsilon_t \stackrel{\text{iid}}{\sim} (0, \sigma^2)\):
If \(\{y_t\}\) is weakly stationary with constant mean \(\mu = \mathbb{E}[y_t]\), taking expectations of both sides yields \(\mu(1 - \phi_1 - \dots - \phi_p) = c\), so
An \(\text{AR}(p)\) process is causally stationary (meaning \(y_t\) can be written as a convergent sum of current and past shocks \(\varepsilon_t, \varepsilon_{t-1}, \dots\)) if and only if every root \(z \in \mathbb{C}\) of the characteristic equation
lies strictly outside the unit circle: \(|z_j| > 1\) for \(j = 1, \dots, p\). Equivalently, the inverse characteristic roots\(\lambda_j = 1 / z_j\) must all lie strictly inside the unit circle (\(|\lambda_j| < 1\)). For \(\text{AR}(1)\), \(\phi(z) = 1 - \phi_1 z = 0\) has root \(z_1 = 1/\phi_1\), so \(|z_1| > 1\) reduces to \(|\phi_1| < 1\).
2. The AR(2) Stationarity Triangle and Dynamics
For an \(\text{AR}(2)\) process, \(\phi(z) = 1 - \phi_1 z - \phi_2 z^2 = 0\), the condition that both roots satisfy \(|z_1| > 1\) and \(|z_2| > 1\) defines three exact linear inequalities:
These three lines bound a triangle in the \((\phi_1, \phi_2)\) plane with vertices \((-2, -1)\), \((2, -1)\), and \((0, 1)\). Inside this triangle, the quadratic discriminant \(\Delta = \phi_1^2 + 4\phi_2\) determines the qualitative behavior of the autocorrelation function:
When \(\phi_1^2 + 4\phi_2 \ge 0\), the characteristic roots are real, and the ACF decays as a mixture of damped exponentials.
When \(\phi_1^2 + 4\phi_2 < 0\), the roots form a complex conjugate pair, and the ACF exhibits damped sinusoidal oscillations (pseudo-periodic cycles even without deterministic seasonality).
triangle <-tibble(phi1 =c(-2, 2, 0), phi2 =c(-1, -1, 1))parabola <-tibble(phi1 =seq(-2, 2, length.out =300), phi2 =-phi1^2/4)osc_poly <-bind_rows(parabola, tibble(phi1 =c(2, -2), phi2 =c(-1, -1)))ggplot() +geom_polygon(data = triangle, aes(phi1, phi2), fill = ts_pal["teal"], alpha =0.18) +geom_polygon(data = osc_poly, aes(phi1, phi2), fill = ts_pal["orange"], alpha =0.25) +geom_polygon(data = triangle, aes(phi1, phi2), fill =NA, color = ts_pal["navy"], linewidth =0.9) +geom_line(data = parabola, aes(phi1, phi2), color = ts_pal["crimson"], linetype ="dashed", linewidth =0.8) +annotate("point", x =c(0.6, 1.1), y =c(0.2, -0.6), size =3, color = ts_pal["navy"]) +annotate("text", x =0.50, y =0.20, label ="Real roots\n(0.6, 0.2)",hjust =1, size =3.2, fontface ="bold", color = ts_pal["navy"]) +annotate("text", x =1.1, y =-0.78, label ="Complex roots\n(1.1, -0.6)",size =3.2, fontface ="bold", color = ts_pal["navy"]) +annotate("text", x =-0.95, y =-0.66, label ="Oscillatory",size =3.2, fontface ="bold", color = ts_pal["crimson"]) +annotate("text", x =-0.95, y =-0.82,label =TeX(r"($\phi_1^2 + 4\phi_2 < 0$)", output ="character"),parse =TRUE, size =3.2, color = ts_pal["crimson"]) +labs(title ="AR(2) Causal Stationarity Region",subtitle =TeX(r"(Vertices $(-2,-1)$, $(2,-1)$, $(0,1)$; dashed curve $\phi_1^2 + 4\phi_2 = 0$)"),x =TeX(r"($\phi_1$)"), y =TeX(r"($\phi_2$)") ) +coord_cartesian(xlim =c(-2.2, 2.2), ylim =c(-1.15, 1.15))
Figure 1: Exact causal stationarity triangle for AR(2) models with vertices (-2, -1), (2, -1), and (0, 1), partitioned by the parabola phi_1^2 + 4*phi_2 = 0 into real-root (damped exponential) and complex-root (damped oscillatory) regimes.
3. Simulating Real-Root vs. Complex-Root AR(2) Processes
For any stationary \(\text{AR}(p)\) process, the ACF tails off gradually (exponentially or as a damped sine wave), whereas the PACF cuts off sharply after lag \(p\) because \(y_t\) depends directly only on lags \(1, \dots, p\). We simulate both points marked in Figure 1 to observe this signature directly.
set.seed(493)ar2_real <-tibble(t =1:300,y =as.numeric(arima.sim(list(ar =c(0.6, 0.2)), n =300))) |>as_tsibble(index = t)ar2_real |>gg_tsdisplay(y, plot_type ="partial") |>ts_panel(title =TeX(r"(Simulated Real-Root AR(2): $\phi_1 = 0.6,\; \phi_2 = 0.2$)", bold =TRUE),subtitle ="Exponentially decaying ACF and PACF cutting off after lag 2" )
Figure 2: Simulated real-root AR(2) process (phi_1 = 0.6, phi_2 = 0.2): smooth exponential decay in the ACF and a sharp cutoff after lag 2 in the PACF.
set.seed(494)ar2_complex <-tibble(t =1:300,y =as.numeric(arima.sim(list(ar =c(1.1, -0.6)), n =300))) |>as_tsibble(index = t)ar2_complex |>gg_tsdisplay(y, plot_type ="partial") |>ts_panel(title =TeX(r"(Simulated Complex-Root AR(2): $\phi_1 = 1.1,\; \phi_2 = -0.6$)", bold =TRUE),subtitle ="Damped sinusoidal ACF and PACF cutting off after lag 2" )
Figure 3: Simulated complex-root AR(2) process (phi_1 = 1.1, phi_2 = -0.6): damped sinusoidal ACF paired with a PACF that cuts off after lag 2.
Notice that in both figures the PACF drops inside the 95% white-noise bounds after lag 2, while the ACF clearly distinguishes monotonic persistence (real roots) from pseudo-cyclic oscillation (complex roots).
4. Fitting Pure AR(p) Models to U.S. Consumption Growth
We apply pure autoregressive modeling to quarterly percentage changes in U.S. personal consumption expenditure (us_change$Consumption, 1970 Q1 to 2019 Q2). Setting pdq(p, 0, 0) + PDQ(0, 0, 0) enforces a pure non-seasonal \(\text{AR}(p)\) specification.
us_change |>gg_tsdisplay(Consumption, plot_type ="partial") |>ts_panel(title ="U.S. Quarterly Consumption Growth: Series, ACF, and PACF",subtitle ="Quarterly % change (1970 Q1 to 2019 Q2); significant PACF through lag 3" )
Figure 4: Quarterly U.S. consumption growth (1970 Q1 to 2019 Q2) with ACF and PACF showing significant partial autocorrelations through lag 3.
The PACF exhibits spikes at lags 1, 2, and 3 before falling inside the significance bands, pointing toward \(\text{AR}(3)\). Because all candidates below share the same response scale and differencing orders (\(d = 0, D = 0\)), we can compare them directly using AICc and BIC.
Pure AR(p) model comparison on U.S. consumption growth.
.model
sigma2
log_lik
AICc
BIC
AR3
0.33
-170.3
350.9
367.0
AR4
0.33
-169.9
352.1
371.4
AR2
0.35
-175.5
359.2
372.1
AR1
0.37
-180.3
366.8
376.5
\(\text{AR}(3)\) achieves both the lowest AICc (350.9) and lowest BIC (367.0). We inspect its estimated coefficients, verify innovation whiteness with dof = 3 (the number of ARMA parameters), and generate 8-quarter forecasts.
tidy(fit_ar |>select(AR3)) |>select(term, estimate, std.error, p.value) |>fmt_tbl(digits =3, caption ="Estimated parameters of the AR(3) model for Consumption.")
Estimated parameters of the AR(3) model for Consumption.
term
estimate
std.error
p.value
ar1
0.203
0.069
0.004
ar2
0.161
0.070
0.022
ar3
0.225
0.069
0.001
constant
0.305
0.040
0.000
augment(fit_ar |>select(AR3)) |>features(.innov, ljung_box, lag =10, dof =3) |>fmt_tbl(digits =3, caption ="Ljung-Box diagnostic on AR(3) innovation residuals (dof = 3).")
Ljung-Box diagnostic on AR(3) innovation residuals (dof = 3).
.model
lb_stat
lb_pvalue
AR3
6.866
0.443
All three autoregressive coefficients are statistically significant, the Ljung-Box test shows no remaining autocorrelation (\(p = 0.443\)), and the implied stationary mean \(\hat{\mu} = \hat{c}/(1 - \hat{\phi}_1 - \hat{\phi}_2 - \hat{\phi}_3) \approx 0.305 / (1 - 0.589) \approx 0.74\%\) matches the sample average.
fit_ar |>select(AR3) |>forecast(h =8) |>anchor_fc(us_change) |>autoplot(us_change |>filter_index("2005 Q1"~ .), color = ts_pal["navy"]) +geom_hline(yintercept =mean(us_change$Consumption), linetype ="dashed", color = ts_pal["crimson"]) +labs(title ="AR(3) Forecast of U.S. Consumption Growth",subtitle =TeX(r"(Point forecasts revert to the stationary mean $\hat{\mu} \approx 0.74$% (dashed))"),x =NULL, y ="Quarterly % change" )
Figure 5: Eight-quarter AR(3) forecasts for U.S. consumption growth showing rapid mean reversion toward the stationary mean (~0.74%) alongside 80% and 95% prediction intervals.
Practice Exercises
Exercise 1. Determine whether each of the following \(\text{AR}(2)\) processes is causally stationary, and if so, whether its ACF decays exponentially or oscillates:
Check the three \(\text{AR}(2)\) triangle inequalities (\(\phi_2 + \phi_1 < 1\), \(\phi_2 - \phi_1 < 1\), \(|\phi_2| < 1\)) and the characteristic roots of \(\phi(z) = 1 - \phi_1 z - \phi_2 z^2 = 0\):
For \((\phi_1, \phi_2) = (0.8, -0.5)\): \(\phi_2 + \phi_1 = 0.3 < 1\), \(\phi_2 - \phi_1 = -1.3 < 1\), and \(|-0.5| < 1\). Causally stationary. Since \(\phi_1^2 + 4\phi_2 = 0.64 - 2.0 = -1.36 < 0\), the roots are complex conjugates with \(|z| = \sqrt{2} \approx 1.414 > 1\), so the ACF oscillates (damped sinusoid).
For \((\phi_1, \phi_2) = (1.3, -0.4)\): \(\phi_2 + \phi_1 = 0.9 < 1\), \(\phi_2 - \phi_1 = -1.7 < 1\), and \(|-0.4| < 1\). Causally stationary. Since \(\phi_1^2 + 4\phi_2 = 1.69 - 1.60 = 0.09 > 0\), both roots are real (\(z = 1.25\) and \(z = 2.0\), both strictly outside the unit circle), so the ACF decays exponentially.
Exercise 2. Fit pure \(\text{AR}(1)\), \(\text{AR}(2)\), and \(\text{AR}(3)\) models to us_change$Production. Select the best order by AICc and BIC, and check residual autocorrelation with a Ljung-Box test at lag 10.
augment(fit_prod |>select(AR1)) |>features(.innov, ljung_box, lag =10, dof =1) |>fmt_tbl(digits =3)
.model
lb_stat
lb_pvalue
AR1
30.55
0
\(\text{AR}(2)\) edges ahead slightly on AICc (650.6 vs. 651.1), while \(\text{AR}(1)\) is preferred on BIC (660.8 vs. 663.6). However, the \(\text{AR}(1)\) Ljung-Box test at lag 10 (dof = 1) yields \(Q^* = 30.6\) (\(p < 0.001\)), rejecting white noise and indicating that pure low-order \(\text{AR}(p)\) leaves residual structure (motivating moving-average and seasonal terms in subsequent notes).
Key Takeaways
An \(\text{AR}(p)\) process is causally stationary if and only if all roots of \(\phi(z) = 1 - \phi_1 z - \dots - \phi_p z^p = 0\) satisfy \(|z| > 1\) (equivalently, all inverse roots satisfy \(|\lambda| < 1\)).
For \(\text{AR}(2)\), stationarity corresponds to the triangle with vertices \((-2, -1)\), \((2, -1)\), and \((0, 1)\); complex roots (\(\phi_1^2 + 4\phi_2 < 0\)) generate damped sinusoidal oscillations.
Stationary \(\text{AR}(p)\) processes exhibit a gradually decaying ACF and a PACF that cuts off sharply after lag \(p\).
Multi-step forecasts from a stationary \(\text{AR}(p)\) model revert toward the unconditional mean \(\mu = c / \phi(1)\), and Ljung-Box checks on .innov must set dof = p.