Skip to main content

Note 13: Backshift Algebra & Multiplicative SARIMA Equations

Module 3: ARIMA & SARIMA Models

Learning Objectives

After completing this note, you will be able to:

  • Manipulate the backshift operator \(B\) to express non-seasonal and seasonal differences concisely.
  • Write and expand the general multiplicative \(\text{SARIMA}(p, d, q)(P, D, Q)_m\) equation, including all multiplicative cross-terms.
  • Distinguish how the constant term \(c\) acts as an intercept (\(d + D = 0\)), a deterministic linear drift (\(d + D = 1\)), or a polynomial trend (\(d + D \ge 2\)).
  • Match algebraic backshift equations to fable::ARIMA() parameter estimates and sign conventions.

1. Backshift Operator Rules

The backshift (lag) operator \(B\) shifts a time series backward by one period: \(B y_t = y_{t-1}\). Applying \(B\) repeatedly satisfies ordinary polynomial algebra:

  • Powers of \(B\): \(B^k y_t = y_{t-k}\) and \(B^j (B^k y_t) = B^{j+k} y_t\), while \(B c = c\) for any constant \(c\).
  • First difference: \(\nabla y_t = (1 - B) y_t = y_t - y_{t-1}\).
  • Second difference: \(\nabla^2 y_t = (1 - B)^2 y_t = (1 - 2B + B^2) y_t = y_t - 2 y_{t-1} + y_{t-2}\). Notice that \((1 - B)^2 \neq 1 - B^2\).
  • Seasonal difference (period \(m\)): \(\nabla_m y_t = (1 - B^m) y_t = y_t - y_{t-m}\).
  • Combined regular and seasonal difference:

\[ \nabla \nabla_m y_t = (1 - B)(1 - B^m) y_t = (1 - B - B^m + B^{m+1}) y_t = y_t - y_{t-1} - y_{t-m} + y_{t-m-1}. \]

This algebraic shorthand lets us build arbitrarily rich non-stationary and seasonal models simply by multiplying polynomials in \(B\).

2. The General Multiplicative SARIMA Model

A multiplicative seasonal ARIMA model, denoted \(\text{SARIMA}(p, d, q)(P, D, Q)_m\), couples a non-seasonal \(\text{ARIMA}(p, d, q)\) structure with a seasonal \(\text{ARIMA}(P, D, Q)_m\) structure at period \(m\) (such as \(m = 4\) for quarterly or \(m = 12\) for monthly data):

\[ \phi(B)\,\Phi(B^m)\,(1 - B)^d (1 - B^m)^D y_t = c + \theta(B)\,\Theta(B^m)\,\varepsilon_t, \]

where the four lag polynomials follow the exact sign conventions used by fable::ARIMA() and stats::arima():

\[ \begin{aligned} \phi(B) &= 1 - \phi_1 B - \dots - \phi_p B^p, & \Phi(B^m) &= 1 - \Phi_1 B^m - \dots - \Phi_P B^{Pm}, \\ \theta(B) &= 1 + \theta_1 B + \dots + \theta_q B^q, & \Theta(B^m) &= 1 + \Theta_1 B^m + \dots + \Theta_Q B^{Qm}. \end{aligned} \]

Watch the signs carefully: AR terms carry minus signs inside \(\phi(B)\) and \(\Phi(B^m)\) so they move to the right-hand side with plus signs, whereas MA terms carry plus signs inside \(\theta(B)\) and \(\Theta(B^m)\).

Worked Algebraic Expansions

Example A: \(\text{ARIMA}(1, 1, 1)\) with constant \(c\).

\[ (1 - \phi_1 B)(1 - B) y_t = c + (1 + \theta_1 B)\varepsilon_t. \]

Expanding \((1 - \phi_1 B)(1 - B) = 1 - (1 + \phi_1)B + \phi_1 B^2\) and solving for \(y_t\) gives:

\[ y_t = c + (1 + \phi_1) y_{t-1} - \phi_1 y_{t-2} + \varepsilon_t + \theta_1 \varepsilon_{t-1}. \]

Example B: Multiplicative \(\text{SARIMA}(1, 0, 1)(0, 1, 1)_4\) (quarterly) with constant \(c\).

\[ (1 - \phi_1 B)(1 - B^4) y_t = c + (1 + \theta_1 B)(1 + \Theta_1 B^4)\varepsilon_t. \]

Multiplying out both sides produces cross-terms at lag \(1 + 4 = 5\) on both the AR and MA sides:

\[ (1 - \phi_1 B - B^4 + \phi_1 B^5) y_t = c + (1 + \theta_1 B + \Theta_1 B^4 + \theta_1 \Theta_1 B^5)\varepsilon_t, \]

so in level form:

\[ y_t = c + \phi_1 y_{t-1} + y_{t-4} - \phi_1 y_{t-5} + \varepsilon_t + \theta_1 \varepsilon_{t-1} + \Theta_1 \varepsilon_{t-4} + \theta_1 \Theta_1 \varepsilon_{t-5}. \]

Notice that the coefficient on \(\varepsilon_{t-5}\) is the product \(\theta_1 \Theta_1\), not zero. Multiplicative SARIMA captures seasonal-by-short-run interaction without estimating an extra free parameter.

Example C: The Airline Model, \(\text{SARIMA}(0, 1, 1)(0, 1, 1)_{12}\) (\(c = 0\)).

\[ (1 - B)(1 - B^{12}) y_t = (1 + \theta_1 B)(1 + \Theta_1 B^{12})\varepsilon_t. \]

Expanding both sides yields the famous Box-Jenkins Airline equation, with its characteristic lag-13 cross-terms:

\[ y_t = y_{t-1} + y_{t-12} - y_{t-13} + \varepsilon_t + \theta_1 \varepsilon_{t-1} + \Theta_1 \varepsilon_{t-12} + \theta_1 \Theta_1 \varepsilon_{t-13}. \]

3. Intercept vs. Drift: The Role of the Constant \(c\)

The meaning of \(c\) in \(\phi(B)\Phi(B^m)(1 - B)^d(1 - B^m)^D y_t = c + \theta(B)\Theta(B^m)\varepsilon_t\) changes fundamentally with the total differencing order \(d + D\):

Table 1: Interpretation of the constant \(c\) by total differencing order \(d + D\).
Total Differencing Role of Constant \(c\) Long-Run Forecast Path Default in fable::ARIMA()
\(d + D = 0\) Sets stationary mean \(\mu = \dfrac{c}{\phi(1)\Phi(1)}\) Flat mean reversion to \(\mu\) Included (1) by default
\(d + D = 1\) Generates a linear drift with slope \(\delta = \dfrac{c}{\phi(1)\Phi(1)}\) per period (\(d=1\)) or per season (\(D=1\)) Linear trend Tested automatically (include 1 or 0 to force)
\(d + D \ge 2\) Generates a quadratic or higher-degree polynomial trend Explosive curvature Omitted (0) by default to avoid risky extrapolation

In fable::ARIMA(), the reported constant term is directly \(c\) from the backshift equation above (unlike base R stats::arima(), which reports the unconditional mean \(\mu\) under the label intercept when \(d = D = 0\)).

4. Verifying Backshift Equations Against fable::ARIMA()

We fit both the classic Airline Model (\(d + D = 2\), so \(c = 0\)) and a seasonal-difference model with drift (\(d = 0, D = 1\), \(c \neq 0\)) to log(AirPassengers) and verify the exact numerical equations.

ap <- as_tsibble(AirPassengers)

fit_ap <- ap |>
  model(
    airline     = ARIMA(log(value) ~ 0 + pdq(0, 1, 1) + PDQ(0, 1, 1)),
    ar1ma1_drft = ARIMA(log(value) ~ 1 + pdq(1, 0, 1) + PDQ(0, 1, 1))
  )

tidy(fit_ap) |>
  select(.model, term, estimate, std.error, p.value) |>
  fmt_tbl(digits = 4, caption = "Estimated parameters for two SARIMA models on log(AirPassengers).")
Estimated parameters for two SARIMA models on log(AirPassengers).
.model term estimate std.error p.value
airline ma1 -0.4018 0.0896 0.0000
airline sma1 -0.5569 0.0731 0.0000
ar1ma1_drft ar1 0.9017 0.0469 0.0000
ar1ma1_drft ma1 -0.3324 0.1039 0.0017
ar1ma1_drft sma1 -0.5561 0.0754 0.0000
ar1ma1_drft constant 0.0116 0.0010 0.0000

For the Airline Model, \(\hat{\theta}_1 = -0.4018\) and \(\hat{\Theta}_1 = -0.5569\), so the multiplicative cross-term is \(\hat{\theta}_1 \hat{\Theta}_1 = (-0.4018)(-0.5569) = +0.2238\). Substituting into the expanded equation gives:

\[ \ln y_t = \ln y_{t-1} + \ln y_{t-12} - \ln y_{t-13} + \varepsilon_t - 0.4018\,\varepsilon_{t-1} - 0.5569\,\varepsilon_{t-12} + 0.2238\,\varepsilon_{t-13}. \]

For ar1ma1_drft (\(d = 0, D = 1\)), the estimated constant is \(\hat{c} = 0.0116\) and \(\hat{\phi}_1 = 0.9016\), implying an average annual log-growth drift of \(\hat{\delta} = \hat{c} / (1 - \hat{\phi}_1) = 0.0116 / (1 - 0.9016) \approx 0.118\) (roughly 12% per year), matching the observed year-over-year growth rate! We confirm this numerically and compare the 36-month forecasts of both models.

fit_ap |>
  forecast(h = "3 years") |>
  anchor_fc(ap) |>
  autoplot(ap, level = 80) +
  labs(
    title = "AirPassengers: Airline Model vs. Seasonal Difference with Drift",
    subtitle = TeX(r"(80% intervals: wider long-run uncertainty under $d + D = 2$ than $d + D = 1$)"),
    x = NULL, y = "Monthly passengers (thousands)",
    color = "Model", fill = "Model"
  )
Figure 1: Three-year forecasts of AirPassengers from the Airline Model (d+D=2, stochastic trend) and SARIMA(1,0,1)(0,1,1)_12 with deterministic drift (d+D=1, c != 0).

Notice how airline (\(d + D = 2\)) produces visibly wider 80% prediction intervals at longer horizons than ar1ma1_drft (\(d + D = 1\)), because integrating white noise twice allows the forecast slope itself to evolve randomly rather than staying fixed at a constant drift.

Practice Exercises

Exercise 1. Expand each model completely in terms of \(y_t\), its lags, \(\varepsilon_t\), and its lags, identifying every cross-term:

  1. \(\text{SARIMA}(1, 1, 0)(1, 0, 0)_4\) with \(c = 0\)
  2. \(\text{SARIMA}(0, 0, 1)(0, 1, 1)_{12}\) with constant \(c \neq 0\)
Solution
  1. \((1 - \phi_1 B)(1 - \Phi_1 B^4)(1 - B) y_t = \varepsilon_t\). First expand \((1 - \phi_1 B)(1 - B) = 1 - (1 + \phi_1)B + \phi_1 B^2\), then multiply by \((1 - \Phi_1 B^4)\):

\[ y_t = (1 + \phi_1) y_{t-1} - \phi_1 y_{t-2} + \Phi_1 y_{t-4} - \Phi_1(1 + \phi_1) y_{t-5} + \Phi_1 \phi_1 y_{t-6} + \varepsilon_t. \]

Cross-terms appear at lags 5 and 6 even though only two AR parameters (\(\phi_1, \Phi_1\)) are estimated.

  1. \((1 - B^{12}) y_t = c + (1 + \theta_1 B)(1 + \Theta_1 B^{12})\varepsilon_t\), which expands to:

\[ y_t = c + y_{t-12} + \varepsilon_t + \theta_1 \varepsilon_{t-1} + \Theta_1 \varepsilon_{t-12} + \theta_1 \Theta_1 \varepsilon_{t-13}. \]

Here \(d + D = 1\), so \(c\) acts as a deterministic annual drift (increasing each month’s level by \(c\) per year), and the multiplicative MA cross-term appears at lag 13 with coefficient \(\theta_1 \Theta_1\).

Exercise 2. Fit ARIMA(log(value) ~ 1 + pdq(0, 0, 1) + PDQ(0, 1, 1)) to as_tsibble(AirPassengers). Count the estimated dynamic parameters, verify that constant equals the average annual log-difference, and check what happens when you fit ARIMA(log(value) ~ 1 + pdq(0, 1, 1) + PDQ(0, 1, 1)) (\(d + D = 2\) with a forced constant).

Solution
ap <- as_tsibble(AirPassengers)
ex_fit <- ap |>
  model(
    D1_drift = ARIMA(log(value) ~ 1 + pdq(0, 0, 1) + PDQ(0, 1, 1)),
    D2_const = ARIMA(log(value) ~ 1 + pdq(0, 1, 1) + PDQ(0, 1, 1))
  )

tidy(ex_fit) |>
  select(.model, term, estimate, std.error, p.value) |>
  fmt_tbl(digits = 4)
.model term estimate std.error p.value
D1_drift ma1 0.5297 0.0589 0.0000
D1_drift sma1 -0.4649 0.1002 0.0000
D1_drift constant 0.1205 0.0036 0.0000
D2_const ma1 -0.4021 0.0897 0.0000
D2_const sma1 -0.5577 0.0732 0.0000
D2_const constant -0.0002 0.0010 0.8679
ap |>
  mutate(d12 = difference(log(value), 12)) |>
  as_tibble() |>
  summarise(mean_annual_log_diff = mean(d12, na.rm = TRUE)) |>
  fmt_tbl(digits = 4)
mean_annual_log_diff
0.1198

In D1_drift (\(p = P = 0\)), \(\phi(1)\Phi(1) = 1\), so constant = 0.1204 closely matches the sample mean annual log-difference (0.1198), alongside 2 dynamic MA parameters (ma1, sma1). In D2_const (\(d + D = 2\)), forcing 1 estimates a quadratic-trend constant (-0.0002, \(p = 0.868\)) that is statistically indistinguishable from zero while triggering a fable warning against polynomial extrapolation.

Key Takeaways

  • Backshift algebra turns differencing and seasonal lags into polynomial multiplication: \((1 - B)(1 - B^m) = 1 - B - B^m + B^{m+1}\) and \((1 - B)^2 = 1 - 2B + B^2\).
  • Multiplicative \(\text{SARIMA}(p, d, q)(P, D, Q)_m\) naturally generates lag cross-terms (such as \(\theta_1 \Theta_1 \varepsilon_{t-m-1}\)) using only \(p + q + P + Q\) dynamic parameters.
  • In fable::ARIMA(), AR polynomials carry minus signs (\(\phi(B) = 1 - \phi_1 B - \dots\)), MA polynomials carry plus signs (\(\theta(B) = 1 + \theta_1 B + \dots\)), and constant is the exact equation constant \(c\).
  • The constant \(c\) determines the stationary mean when \(d + D = 0\), a linear drift when \(d + D = 1\), and is omitted by default when \(d + D \ge 2\).
Back to top