An ARIMA(p, d, q) model — or seasonal SARIMA(P, D, Q)[s] — fits the Box-Jenkins family to a time series, with manual or automatic order selection.
ARIMA decomposes a series into autoregressive (AR), integrated (I = differencing), and moving-average (MA) components. The (p, d, q) order specifies how many of each. Seasonal SARIMA adds (P, D, Q) on the seasonal lag for cyclical patterns.
Two workflows: manual Box-Jenkins (look at ACF/PACF, pick (p, q), check residuals, iterate) or automatic order selection (searches over candidate orders by AIC). Auto is faster and usually correct; manual is more interpretable when you understand the series.
Numeric series + (p, d, q) order + optional seasonal (P, D, Q, period).
Coefficient table, σ², logLik, AIC, BIC, Ljung-Box test on residuals as a white-noise check.
Significant Ljung-Box on residuals ⇒ the model didn't capture all the structure; revisit (p, d, q).
Compare candidate models by AIC — differences < 2 are negligible.