Order Selection for Time Series Models#
Stage 6 · 🏗️ Building & Forecasting Models · Lesson 14 of 18 · advanced
◀ Previous · Diagnostics After Fitting a Time Series Model · Next · ARIMA Models: How Nonstationary Models Are Built from Stationary Ones ▶ · ↑ Section
Important
✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.
The trade-off#
Every extra parameter improves the in-sample fit but risks overfitting — chasing noise that will not repeat. Order selection is the search for a model that is complex enough to fit, simple enough to generalise: the parsimony principle at the heart of Box–Jenkins.
Information criteria#
The standard tools score fit against complexity. Both the Akaike and Bayesian information criteria reward the likelihood and penalise the parameter count \(k\):
Lower is better, and you compare candidates fitted to the same data. (The small-sample correction AICc is safer when \(n\) is not large.)
AIC versus BIC#
The two differ only in the penalty. BIC’s per-parameter cost \(\ln n\) is harsher than AIC’s \(2\) (once \(n > 7\)), so BIC favours simpler models and is preferred when parsimony matters; AIC tends to pick slightly richer models and suits predictive accuracy. When they disagree, the choice is yours to justify.
Putting it together#
In practice: pick d by differencing until stationary (ADF / KPSS), read tentative p, q off
the ACF / PACF, then grid-search nearby orders and keep the lowest-criterion model that also
passes diagnostics — a lower AIC means nothing if the residuals are still autocorrelated. Tools
like pmdarima.auto_arima automate the search; statsmodels exposes .aic and .bic.
Hint
Related lessons: Diagnostics After Fitting a Time Series Model · Sample ACF and Sample PACF · ARIMA Models: How Nonstationary Models Are Built from Stationary Ones · Understanding ARMA Processes
See also
Source article Adapted (context, re-expressed) in our own words from: https://insightful-data-lab.com/2026/01/17/order-selection-for-time-series-models/ (insightful-data-lab.com).