跳到主要内容

Macro by Mark 的 Cookie.我们使用必要 Cookie 处理登录、语言和安全。经您同意,我们还会将可选 Cookie 用于保存偏好、分析,以及通过 Meta(Facebook)Pixel 衡量广告效果。请阅读我们的Cookie 政策。

Macro by MarkMacro by Mark
  • 首页
加载中…
加载中…
← 模型
Macro概念政策模型

SARIMA Model

Seasonal ARIMA - extends ARIMA with explicit seasonal AR, differencing, and MA terms for series with calendar structure.

概述图表数学参考资料

How do you forecast a series whose autocorrelation structure repeats at a known calendar frequency?

Background

The Seasonal ARIMA model - written SARIMA or ARIMA(p,d,q)(P,D,Q)s\text{ARIMA}(p,d,q)(P,D,Q)_sARIMA(p,d,q)(P,D,Q)s​ - extends Box and Jenkins's 1970 framework by introducing a second set of autoregressive and moving-average polynomials that operate at the seasonal lag sss rather than at consecutive lags. Box and Jenkins formalized the multiplicative seasonal structure in the 1970 first edition of Time Series Analysis (Chapter 9, applied to the international airline passenger data; Reinsel joined as a coauthor only with the 1994 third edition), responding to the observation that many economic and physical series carry periodic patterns (monthly employment, quarterly GDP, weekly retail traffic) that ordinary ARIMA cannot capture without an impractically high lag order. The multiplicative form was the key insight: instead of fitting a single high-order ARMA polynomial, SARIMA factors the dependence structure into a non-seasonal part (operating at lags 1, 2, ..., ppp) and a seasonal part (operating at lags sss, 2s, ..., Ps), then multiplies the two polynomials together. This dramatically reduces parameter count while preserving the model's ability to represent rich seasonal autocorrelation patterns.

The statistical mechanism works as follows. Ordinary differencing removes stochastic trends at the non-seasonal frequency; seasonal differencing - applying the operator (1−Ls)D(1 - L^s) D(1−Ls)D times - removes stochastic trends at the seasonal frequency. After both differencing operations, the resulting series should be covariance-stationary. The non-seasonal ARMA(p,q)\text{ARMA}(p,q)ARMA(p,q) component captures short-run serial dependence within each season, while the seasonal ARMA(P,Q)s\text{ARMA}(P,Q)_sARMA(P,Q)s​ component captures year-over-year persistence and the rate at which seasonal shocks dissipate. The multiplicative interaction between the two ARMA filters generates cross-terms (e.g., at lag s+1,s−1s+1, s-1s+1,s−1) that model the interaction between within-season dynamics and between-season dynamics - something an additive decomposition would miss entirely.

SARIMA is the backbone of official seasonal adjustment worldwide. The U.S. Census Bureau's X-13ARIMA-SEATS program fits a SARIMA model as its core engine: the model's residuals drive the SEATS signal-extraction filters that separate trend, seasonal, and irregular components for GDP, employment, industrial production, trade balance, and hundreds of other official series. Statistics Canada, Eurostat, the Bank of Japan, and virtually every national statistical office uses SARIMA-based seasonal adjustment. In pure forecasting, SARIMA remains the standard univariate benchmark for series with calendar patterns - the M3 and M4 forecast competitions show that automatic SARIMA (via auto.arima or equivalent) consistently ranks in the top tier for monthly and quarterly macro series.

The most common specification in macro practice is ARIMA(0,1,1)(0,1,1)s\text{ARIMA}(0,1,1)(0,1,1)_sARIMA(0,1,1)(0,1,1)s​, known as the airline model because Box and Jenkins used it to forecast international airline passengers. This parsimonious specification - two MA parameters, ordinary and seasonal differencing - captures an astonishing variety of seasonal macro series. Hyndman and Khandakar's auto.arima algorithm tests the airline model as one of its first candidates. When a richer specification is needed, the algorithm searches over a grid of (p,d,q)(P,D,Q)(p,d,q)(P,D,Q)(p,d,q)(P,D,Q) combinations using AICc, typically capping PPP and QQQ at 1 or 2 to prevent overfitting. The seasonal period sss is not estimated - it is set by the data frequency (s=4s=4s=4 for quarterly, s=12s=12s=12 for monthly, s=52s=52s=52 for weekly).

Connections to explore

Math ↗The structure and its conditions, step by step.References ↗Academic sources and guidance for using the model.

How the Parts Fit Together

yty_tyt​

Observed series

The raw time series at date t, measured at a fixed frequency with known seasonal period s.

The input is a single time series observed at a regular frequency with a known seasonal period sss. The series enters the model through two differencing stages. Ordinary differencing applies (1−L)d(1 - L)^d(1−L)d to remove non-seasonal stochastic trends. Seasonal differencing applies (1−Ls)D(1 - L^s)^D(1−Ls)D to remove stochastic seasonal trends - persistent changes in the seasonal pattern itself, such as a gradually strengthening December retail peak. Together, these two operators transform the raw series yty_tyt​ into a doubly-differenced working series wt=(1−L)d(1−Ls)Dytw_t = (1-L)^d (1-L^s)^D y_twt​=(1−L)d(1−Ls)Dyt​ that should be covariance-stationary. The combined differencing order is d+Dsd + D sd+Ds, so a monthly series with d=1,D=1d=1, D=1d=1,D=1 loses 13 observations to differencing.

The ARMA filter applied to the working series is the product of a non-seasonal and a seasonal component. The non-seasonal AR polynomial ϕ(L)=1−ϕ1L−…−ϕpLp\phi(L) = 1 - \phi_1 L - \ldots - \phi_p L^pϕ(L)=1−ϕ1​L−…−ϕp​Lp captures dependence at consecutive lags (lag 1 through lag ppp). The seasonal AR polynomial Φ(Ls)=1−Φ1Ls−…−ΦPLPs\Phi(L^s) = 1 - \Phi_1 L^s - \ldots - \Phi_P L^{Ps}Φ(Ls)=1−Φ1​Ls−…−ΦP​LPs captures dependence at seasonal lags (lag sss through lag Ps). The full AR filter is the product ϕ(L)Φ(Ls)\phi(L) \Phi(L^s)ϕ(L)Φ(Ls), which generates terms at lags 1, 2, ..., p,s,s+1,…,s+p,2s,…p, s, s+1, \ldots, s+p, 2s, \ldotsp,s,s+1,…,s+p,2s,…, etc. The same multiplicative structure applies to the MA side: θ(L)Θ(Ls)\theta(L) \Theta(L^s)θ(L)Θ(Ls). The multiplicative form is what distinguishes SARIMA from simply fitting a high-order ARIMA with seasonal dummies - it imposes parsimony by factoring the lag polynomial into two low-order pieces.

Estimation uses the same maximum likelihood framework as non-seasonal ARIMA, extended to handle the multiplicative polynomial structure. The prediction error decomposition constructs one-step-ahead forecast errors by running the Kalman filter through the state-space representation of the seasonal model. The log-likelihood is the sum of Gaussian log-densities evaluated at each prediction error. Stationarity requires all roots of the combined AR polynomial to lie outside the unit circle; invertibility requires the same for the combined MA polynomial. These constraints are enforced during optimization. Order selection uses AICc over the (p,d,q,P,D,Q)(p,d,q,P,D,Q)(p,d,q,P,D,Q) grid, with ddd and DDD typically pretested using ADF/KPSS (non-seasonal) and OCSB/Canova-Hansen (seasonal) unit-root tests.

Assumptions

Testable

Covariance stationarity (after both differencing operations)

After ddd ordinary and DDD seasonal differences, the working series wt=(1−L)d(1−Ls)Dytw_t = (1-L)^d (1-L^s)^D y_twt​=(1−L)d(1−Ls)Dyt​ has a time-invariant mean, variance, and autocovariance structure.

If violated:If the doubly-differenced series is still non-stationary, the seasonal ARMA coefficients are inconsistent. Either increase D from 0 to 1, or investigate a changing seasonal pattern that requires a time-varying approach.

Maintained

Multiplicative seasonal structure

The true DGP's lag polynomial factors into a non-seasonal and a seasonal component: the full AR filter is ϕ(L)Φ(Ls)\phi(L) \Phi(L^s)ϕ(L)Φ(Ls), not an arbitrary polynomial of order p+Psp + P sp+Ps with free coefficients at every lag.

If violated:If the true seasonal lag structure is additive rather than multiplicative, the cross-terms imposed by the product form are wrong. The model still converges to the best multiplicative approximation, but may require higher orders (p,P)(p, P)(p,P) than the true additive DGP would need.

Testable

Stable seasonal pattern

The seasonal AR and MA coefficients are constant over the estimation window. The shape and amplitude of the seasonal cycle do not change over time.

If violated:If the seasonal pattern evolves (e.g., Christmas retail share growing over decades), fixed-coefficient SARIMA misrepresents the seasonal component. Consider STL decomposition with time-varying seasonality, or ETS with multiplicative seasonality and dampening.

Testable

Linearity

The conditional mean of wtw_twt​ is a linear function of its own lagged values and past innovations at both seasonal and non-seasonal lags.

If violated:Nonlinear seasonal patterns (e.g., asymmetric seasonal peaks vs. troughs) are not captured. The model produces the best linear approximation, which may have high residual autocorrelation at seasonal lags.

Testable

Homoskedastic innovations

Var⁡(εt∣Ft−1)=σ2\operatorname{Var}(\varepsilon_t | \mathcal{F}_{t-1}) = \sigma^2Var(εt​∣Ft−1​)=σ2 for all ttt. Innovation variance does not vary with the season or the level of the series.

If violated:Many seasonal series have variance proportional to level (heteroskedastic seasonality). Forecast intervals are miscalibrated. A log transformation or multiplicative ETS may be appropriate.

Testable

Correct seasonal period

The seasonal period s is correctly specified. The dominant periodic component of the series aligns with the declared value of s.

If violated:Misspecified sss (e.g., using s=12s=12s=12 for a series with dominant s=6s=6s=6 half-yearly cycle) creates systematic forecast errors at the mismatched frequency. Spectral analysis or periodogram inspection can detect the true dominant period.

Applications

The primary use case is forecasting economic series that carry strong calendar periodicity. At the Bureau of Labor Statistics, SARIMA models underpin the seasonal adjustment of the Current Employment Statistics (CES) survey, which produces the headline nonfarm payrolls number released on the first Friday of every month. The X-13ARIMA-SEATS engine fits an ARIMA(0,1,1)(0,1,1)12\text{ARIMA}(0,1,1)(0,1,1)_{12}ARIMA(0,1,1)(0,1,1)12​ or close variant to each of the roughly 800 CES series, extracts the seasonal component via SEATS signal-extraction filters, and produces the seasonally adjusted series that markets and policymakers watch. Without SARIMA, there is no reliable automatic seasonal adjustment pipeline for high-frequency macro data.

A secondary application is direct forecasting of seasonal time series in business and operations. Retail firms use SARIMA to forecast weekly same-store sales and plan inventory allocation by store and category. Electric utilities use SARIMA on hourly load data (with s=24s=24s=24 or s=168s=168s=168) to schedule generation and manage reserve margins. Agriculture agencies use SARIMA on monthly crop price series to project seasonal price peaks for commodity procurement planning. In each case, the model's strength is capturing a repeating pattern while allowing the pattern's amplitude and phase to be estimated from data rather than imposed by dummy variables.

SARIMA reaches its limits when the seasonal pattern itself is changing. If the December share of annual retail sales has been trending upward over 20 years, a fixed-coefficient SARIMA will underestimate the next December and overestimate the next January. The model also struggles with multiple overlapping seasonal frequencies (e.g., daily data with both weekly and annual cycles) - fitting ARIMA(p,d,q)(P,D,Q)365\text{ARIMA}(p,d,q)(P,D,Q)_{365}ARIMA(p,d,q)(P,D,Q)365​ is computationally impractical and statistically fragile. For such series, TBATS, Prophet, or Fourier-term regression provide more scalable approaches to multiple seasonality.

In the M4 forecasting competition (2018, 100,000 series), automatic SARIMA - implemented via Hyndman's forecast package - ranked as one of the strongest univariate statistical methods for monthly data, outperforming most pure machine-learning entries. Its accuracy-to-complexity ratio remains hard to beat: a single ARIMA(0,1,1)(0,1,1)12\text{ARIMA}(0,1,1)(0,1,1)_{12}ARIMA(0,1,1)(0,1,1)12​ with 3 free parameters (θ1,Θ1,σ2)(\theta_1, \Theta_1, \sigma^2)(θ1​,Θ1​,σ2) often matches or beats neural networks with thousands of parameters on series with stable seasonal structure.

Extensions and open questions

Variants

  • Airline model ARIMA(0,1,1)(0,1,1)s\text{ARIMA}(0,1,1)(0,1,1)_sARIMA(0,1,1)(0,1,1)s​ - the most widely deployed SARIMA specification in seasonal adjustment
  • RegSARIMA - SARIMA with regression effects for trading-day variation, Easter, outliers (the regARIMA component of X-13)
  • Periodic ARIMA (PAR) - allows AR and MA coefficients to vary by season within the year
  • SARIMA-GARCH - pairs seasonal conditional mean with GARCH conditional variance for financial series
  • TBATS - exponential smoothing with Box-Cox, ARMA errors, trend, and multiple seasonal periods (generalizes SARIMA to multiple s)

Open questions

  • Whether seasonal differencing (D=1)(D=1)(D=1) or seasonal dummies in a regARIMA framework produces more robust seasonal adjustment is debated. Seasonal differencing assumes a unit root at the seasonal frequency; if the true DGP has deterministic seasonality, this introduces an unnecessary MA unit root.
  • The choice between model-based SEATS and filter-based X-11 seasonal adjustment remains contested. Both use SARIMA, but SEATS derives its filters from the fitted model while X-11 applies fixed moving averages. SEATS is theoretically optimal under correct specification; X-11 is more robust to misspecification.
  • Handling of calendar effects (trading days, moving holidays like Easter and Chinese New Year) in SARIMA is ad hoc - regARIMA treats them as external regressors, but the choice of regressor form affects the seasonal component and is hard to validate.

Keep going

Read next

Continue with a related concept, model, or example.

Theory model

IS-LM Model

a well-connected theoretical model two steps from here

New angle: theoretical model →
Macro by Mark
帮助
隐私政策使用条款伦理与合规

© 2026 Mark Jayson Nation LLC