Inferensys

Glossary

ARIMA

ARIMA (Autoregressive Integrated Moving Average) 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.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
DEFINITION

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.

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.

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.

MODEL ARCHITECTURE

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.

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

ARIMA MODELING

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.

Prasad Kumkar

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.