Contents
- What do ARIMA and SARIMA mean?
- Is ARIMA always better than simpler methods?
- The Box-Jenkins stages
- 1. Identification
- 2. Estimation
- 3. Diagnostic checking
- 4. Forecasting
- A worked example: monthly vegetable prices
- ARIMA or SARIMA: how to decide
- Frequently asked questions
- What is the difference between ARIMA and SARIMA?
- What does ARIMA(1,1,1) mean?
- Does ARIMA require stationary data?
- How many observations does SARIMA need?
- Which software can estimate ARIMA and SARIMA?
- Can ARIMA include other explanatory variables?
- References
Versi bahasa Indonesia: ARIMA SARIMA : Si Kembar dari Time Series
Short answer: ARIMA (autoregressive integrated moving average) is a time series forecasting model that combines an autoregressive part (AR), differencing to remove trends (I), and a moving average part (MA), written ARIMA(p, d, q). SARIMA adds a seasonal part for data with a repeating pattern, such as monthly or quarterly data, written ARIMA(p, d, q)(P, D, Q)s. ARIMA suits non-seasonal series; SARIMA suits series in which the same season repeats every s periods.
| Symbol | Meaning | Identified from |
|---|---|---|
| p | Order of the non-seasonal autoregressive part | PACF cuts off after lag p |
| d | Number of non-seasonal differences | Trend; ADF test |
| q | Order of the non-seasonal moving average part | ACF cuts off after lag q |
| P, D, Q | Seasonal AR order, seasonal differences, seasonal MA order | ACF and PACF at lags s, 2s, 3s |
| s | Length of the season | 12 for monthly, 4 for quarterly, 7 for daily data with weekly cycles |
What do ARIMA and SARIMA mean?
ARIMA stands for autoregressive integrated moving average, and SARIMA is the same model with the word seasonal added in front. The two are twins: SARIMA contains everything in ARIMA and adds a second set of terms that operate at the seasonal lag. The approach was systematized by Box and Jenkins in the 1970s and remains one of the most widely used statistical forecasting methods.
Each part of the name describes one building block. The autoregressive part explains the current value as a weighted sum of its own past values: Yt depends on Yt−1, Yt−2, and so on. The moving average part explains the current value through past forecast errors, namely the shocks that the model failed to predict in recent periods. The integrated part refers to differencing: instead of modeling the level of the series, the model works with the change from one period to the next, which removes a trend. A model can be purely autoregressive, purely moving average, or a combination, and the identification stage decides which.
Is ARIMA always better than simpler methods?
ARIMA and SARIMA look more sophisticated than trend lines, moving averages, or naive forecasts, and their equations appear impressive in a thesis. However, sophistication is not the criterion. The model that forecasts best is the one with the smallest error on data it has not seen, measured by MSE, RMSE, MAE, or MAPE. When a SARIMA model produces a larger error than a seasonal naive forecast, the SARIMA model has no advantage, however elegant its equation. Using it in that case resembles cutting the grass in a small garden with a chainsaw: powerful, noisy, and unnecessary. Thus, ARIMA results should always be compared with at least one simple benchmark.
The Box-Jenkins stages
Building an ARIMA or SARIMA model follows four stages.
1. Identification
The series is first examined for trend and seasonality. ARIMA requires a stationary series, one that fluctuates around a constant mean with a constant variance and shows no persistent upward or downward movement. When a trend is present, the series is differenced once (d = 1), and occasionally twice. When a seasonal pattern is present, a seasonal difference (D = 1) subtracts the value from the same season of the previous year. The augmented Dickey-Fuller test confirms whether the differenced series is stationary.

The orders p and q are then read from the autocorrelation function (ACF) and partial autocorrelation function (PACF) of the stationary series. A pattern that drops to near zero abruptly after a few lags is said to cut off, while a pattern that decays gradually is said to die down. An AR(p) process shows a PACF that cuts off after lag p and an ACF that dies down. An MA(q) process shows an ACF that cuts off after lag q and a PACF that dies down. When both die down, a mixed ARMA model is indicated. The same reading at lags s, 2s, and 3s identifies the seasonal orders.
2. Estimation
The candidate models are estimated, usually by maximum likelihood. Each coefficient is tested for significance, and the models are compared using information criteria such as AIC and BIC; lower values indicate a better balance between fit and complexity.
3. Diagnostic checking
A good model leaves residuals that behave like white noise. The Ljung-Box test checks for remaining autocorrelation, and a p-value above 0.05 indicates that the residuals contain no further structure to exploit. The residual ACF should show no significant spikes. When diagnostics fail, the analyst returns to the identification stage and tries a different specification.
4. Forecasting
The accepted model produces forecasts and prediction intervals. Before the final forecast, the model is usually evaluated on a hold-out period, and its accuracy is compared with simple benchmarks.
A worked example: monthly vegetable prices
Consider an illustrative series of eight years of monthly wholesale prices of a vegetable crop (96 observations). The plot shows a gentle upward trend and a clear yearly pattern: prices peak in the months before major holidays and fall after the main harvest. The ADF test on the raw series indicates non-stationarity (p = 0.62). After one regular difference and one seasonal difference (d = 1, D = 1, s = 12), the ADF test indicates stationarity (p < 0.01).
The ACF of the differenced series shows a significant spike at lag 1 and another at lag 12, while the PACF decays at both the non-seasonal and seasonal lags. This pattern suggests a non-seasonal MA(1) and a seasonal MA(1), so the candidate model is SARIMA(0, 1, 1)(0, 1, 1)12, often called the airline model. A second candidate, SARIMA(1, 1, 1)(0, 1, 1)12, is estimated for comparison. The first model has AIC = 412.6 and the second AIC = 413.9, and the AR term in the second model is not significant (p = 0.48). The Ljung-Box test on the first model gives Q(24) = 19.3 with p = 0.62. On a 12-month hold-out period, the first model achieves MAPE = 7.8%, compared with 11.2% for a seasonal naive forecast that repeats last year’s values. Thus, the simpler SARIMA specification is selected, and it beats the benchmark by a meaningful margin.
A small scene puts the numbers in context. A wholesale trader who buys from farmers each week wants to know whether to hold stock for the holiday peak. A forecast that misses by 8% on average, with prediction intervals that widen in the peak months, does not remove the risk, yet it turns a guess into a planned bet with known odds.
ARIMA or SARIMA: how to decide
The decision follows the data. When the ACF shows significant spikes at seasonal lags, or when a seasonal subseries plot shows the same months consistently above or below the others, a seasonal model is required, and fitting a plain ARIMA leaves the seasonal pattern in the residuals. When no such pattern exists, as with many annual series, ARIMA is sufficient. Data frequency is a useful first hint: annual data rarely need SARIMA, while monthly agricultural, retail, and tourism data usually do. Consequently, the choice is not a matter of preference but of what the diagnostics reveal. When the evidence is ambiguous, both models can be fitted and compared on a hold-out period, and the one with the lower forecast error is retained, together with a note on the alternative.
Related guides on Catatan Budi: how to read ACF and PACF plots, auto ARIMA in Python, time series data and forecasting accuracy, and ARCH and GARCH models.
Frequently asked questions
What is the difference between ARIMA and SARIMA?
ARIMA models non-seasonal patterns through autoregressive, differencing, and moving average terms. SARIMA adds the same three types of terms at the seasonal lag, so it can model patterns that repeat every s periods.
What does ARIMA(1,1,1) mean?
It means one autoregressive term, one regular difference, and one moving average term. The model explains the change in the series through the previous change and the previous forecast error.
Does ARIMA require stationary data?
The ARMA part requires a stationary series. The “integrated” part handles non-stationarity by differencing, so the original series can have a trend as long as differencing makes it stationary.
How many observations does SARIMA need?
A practical minimum is three to four full seasonal cycles, which means at least 36 to 48 monthly observations. More data give more stable estimates of the seasonal terms.
Which software can estimate ARIMA and SARIMA?
Minitab, EViews, SPSS (Expert Modeler), R (forecast and fable packages), and Python (statsmodels and pmdarima) all estimate ARIMA and SARIMA models.
Can ARIMA include other explanatory variables?
Yes. ARIMAX and SARIMAX models add external regressors, such as rainfall or prices of substitutes, to the ARIMA structure. The regressors must be known or forecast for the forecast period.
References
- Box, G. E. P., Jenkins, G. M., Reinsel, G. C., and Ljung, G. M. (2015). Time Series Analysis: Forecasting and Control (5th ed.). Wiley.
- Hyndman, R. J., and Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts.
Discussion
No comments yet. Have a question about this topic? Write it below and I will do my best to answer.