SARIMA Model — Seasonal Autoregressive Integrated Moving Average

Econometrics
Introduced by
Box, Jenkins, and Reinsel
Year
1970 (first edition); 1976 (revised)
Type
Seasonal time series model
Family
Econometrics / time series

What does it do?

SARIMA extends ARIMA by adding seasonal autoregressive and moving-average operators, so it can model repeating patterns at a fixed interval such as monthly, quarterly, or annual cycles.

It is written SARIMA(p,d,q)(P,D,Q)s, where s is the season length. It is a standard model for univariate seasonal time series in econometrics, economics, and official statistics.

The intuition behind the method

An ARIMA model relates a series to its own recent values and recent forecast errors. SARIMA adds a second set of terms that relate the series to values one season back, so for monthly data with s = 12 the current month is linked to the same month in the previous year. Regular differencing removes a trend, and seasonal differencing removes a recurring seasonal pattern in the level. The fitted model therefore captures short-run dynamics and the seasonal pattern together.

History

The SARIMA framework belongs to the Box-Jenkins approach. Box and Jenkins set out the model in Time Series Analysis: Forecasting and Control, whose first edition the facts record as 1970 and whose revised edition is listed as 1976. The approach introduced the iterative cycle of identification, estimation, and diagnostic checking that is still used for these models.

When to use it

Use SARIMA for a univariate, equally spaced series that has a trend and a stable seasonal pattern at a known frequency, such as monthly or quarterly data. It is commonly applied to macroeconomic and financial series such as GDP, retail sales, unemployment, or electricity demand. Prefer SARIMA to plain ARIMA when the ACF and PACF show significant autocorrelation at seasonal lags. If the seasonal swings grow with the level of the series, a log transform is often applied before fitting, and the forecasts must then be back-transformed. Consider ETS, state-space models, or TBATS instead when the seasonal pattern is irregular or changes over time in a way that differencing cannot capture. SARIMA is also unsuitable for multivariate problems, where VAR or VARMA models apply, and for series that cover only a few seasonal cycles. The standard model assumes that the differenced series is weakly stationary, that the MA operators are invertible, and that the innovations are white noise, usually taken as Gaussian for likelihood inference.

Limitations and considerations

  • The model assumes a linear, constant-parameter process, so structural breaks or regime changes are not captured without an extension.
  • Estimation needs a reasonable number of complete seasonal cycles; a series covering only a few cycles gives unstable parameter estimates.
  • The season length s must be specified in advance. If s is wrong, the seasonal terms fit poorly and forecasts are unreliable.
  • Only one seasonal period can be modelled. Data with several overlapping cycles, such as daily and weekly patterns, require TBATS or a harmonic regression approach.
  • Forecast uncertainty grows with the horizon, so accuracy at longer horizons is usually much lower than at short horizons.
  • Standard SARIMA estimation assumes complete, regularly spaced observations; gaps must be imputed or handled by a state-space estimation routine before fitting.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Seasonal and non-seasonal dynamics are specified within one polynomial framework, so seasonal AR and MA terms can be read from the ACF and PACF at multiples of s.
  • The model is described by a small set of integer orders, which allows candidate specifications to be compared directly with AIC and BIC.
  • Because the model is fitted by likelihood-based methods, prediction intervals follow from the fitted model rather than being added afterwards.
  • The Box-Jenkins cycle of identification, estimation, and diagnostic checking gives an explicit route for judging whether the fitted model is adequate.
  • Implementations are available in R (forecast, fable), Python (statsmodels, pmdarima), EViews, and Stata.

Applications

  • Forecasting monthly macroeconomic indicators such as industrial production, retail sales, and the consumer price index.
  • Quarterly GDP forecasting and seasonal adjustment in national accounts.
  • Short-to-medium horizon electricity and energy demand forecasting.
  • Forecasting tourism and airline passenger volumes, a series often used to illustrate seasonal ARIMA modelling.
  • Inventory and supply-chain demand planning where seasonal cycles are stable.

How it works

How it works

1

Seasonal differencing at lag s, the season length, removes seasonal non-stationarity such as a peak that recurs every December in retail sales. The operator (1 - B^s)^D is applied D times, and each application subtracts the observation one season earlier. D therefore counts how many times the seasonal difference is taken, not how many seasons back the comparison goes.

Formula
\Delta_s^D y_t = (1 - B^s)^D y_t
2

Non-seasonal differencing of order d removes trend-related non-stationarity that remains after seasonal differencing. Applied together with seasonal differencing, it aims to produce a weakly stationary series that can be modelled with autoregressive and moving-average terms.

Formula
\Delta^d y_t = (1 - B)^d y_t
3

The SARIMA(p,d,q)(P,D,Q)s equation combines four polynomial operators: the seasonal AR operator Phi_P(B^s), the non-seasonal AR operator phi_p(B), the seasonal MA operator Theta_Q(B^s), and the non-seasonal MA operator theta_q(B). Together they link the differenced series to its own past values and past errors, both at short lags and at multiples of the season length. The equation is written for the zero-mean differenced series. When d + D > 0 a constant is usually omitted; with d = 1 and D = 0 it can be retained as a drift term, which gives the level a linear trend.

Formula
\Phi_P(B^s)\phi_p(B)\Delta_s^D \Delta^d y_t = \Theta_Q(B^s)\theta_q(B)\varepsilon_t
4

Orders are chosen by inspecting the ACF and PACF of the differenced series. Spikes in the ACF at multiples of s point to seasonal MA terms, and spikes in the PACF at seasonal lags point to seasonal AR terms. Information criteria such as AIC and BIC are then used to compare the candidate models.

5

Parameters are usually estimated by maximum likelihood or by conditional least squares. If the model contains only AR terms, the coefficients can be estimated by ordinary least squares. Once MA terms are included, the lagged innovations are unobservable, so no explicit estimator exists and maximum likelihood is needed. Automated routines such as R's auto.arima and Python's pmdarima select orders and estimate the model in one step. It is still advisable to inspect the ACF and PACF of the differenced series to check whether the automatic choice is sensible.

6

Residuals of a well-specified SARIMA model should look like white noise. The Ljung-Box test checks a joint null of no autocorrelation over a chosen set of lags, so it should be applied at short lags and at seasonal lags. Normality and constant variance of the residuals are also checked. If autocorrelation remains at seasonal lags, consider increasing the seasonal AR or MA orders, P or Q. Change D only if a seasonal unit-root test supports it, because extra seasonal differencing can over-difference the series. If autocorrelation remains at short lags, p or q may need to be increased.

Common pitfalls

  • Fitting before checking stationarity. Apply unit-root tests such as ADF or KPSS, and examine the ACF for trend and seasonality, before choosing d and D.
  • Adding AR and MA orders to improve in-sample fit. This tends to produce over-fitted models that forecast poorly, so the model should be checked on a held-out period.
  • Checking the Ljung-Box test only at short lags. Residual autocorrelation at seasonal lags, such as s and 2s, must also be examined.
  • Accepting the output of automatic order selection without looking at the ACF and PACF. Automated search can miss seasonal terms or add redundant ones.
  • Forgetting to back-transform forecasts after a log transformation of the series, which leaves point forecasts on the wrong scale.

Frequently asked questions

How do I choose the seasonal period s?

The seasonal period s follows from the data frequency: s = 12 for monthly data, s = 4 for quarterly data, and s = 7 for daily data with a weekly cycle. It is set by the analyst from domain knowledge rather than estimated from the data. If the frequency is unclear, plot the series and its ACF, since peaks at regular intervals show the dominant season length.

What is the difference between d and D?

d is the number of regular (non-seasonal) differences used to remove a trend, and D is the number of seasonal differences used to remove a seasonal unit root. D = 1 is a common starting point for one seasonal cycle, and d = 1 is a common starting point for a linear trend. Taking the seasonal difference first and then choosing d is a frequent practical strategy.

How do I decide between SARIMA and ETS (exponential smoothing)?

Both can handle trend and seasonality, but they rest on different structural assumptions. SARIMA suits series whose ACF and PACF show an interpretable lag structure that you want to model explicitly. ETS is often simpler to specify and can perform comparably in practice. Comparing the two on out-of-sample error measures such as RMSE or MAPE on a hold-out set is a standard approach.

Can SARIMA handle multiple seasonal cycles?

Standard SARIMA handles only one seasonal period. For data with several seasonal patterns, such as hourly data with daily and weekly cycles, TBATS, BATS, or harmonic regression combined with ARIMA errors can be used instead.

What should I do if Ljung-Box tests still show autocorrelation after fitting?

Remaining autocorrelation at seasonal lags may indicate that P or Q is too small, so raising the seasonal AR or MA order is the first step. Change D only if a seasonal unit-root test supports it, since extra differencing can over-difference the series. Remaining autocorrelation at short lags may indicate that p or q needs to be increased. Examine the ACF of the residuals, compare candidate models by AIC and BIC, and rerun the diagnostics after refitting.

Related methods

Sources

  1. Box, G. E. P., Jenkins, G. M., & Reinsel, G. C. (1976). Time Series Analysis: Forecasting and Control (revised ed.). Holden-Day.

    ISBN: 978-0130607744
  2. Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts.

    Open publication reference
  3. Computer-Aided Introduction to Econometrics, pp. 238–240

  4. Econometrics of Risk, p. 337