An Autoregressive Integrated Moving Average (ARIMA) model is defined by three components: the autoregressive (AR) order, the degree of differencing (I), and the moving average (MA) order. It operates on the principle that future values can be predicted by a linear combination of past observations and past forecast errors, requiring the time series to be stationary.
Glossary
ARIMA

What is ARIMA?
ARIMA is a classical statistical model for analyzing and forecasting univariate time series data by describing autocorrelations in terms of lagged observations, differencing, and lagged forecast errors.
The model is denoted as ARIMA(p, d, q), where p is the number of lag observations, d is the degree of differencing applied to remove trend and achieve stationarity, and q is the size of the moving average window. ARIMA serves as a foundational baseline for demand forecasting before applying more complex deep learning models.
Key Characteristics of ARIMA
The ARIMA framework decomposes a time series into three distinct structural components, each governed by a specific hyperparameter. Understanding these components is essential for model specification and diagnostic checking.
Autoregressive (AR) Component
Models the dependency between an observation and a specified number of lagged observations (its own past values). The parameter p denotes the order, or number of lags included. An AR(1) model, for instance, predicts today's sales using yesterday's sales. This component captures the momentum or mean-reverting behavior in the data. The mathematical formulation is a linear regression of the current value against its p previous values, making it effective for series where past values are strongly predictive.
Integrated (I) Component
Applies differencing to make the time series stationary. The parameter d represents the number of times the raw observations are differenced. For example, if d=1, the model works on the change between consecutive periods rather than the absolute values. This is critical because AR and MA components require a stable mean and variance. Stationarity is achieved when the differenced series has no visible trend or seasonality, a condition verified by statistical tests like the Augmented Dickey-Fuller test.
Moving Average (MA) Component
Models the dependency between an observation and the residual errors from a moving average applied to lagged observations. The parameter q specifies the order, or the number of lagged forecast errors incorporated. Unlike the AR component which uses past values, the MA component uses past shocks or innovations. An MA(1) model adjusts the forecast based on the error from the previous period, effectively smoothing out unpredictable, short-term fluctuations in the series.
Model Identification: ACF and PACF Plots
The Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots are the primary diagnostic tools for determining the p and q orders. The ACF plot shows the correlation between the series and its lags, including indirect effects. The PACF plot shows the direct correlation at each lag, removing intermediary influences. A sharp cut-off in the PACF suggests an AR(p) model, while a sharp cut-off in the ACF suggests an MA(q) model. These visual heuristics guide the initial model specification before iterative refinement.
Seasonal Extension: SARIMA
For data with a repeating seasonal pattern, the Seasonal ARIMA (SARIMA) model adds a second set of seasonal parameters: (P, D, Q, m). Here, P is the seasonal autoregressive order, D is the seasonal differencing order, Q is the seasonal moving average order, and m is the number of periods per season (e.g., 12 for monthly data with a yearly cycle). This allows the model to capture both non-seasonal dependencies and the relationship between an observation and its value from one full seasonal cycle ago.
Box-Jenkins Methodology
ARIMA models are built using the iterative Box-Jenkins methodology, a three-stage process. Stage 1: Identification—use plots and statistical tests to determine if the series is stationary and propose initial p, d, q values. Stage 2: Estimation—use maximum likelihood estimation to fit the parameters. Stage 3: Diagnostic Checking—analyze the residuals to ensure they resemble white noise (no remaining autocorrelation), confirming the model has captured all signal. The cycle repeats if diagnostics fail.
Frequently Asked Questions
Clear, technical answers to the most common questions about the Autoregressive Integrated Moving Average model, its components, and its application in demand forecasting.
An ARIMA (Autoregressive Integrated Moving Average) model is a classical statistical tool for analyzing and forecasting univariate time series data. It works by describing the autocorrelations within a stationary time series using three distinct components: the autoregressive (AR) terms, which model the dependency between an observation and a specified number of lagged observations; the integrated (I) component, which applies differencing to raw observations to make the time series stationary by removing trend and seasonality; and the moving average (MA) terms, which model the dependency between an observation and the residual errors from a moving average model applied to lagged observations. The model is typically denoted as ARIMA(p, d, q), where p is the order of the AR term, d is the degree of differencing, and q is the order of the MA term. In the context of demand forecasting, ARIMA captures the underlying patterns in historical sales data—such as momentum and random shocks—to project future values, making it a foundational baseline before moving to more complex deep learning models like DeepAR or Temporal Fusion Transformers.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Mastering ARIMA requires understanding the statistical properties and complementary techniques that underpin classical time series analysis. These concepts form the diagnostic and modeling toolkit for building robust univariate forecasts.
Stationarity
A fundamental property where a time series has constant mean, variance, and autocorrelation over time. ARIMA models require stationarity; the 'I' (Integrated) component applies differencing to transform a non-stationary series into a stationary one. The Augmented Dickey-Fuller (ADF) test is the standard statistical method for verifying this condition before fitting.
Autocorrelation Function (ACF)
Measures the linear correlation between a time series and its lagged values. The ACF plot is the primary diagnostic tool for identifying the Moving Average (MA) order (q). In a pure MA(q) process, the ACF cuts off sharply after lag q, while it decays gradually for autoregressive processes.
Partial Autocorrelation Function (PACF)
Measures the correlation between a time series and its lagged values after removing the effects of intermediate lags. The PACF plot is essential for determining the Autoregressive (AR) order (p). In a pure AR(p) process, the PACF cuts off after lag p, providing a clear signature for model identification.
Seasonal ARIMA (SARIMA)
Extends ARIMA to capture periodic patterns by adding seasonal autoregressive, differencing, and moving average terms. Denoted as ARIMA(p,d,q)(P,D,Q)m, where 'm' is the seasonal period (e.g., 12 for monthly data). Critical for retail demand forecasting with strong weekly or annual cycles.
Akaike Information Criterion (AIC)
A model selection metric that balances goodness-of-fit against model complexity by penalizing the number of parameters. Lower AIC values indicate a better model. Used to objectively compare competing ARIMA(p,d,q) specifications rather than relying solely on visual ACF/PACF interpretation.
Time Series Decomposition
A technique that deconstructs a series into trend, seasonality, and residual components. Often used as a preprocessing step before ARIMA modeling to visually confirm patterns. STL decomposition (Seasonal-Trend decomposition using LOESS) handles complex seasonality and is more robust than classical methods.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us