A time series model is a statistical or machine learning method that analyzes data points ordered in time to forecast future values from historical patterns. It learns from trends, seasonality, and dependencies between past and present observations to predict what comes next.
Time series models drive forecasting across finance, supply chain, economics, and the Internet of Things (IoT), anywhere the order of observations carries meaning. They range from classical statistical methods such as ARIMA to deep learning architectures such as LSTM, and the right choice depends on the patterns in your data and the horizon you need to forecast.
Key Takeaways
- A time series orders data by time, which creates dependencies between observations that a model uses to forecast future values.
- ARIMA and exponential smoothing handle most classical forecasting, while GARCH targets volatility and deep learning models suit large, multivariate data.
- Decomposition separates a series into trend, seasonality, cyclical movement, and irregular noise, either as a sum or a product.
- Autocorrelation, stationarity, and seasonality decide which model fits and whether the data needs transforming first.
- MAE, MSE, RMSE, and MAPE measure forecast error, and AIC and BIC help select the model that fits without overcomplicating.
What Is a Time Series Model?
A time series model is a statistical or machine learning method that forecasts future values by learning from data points ordered in time.
A time series is a sequence of data points recorded at consistent intervals, such as daily stock prices, monthly sales, or hourly sensor readings. What sets it apart is temporal ordering: the sequence carries information, so the observations cannot be shuffled without losing meaning.
A time series model is the mathematical description of that ordered process. A standard dataset holds independent observations, while a time series creates dependencies, where the value at one point influences the value at another. A model built for this data captures those dependencies to project where a metric is headed.
The distinction between univariate and multivariate modeling matters here. In univariate modeling, time is the only independent variable and every value depends on its own past. Multivariate modeling adds external independent variables, such as weather or pricing, that also shape the forecast.
What Are the Types of Time Series Models?
Time series models include statistical models like ARIMA and exponential smoothing, deep learning architectures like LSTM, and volatility models like GARCH.
Time series models fall into a few broad groups. Statistical models handle most practical forecasting and deserve the most detailed treatment, so they come first.
Statistical Models: ARIMA and Its Variants
ARIMA, short for Autoregressive Integrated Moving Average, is a set of modular building blocks that run alone or in combination. It works best with stationary data and excels on univariate series, with extensions for seasonality and external variables.
- Autoregression, AR(p): Predicts the current value from a linear combination of its own past values. The parameter p sets the lag order, meaning the number of past observations used. An AR(1) model uses only the immediately preceding value.
- Moving Average, MA(q): Predicts the current value from past forecast errors. The parameter q sets how many past error terms enter the prediction. An MA(1) model uses one past error.
- ARMA(p, q): Combines autoregression and moving average. It works on stationary series that have no trend or seasonality.
- ARIMA(p, d, q): Adds an integration step, differencing, to handle non-stationary data. The parameter d is the number of times the series is differenced to remove a trend and reach stationarity.
- SARIMA(p, d, q)(P, D, Q)m: Extends ARIMA with seasonal terms. The capitalized parameters mirror the non-seasonal ones for the seasonal cycle, and m sets the length of the season. SARIMA needs a large amount of historical data.
- SARIMAX: Adds exogenous variables to SARIMA, bringing external drivers such as price or weather into the forecast.
- Vector Autoregression (VAR): Handles multivariate data, predicting several interrelated series at the same time. Extensions include VARMA and VARMAX.
Statistical Models: Exponential Smoothing
Exponential smoothing reduces noise by giving exponentially decreasing weight to older observations, treating recent data as more relevant. It scales from simple data to data with both trend and seasonality.
- Simple Exponential Smoothing (SES): For data with no trend or seasonality. It weights recent observations more heavily than a plain moving average while preserving detail.
- Double Exponential Smoothing (DES): Applies smoothing twice to capture a trend, using the data smoothing factor α and the trend smoothing factor β.
- Triple Exponential Smoothing (TES): Also called Holt-Winters. It adds a third round of smoothing for seasonality through the seasonal smoothing factor γ, handling level, trend, and seasonality together.
- TBATS: A specialized model (trigonometric, Box-Cox, ARMA, trend, and seasonal components) built for complex or multiple seasonality.
Generalized Autoregressive Conditional Heteroscedasticity
ARIMA and exponential smoothing forecast the level of a series. Volatility models forecast how much it fluctuates.
- GARCH (Generalized Autoregressive Conditional Heteroscedasticity): Forecasts the volatility of a series rather than its level. Heteroscedasticity means the variance of the errors changes over time, which is what GARCH captures. It is central to risk management and derivative pricing in finance, where the speed and degree of price movement matter as much as the price itself.
Deep Learning Architectures
Neural networks learn long-range patterns from large, complex, and often multivariate datasets, and increasingly lead forecasting benchmarks.
- LSTM (Long Short-Term Memory): A recurrent neural network (RNN) designed to learn long-term dependencies across distant points in a sequence. It retains more context than earlier models, which suits complex forecasting, though it needs large training datasets.
- Temporal Fusion Transformer (TFT): An attention-based architecture that produces accurate multi-horizon forecasts while staying interpretable, showing which inputs drove a prediction.
- TSMixer and TiDE: Modern, efficient architectures built for multivariate forecasting that frequently outperform older models in benchmark tests.
- DeepAR and Prophet: Amazon’s DeepAR trains a single model across many related series, while Meta’s open-source Prophet handles business series with strong seasonality and is straightforward to tune.
Choosing among these depends on the data. Statistical models are strong on interpretable, smaller datasets with clear structure. Tree-based machine learning models such as XGBoost, LightGBM, and Random Forest suit non-linear data with many external drivers. Deep learning architectures justify their complexity on large, multivariate problems.
What Are the Components of a Time Series?
A time series breaks down into four components: trend, seasonality, cyclical movement, and irregular or random variation.
Decomposition splits a series into its underlying parts so the structure becomes easier to model. A time series is generally made up of four components.
- Trend: The long-term direction of the data, rising, falling, or flat over an extended period, such as e-commerce sales climbing across several years.
- Seasonality: Predictable patterns that repeat at fixed intervals, such as retail spikes every holiday season or higher daytime electricity use.
- Cyclical: Longer fluctuations with no fixed interval, usually tied to economic or business cycles, such as housing prices rising and falling over multi-year periods.
- Irregular (noise): Random variation left after the other components are removed, often from outliers or unpredictable events.
These components combine in one of two ways. An additive model treats them as a sum, which fits when seasonal swings stay roughly constant in size. A multiplicative model treats them as a product, which fits when seasonal swings grow alongside the trend. After decomposition, the leftover part is the residual, which a sound model leaves as close to random noise as possible.
What Are the Key Characteristics of Time Series Data?
The three key characteristics are autocorrelation, stationarity, and seasonality, which together determine which model fits the data.
Many core concepts of time series modeling are temporal features, aspects of the data derived from time itself. Three of them define how a series behaves and which model suits it.
Autocorrelation
Autocorrelation measures the degree to which current values correspond to past values in the series. High autocorrelation means the current value maps closely to its lagged versions, where a lag is the time gap between two observations.
It can be positive or negative. Positive autocorrelation means high values follow high values and low values follow low values. Negative autocorrelation is the reverse, where the series alternates between high and low.
A repeating relationship across lags points to a recurring pattern, so autocorrelation also helps identify seasonality. The autocorrelation function (ACF) and partial autocorrelation function (PACF) measure these relationships and guide the choice of AR and MA parameters.
Stationarity
A stationary time series has static statistical properties, including a constant mean and variance over time. The data can still fluctuate with seasonality, but no broader trend pulls the level up or down.
A series of yearly average global temperatures would be non-stationary, since climate change drives the mean steadily upward. Stationarity matters because most classical models assume it and cannot forecast reliably without it.
The Augmented Dickey-Fuller (ADF) test and the KPSS test reveal whether a series is stationary. When it is not, differencing transforms the data by replacing each value with its difference from a previous value.
That step removes the trend and isolates patterns such as seasonality and autocorrelation, which leaves the series in a form the model can use.
Seasonality
Seasonality is a recurrent pattern tied to a regular time interval, such as the changing of the seasons. An e-commerce platform might sell more sunglasses in spring and summer and more scarves in fall and winter.
Visualization tools depict seasonality as a repeating fluctuation, frequently shaped like a wave. Spotting it early decides whether a seasonal model such as SARIMA or Holt-Winters is needed in place of a non-seasonal one.
A model blind to seasonality will miss the regular peaks and troughs in the data, which is why detecting it is one of the first steps in choosing an approach.
How Do You Evaluate a Time Series Model?
Time series models are evaluated with error metrics like MAE, MSE, RMSE, and MAPE, while AIC and BIC guide model selection.
Evaluation measures how close a model’s forecasts come to the actual values, using error metrics that weigh mistakes differently.
- Mean Absolute Error (MAE): The average size of the errors in the original units, even-handed across all errors.
- Mean Squared Error (MSE): The average of the squared errors, which penalizes large misses more heavily.
- Root Mean Squared Error (RMSE): The square root of MSE, returning the figure to the original units while keeping the heavier weight on large errors.
- Mean Absolute Percentage Error (MAPE): The average error as a percentage, which makes accuracy comparable across series of different scales.
To choose between competing models, the Akaike Information Criterion (AIC) and Bayesian Information Criterion (BIC) balance how well a model fits against how complex it is, favoring models that explain the data without unnecessary parameters. Evaluation runs on a held-out test period, and time-aware methods such as rolling or expanding window cross-validation respect the ordering of the data.
Use Cases and Examples of Time Series Models
Common examples include ARIMA for stock forecasting, SARIMA for retail demand, LSTM for energy load, and GARCH for financial volatility.
The strength of a time series model shows in how well it matches a specific problem. The examples below pair a common model with the kind of data it handles best.
ARIMA for stock price forecasting: Stock prices move with short-term dependencies and rarely follow a fixed seasonal calendar. ARIMA models those dependencies in a differenced price series, which makes it a natural fit for financial data that has been made stationary.
SARIMA for retail demand: Retail sales repeat on a strong yearly cycle, peaking around the same holidays each year. SARIMA’s seasonal terms capture those recurring spikes, which a plain ARIMA would smooth over and miss.
Holt-Winters for sales with trend and seasonality: A product line that grows steadily and peaks each quarter carries both a trend and a season. Triple exponential smoothing tracks the level, the trend, and the seasonal swing at the same time.
LSTM for energy load prediction. Power demand depends on long and tangled patterns across weather, time of day, and day of week. An LSTM learns those long-term dependencies, which is where it outperforms a classical model.
GARCH for financial volatility: Risk teams care not only about where a price is headed but how sharply it will swing. GARCH forecasts that volatility, which feeds directly into pricing and risk limits.
The lesson across these examples is that model choice follows the data. The structure of the series, the length of the forecast horizon, and the need to explain the result all point toward one approach over another.
What Are the Applications of Time Series Models?
Time series models are applied across finance, supply chain, energy, IoT, and healthcare to forecast demand, prices, and system behavior.
Time series forecasting supports planning and risk decisions across many industries, and the questions it answers shift from one sector to the next.
Finance and Economics
Financial institutions use time series models to forecast stock prices, asset volatility, and interest rates. Economists apply the same methods to project macroeconomic indicators such as GDP, inflation, and unemployment.
These forecasts feed into investment strategy, monetary policy, and risk limits. A volatility model such as GARCH, for instance, shapes how a trading desk prices options and sizes its exposure, which is why accuracy here carries direct financial consequences.
Supply Chain and Retail
Retailers and manufacturers depend on demand forecasting to plan inventory and protect on-shelf availability. Much retail demand repeats on a seasonal cycle, so a model that captures those patterns sets stock levels more accurately than a flat average would.
Better forecasts cut two costs at once: the expense of holding inventory that does not sell, and the lost sales when a popular item runs out. This makes seasonal forecasting a core part of supply chain planning rather than a back-office task.
Energy and Utilities
Utilities forecast electricity load to match generation against demand across the day and the year. Demand follows daily and seasonal rhythms, with peaks tied to working hours, temperature, and weather.
Accurate load forecasting prevents both shortfalls and the cost of generating electricity that no one uses. The task grows harder as solar and wind add variability to supply, since operators have to predict both demand and the output of intermittent sources.
IoT and Manufacturing
Connected sensors produce a continuous stream of time-ordered readings from equipment and environments. Time series models analyze these streams to detect anomalies, meaning readings that depart from the established pattern.
That early detection supports predictive maintenance, which flags a developing fault before it stops a production line. Catching the signal in advance turns an unplanned shutdown into a scheduled repair, which is far less costly.
Healthcare
Hospitals and health systems forecast patient volumes, staffing needs, and the spread of disease from time-stamped health data. A model that anticipates a surge in admissions lets a hospital adjust staffing and bed capacity ahead of demand.
The same approach extends to epidemiology, where forecasting case counts informs the timing of interventions. Being early with these predictions carries clinical value, not just operational savings.
Frequently Asked Questions
1. What is the difference between time series analysis and time series forecasting?
Time series analysis studies the structure of historical data to understand its patterns and components. Forecasting uses that understanding to predict future values. Analysis explains the past, and forecasting projects the future.
2. What is the most commonly used time series model?
ARIMA is the most widely used classical model because it handles trended, non-stationary data and forms the basis for variants like SARIMA. For large, complex datasets, deep learning models such as LSTM are increasingly common.
3. What is the difference between ARIMA and SARIMA?
ARIMA models trend and non-stationarity through differencing. SARIMA adds seasonal terms to capture patterns that repeat at fixed intervals, which makes it the better choice for data with strong seasonality.
4. Why is stationarity important in time series modeling?
Most classical models assume the statistical properties of the data stay constant over time. A non-stationary series has to be transformed, usually through differencing, before these models can produce reliable forecasts.