Time Series Forecasting Basics: A Guide for Demand Planners
Learn how time series forecasting works in demand planning, including the 4 components, standard methods like ETS and ARIMA, and common modeling pitfalls.
Time Series Forecasting Basics: A Guide for Demand Planners
Time series forecasting starts with numbers recorded at regular intervals: daily shipments, weekly sales, or monthly inventory levels. If you've looked at a historical sales chart to estimate where demand goes next, you've done basic time series analysis.
Raw data can mislead you. A spike in sales might be a lasting trend, a seasonal holiday rush, or random noise that won't repeat. Misreading those signals produces the two main failures in demand planning: excess inventory or stockouts.
You don't need a PhD in statistics to build a reliable forecast, as long as you understand what drives the patterns in your historical data. This guide breaks down the components of time series forecasting, compares common methods, and explains how to choose an approach for your business.
What is Time Series Forecasting?
Time series forecasting uses historical observations to predict future values. Causal models look at why demand changed, such as sales rising after a price cut. Pure time series forecasting looks only at what happened in the past and projects that pattern forward.
Time series models depend on one assumption: past demand contains enough recurring structure to guide future estimates, even when history doesn't repeat identically.
Components of a Time Series
Before fixing a forecast, you need to separate what is happening inside the numbers. A time series combines four layers, and splitting them apart is called decomposition.
1. Trend
Trend is the long-term direction of a series, showing whether demand is growing, declining, or staying flat.
- Example: Steady 5% year-over-year growth in a core SKU.
- Practitioner Note: Don't mistake a short-term spike for a long-term trend. Trends play out across many periods.
2. Seasonality
Seasonality covers patterns that repeat over a fixed period, such as a week, a month, a quarter, or a year.
- Example: Ice cream sales peaking in July, or B2B software sales spiking at the end of Q4.
- Practitioner Note: Seasonality is predictable. If demand jumps every December, your forecasting model should anticipate it.
3. Cyclicality
Cycles are longer-term waves without a fixed period, usually tied to the wider economy.
- Example: A recession cutting demand for luxury goods for 18 months.
- Practitioner Note: Cycles are harder to predict from internal sales data alone than seasonal swings are.
4. Noise (Residuals)
Noise is the random variation left over after you account for trend, seasonality, and cycles.
- Example: A blizzard delaying shipments, or a competitor running a surprise flash sale.
- Practitioner Note: You can't forecast noise. Fitting a model to random variation is a common mistake called overfitting. It causes forecast accuracy to drop sharply.
Visualizing Your Time Series Data
Plot your data before you run any algorithm.
A simple line chart catches obvious issues quickly. You can spot large gaps from stockouts (covered in the stockouts section below) and see whether a clear seasonal pattern repeats each year.
A common diagnostic tool is Seasonal Decomposition, which splits your chart into three separate graphs shown below the raw series:
- Observed: The raw historical data.
- Trend: The smooth underlying direction.
- Seasonal: The repeating pattern.
- Residual: The leftover noise.
If the residual plot looks like a random scatter of dots, your model captured the main signals. Patterns left in the residuals mean the model missed something in the series.
Checking for Stationarity
Data scientists often check a series for stationarity. A stationary time series has statistical properties, specifically its mean and variance, that stay constant over time. On a chart, it looks like a flat band with irregular wiggles around a steady level.
Most sales data is non-stationary because it trends up or down and includes seasonal swings.
Stationarity determines how you prepare data for different forecasting methods:
- Some models, such as ARIMA, require stationary data first. Planners usually get there through differencing, which subtracts yesterday's value from today's.
- Other models, such as Holt-Winters, handle non-stationary series directly.
Modern forecasting tools often handle this transformation in the background. Knowing why a model struggles on trending data still helps when a forecast goes wrong.
Common Forecasting Methods Explained
Planners have dozens of forecasting algorithms available. The methods below handle most day-to-day time series forecasting work.
1. Naive Method
The simplest forecast assumes tomorrow will equal today.
- Use Case: A baseline benchmark. If a complex AI model can't beat the naive forecast, something is wrong with the model.
2. Moving Average (MA)
A moving average takes the mean of the last n periods.
- Use Case: Stable products with no trend or seasonality. It smooths out random noise. When demand starts trending, it lags behind.
3. Exponential Smoothing (ETS / Holt-Winters)
Demand planners rely heavily on exponential smoothing. It weights historical observations so recent periods count more than older ones. Holt-Winters extends the method to handle trend and seasonality.
- Use Case: Seasonal products such as retail items or seasonal food and beverage lines. It is dependable, easy to explain, and fast.
- Learn more: Read our guide to exponential smoothing.
4. ARIMA (AutoRegressive Integrated Moving Average)
ARIMA is a more complex statistical method built around autocorrelation, looking at how today's value correlates with values from 1, 2, or 12 periods ago.
- Use Case: Data with complex patterns that aren't strictly seasonal. ARIMA requires more historical data than ETS to stay stable.
5. Machine Learning (ML)
Models like XGBoost or LSTM ingest external variables (price, weather, promotions) alongside the time series history.
- Use Case: Products where sales history alone leaves out major demand drivers. During a promotion, past volume points to ordinary sales. An ML model uses the price drop to project a sales spike.
How to Choose the Right Method
No single forecasting method fits every SKU. The right choice depends on the shape and length of your historical data.
| Data profile | Method to consider | | :--- | :--- | | Short history or new product | Moving Average or like-item modeling | | Strong seasonality | Holt-Winters (ETS) | | Complex trends and seasonality | ARIMA or Prophet | | External drivers (price, ads) | Machine Learning or Regression |
For a fuller comparison of these approaches, read our guide on forecasting methods.
Common Pitfalls
Overfitting
Overfitting happens when you push a model to memorize past data so closely that it fails on new periods. It's like studying for an exam by memorizing the exact answers to a practice test instead of learning the material.
- The Fix: Test your model on held-out data that it didn't see during fitting.
Ignoring Stockouts in Demand History
Sales history records what you sold. It misses orders customers wanted to place during a stockout. When an item is out of stock for a week, recorded sales drop to zero even when demand stays high.
- The Fix: Correct your historical data for stockouts before feeding it into a time series model. Otherwise, the model learns that demand falls to zero every few months. It then forecasts a drop right when you need stock most.
How DemandPlan Approaches It
DemandPlan builds forecasts from ERP sales history.
- Statistical Baseline: DemandPlan picks models item by item every month. It tests Holt-Winters, ETS, ARIMA, Croston, and other statistical and machine-learning models on each item's own sales history and forecasts with the best-testing models. When an item has too little history, it applies a simple seasonal forecast.
- AdaptiveHierarchy™: Define your own hierarchy to group, view, and edit forecasts at any level. Edits at a higher level split proportionally across everything beneath it, and totals add up.
- Human Adjustment: Planners log demand events like promotions, attach notes, and assign action items.
Conclusion
Separating trend, seasonality, and noise in your historical data gives you a clear basis for demand planning.
Start simple. Visualize your data, build a baseline forecast with a method like Holt-Winters, and add more complex models only where they add value.
Understanding how the forecasting models work is step one. Measuring your results is step two. Read our guide on forecast accuracy metrics to see how to keep score.
If your team has outgrown spreadsheets, book a demo to see how DemandPlan builds monthly forecasts and compares them with actual sales.
Ready to modernize your demand planning?
Demand planning and sales forecasting software for planning teams that have outgrown spreadsheets. Build monthly statistical forecasts. Edit at any level.
Related Articles
Bottom-Up vs Top-Down Forecasting: Which Approach Wins?
How bottom-up vs top-down forecasting work, where each breaks down, and how middle-out forecasting and reconciliation close the gap in S&OP.
Demand Forecasting Methods: The Complete Practitioner's Guide
Compare demand forecasting methods from moving averages and exponential smoothing to regression and machine learning, and see how to pick one for your data.
Forecast Accuracy Metrics: MAPE, WAPE, Bias Explained
How to calculate and use forecast accuracy metrics including MAPE, WAPE, and Forecast Bias, with worked examples, MAE, RMSE, and target benchmarks.