---
title: "Demand Forecasting Methods and Techniques | Zentavor"
description: "Demand forecasting methods compared: ETS, ARIMA, Croston, gradient boosting and neural networks, plus accuracy metrics and how to choose for your data."
canonical: "https://zentavor.com/blog/demand-forecasting-methods"
---

# Demand Forecasting Methods: From Statistics to Machine Learning

ML & Forecasting · 22 November 2026 · 12 min read

How the main demand forecasting methods work, when each one fits, and how to choose by history, series count, horizon and the cost of an error.

Demand forecasting estimates how much of each item customers will buy over a given period, so the business can plan orders, stock, staff and promotions. Which demand forecasting method fits depends on four things: how much history you have, how many series you forecast (item × store quickly runs into tens of thousands), the horizon, and which mistake costs more, forecasting too low or too high. For a few hundred series with steady seasonality, exponential smoothing or ARIMA is usually enough. For tens of thousands of series whose sales move with promotions and prices, gradient boosting on features works better. Neural networks pay off at large volumes and long horizons. Whatever you choose, compare it with a naive forecast first.

The page carries interactive charts that run on synthetic series and compute every number in the browser. Figures from Zentavor projects are marked and link to the page that publishes them.

## Find a starting method

| Your situation | Start with |
| --- | --- |
| Thousands of series, promotions, prices or weather move sales | Gradient boosting on features |
| Thousands of series, no outside drivers | One gradient boosting model across all series; automatic ETS per series is the bar it has to beat |
| Up to a few hundred series, outside drivers matter | Linear regression on features |
| Up to a few hundred series, steady seasonality | Exponential smoothing (ETS) or ARIMA |
| Many items go days without a sale | Add Croston or TSB for those items |
| Planning at several levels (store, region, network) | Add reconciliation (MinT) |

Benchmark every choice against the seasonal naive forecast.

## Types of demand forecasting: qualitative and quantitative methods

Demand forecasting techniques fall into two groups. Qualitative methods rely on judgement: expert opinion, the Delphi method, sales-team estimates and market research. They lead when there is no comparable history, for example a new category or market, and they stay useful for adjusting a forecast to news the data hasn’t seen yet. Quantitative methods learn from data: time series forecasting methods use a series’ own past, and causal or machine learning methods add the drivers of demand such as price, promotions and weather.

This guide covers the quantitative methods, from simple baselines to statistical forecasting and machine learning, because they are what runs every day across thousands of items and stores.

## A baseline to beat

Before choosing a model, you need a point of reference. The naive forecast says tomorrow sells what today sold. For seasonal demand, the seasonal naive forecast says this Saturday sells what last Saturday sold. A moving average of the last few weeks works too.

These forecasts take a minute to build, and on short, stable series they’re hard to beat. If a complex model can’t beat the seasonal naive forecast in a backtest, stop developing it.

A backtest should run the way the model will run in production. Train on data up to a date, forecast the following weeks, move the date forward and repeat. This is a rolling-origin backtest, also called [time series cross-validation](https://otexts.com/fpp3/tscv.html). Splitting a series at random doesn’t work: the model sees the future and reports an accuracy it won’t have later.

## Statistical forecasting methods

### Exponential smoothing: ETS and Holt-Winters

The forecast is a weighted average of past sales in which recent weeks count more than older ones. Holt-Winters forecasting adds a trend and a seasonal pattern. [ETS](https://otexts.com/fpp3/expsmooth.html) is the name for the whole family; forecasting libraries pick the best member for each series automatically.

$$\hat{y}_{t+1} = \alpha y_t + (1 - \alpha)\,\hat{y}_t$$

α is the smoothing weight, between 0 and 1. A sale k days old gets weight α(1 − α)^k, so at α = 0.3 half of the total weight sits on the last two days.

Smoothing fits when you have few series, steady seasonality and at least two full seasonal cycles of history: a few weeks for a weekly pattern, two years for a yearly one. It runs fast, and a planner can see where the number came from. It doesn’t see external factors, so a promotion or a price change passes it by.

Additive Holt-Winters with a season of m periods:

$$\ell_t = \alpha (y_t - s_{t-m}) + (1 - \alpha)(\ell_{t-1} + b_{t-1})$$
$$b_t = \beta (\ell_t - \ell_{t-1}) + (1 - \beta)\, b_{t-1}$$
$$s_t = \gamma (y_t - \ell_t) + (1 - \gamma)\, s_{t-m}$$
$$\hat{y}_{T+h} = \ell_T + h\, b_T + s_{T+h-m\lceil h/m \rceil}$$

The page’s playground compares the naive, seasonal naive, moving average, exponential smoothing and Holt-Winters forecasts on one synthetic series of 18 weeks with the last four held out. The seasonal naive forecast, the baseline, scores WAPE 8.7%; move the parameters to see each method beat it or fall short.

### ARIMA and SARIMA

[ARIMA](https://otexts.com/fpp3/arima.html) describes a series through its own past values and its past forecast errors; SARIMA adds seasonality. Feed it external variables such as price and promotion dates, and it becomes ARIMAX.

ARIMA suits the same problems as ETS and helps most when a series has strong autocorrelation. Each series is tuned on its own, which gets expensive and fragile across tens of thousands of them. Sharp promotion spikes are hard for ARIMA as well.

### Prophet

Prophet splits a series into trend, seasonality and holiday effects, which makes it convenient when holidays drive sales.

### Croston’s method for intermittent demand

Many items don’t sell every day: spare parts, rare sizes. On these series plain smoothing jumps after every sale and sinks between sales, so its forecast depends on the day you look. [Croston’s method](https://otexts.com/fpp3/counts.html) forecasts two things separately, the size of a sale and the interval between sales, and divides one by the other. Its TSB variant updates the chance of a sale every period, so the forecast fades when an item stops selling.

$$\hat{y}_{\text{Croston}} = \frac{\tilde{z}_t}{\tilde{p}_t} \qquad \hat{y}_{\text{TSB}} = \tilde{\pi}_t \cdot \tilde{z}_t$$

z̃ is the smoothed size of a sale, p̃ the smoothed interval between sales, π̃ the smoothed chance of a sale in a period. Croston updates z̃ and p̃ only on days with a sale; TSB updates π̃ every day. When an item stops selling, TSB drifts towards zero, while Croston keeps forecasting sales that will never come.

Use it for the long tail of the range, items that sell a few times a month. To set their stock, order at a quantile of a probabilistic forecast, as shown below.

## Machine learning demand forecasting on features

Besides a series’ own history, a feature-based model gets outside data: the calendar and holidays, prices, promotions, weather, stock levels, sales of similar items. Each day of an item’s sales in a store becomes a row in a table, and the model learns from all the rows at once.

### Linear regression

It’s a good place to start: you see straight away how many units a promotion or a weekend adds. Its effects simply add up unless you add interaction terms by hand. In practice the same discount lifts sales more on a hot day than on a rainy one, and a plain linear model won’t notice.

On the page, a linear model fitted in the browser starts from the day of week alone (WAPE 14.1% on the held-out weeks, 25.6% on promotion days). Adding price, promotion, temperature and a promotion × heat term in that order takes the error through 11.7%, 12.3%, 6.1% and 5.4%; the promotion leaves the overall error almost where it was but halves the error on promotion days, from 24.0% to 12.5%.

### Gradient boosting: LightGBM, XGBoost, CatBoost

Boosting builds an ensemble of decision trees and finds interactions like discount × weather on its own. In the [M5 competition](https://doi.org/10.1016/j.ijforecast.2021.11.013) on Walmart sales (42,840 series), most of the top solutions were built on LightGBM.

One model learns from many series at once, so a slow seller borrows patterns from fast ones and a new item gets a forecast from similar items. Around 24 months of sales history lets the model see the yearly cycle twice. It also needs features: sales over past days and weeks, rolling averages, the calendar, prices, promotions. In our experience the right drivers of demand sharpen the forecast, though a single driver can leave the overall error flat while fixing the days it touches, as the promotion does above.

Trees don’t extend a trend beyond the values they saw in training. For long horizons, model the trend separately, with a feature or by detrending the series first.

Our retail forecasts run on gradient boosting. Our [AI Prediction & Demand Forecasting](https://zentavor.com/solutions/ai-prediction) page publishes what that has delivered: a MAPE of 15–20% at the level of date × store × item, forecasts proven in production at 1,500 stores and 400,000 orders a day, 15–20% fewer out-of-stocks, 22–28% fewer write-offs, and +13% revenue in an A/B test on real revenue. If you are weighing machine learning for your own planning, see [how we build and run these models](https://zentavor.com/services/machine-learning-development).

## Neural networks and deep learning

LSTM, DeepAR, N-BEATS and the Temporal Fusion Transformer learn from thousands of related series at once. Many of them output a probabilistic forecast, a range rather than a single number. In the [M4 competition](https://doi.org/10.1016/j.ijforecast.2019.04.014) (100,000 series), the winner was a hybrid of exponential smoothing and a recurrent neural network.

A neural network is worth considering when you have a great many series with long histories, a long horizon, and planners who need a range. It needs more data and compute than boosting, and its output is harder to explain, so compare it with boosting on the same data first.

Pretrained time series models such as [Chronos](https://arxiv.org/abs/2403.07815) and [TimesFM](https://arxiv.org/abs/2310.10688) were trained on large collections of other series and forecast without training on yours. They’re cheap to try as one more baseline.

## Hierarchical forecasting, horizons and ensembles

Demand is planned at several levels: item in a store, category, region, the whole network. Forecasts built separately at each level disagree: the store forecasts don’t add up to the network forecast. [Reconciliation](https://otexts.com/fpp3/reconciliation.html) fixes this. You can add forecasts up from the bottom, split the top one down by historical shares, or reconcile optimally with MinT, which combines all levels and trusts the less noisy ones more.

$$\tilde{\mathbf{y}} = \mathbf{S}\,(\mathbf{S}^\top \mathbf{W}^{-1} \mathbf{S})^{-1}\,\mathbf{S}^\top \mathbf{W}^{-1}\,\hat{\mathbf{y}}$$

**S** maps the stores to every level, **W** holds how noisy each forecast is. With equal trust (**W** = **I**) every node moves by the same amount. In the page’s example, three stores forecast at 420, 310 and 190 add up to 920 while the network forecast says 980; the historical shares are 45%, 33%, 22%.

The horizon shapes the forecast too. Each planning cadence needs its own number, refreshed on its own schedule:

| Horizon | Forecast | Refreshed | Used for |
| --- | --- | --- | --- |
| Day | Next 14 days | Every morning | Store orders for tomorrow |
| Week | Next 8 weeks | Every Monday | Staff rosters and promotion stock |
| Month | Next 6 months | Every month | Supplier orders on their lead times |
| Quarter | Next 4 quarters | Every quarter | Volume commitments and warehouse space |

It helps when one demand model feeds all four and each team gets a number built for its own decision.

An ensemble combines the forecasts of several models by averaging or weighting them. Different methods make different errors that partly cancel, so a combination is usually steadier than any single model. For an energy company we forecast quarterly spend across the whole organisation with an ensemble of neural and statistical models. That’s spend rather than demand, but the method is the same, and aggregate accuracy is 94%, validated by backtest (see [our cases](https://zentavor.com/cases)).

## Data for demand forecasting: stockouts, promotions and new items

Sales show demand only on days when the item was in stock. When the shelf runs empty, sales stop at whatever was on it, even though more shoppers came in. A model trained on those days as they are learns a demand that’s too low and orders even less next time. So mark the stockout days and restore demand for them.

On the page, eight weeks of demand meet a stock of 45 units a day: demand reaches the stock on 27 of 56 days and sales understate demand by 8.2%. A censored normal fitted per weekday (an EM fit) restores the sold-out days to the demand expected above the stock.

Without a promotion calendar, a model takes a promo peak for seasonality and expects it again next year. Pass promotions, price changes and displays to the model as features.

A new item has no history, so its forecast comes from its category, price, brand and the sales of similar items in their first weeks.

Weather and local events sharpen the forecast where demand depends on them, fresh food and drinks for example. In one of our [projects](https://zentavor.com/cases) the forecast uses more than 120 factors and places replenishment orders itself, with a payback period of 9–12 months.

## Forecast accuracy metrics and the cost of an error

[MAPE](https://otexts.com/fpp3/accuracy.html), the mean absolute percentage error, is easy for the business to read. It breaks on days with zero sales and inflates the error on small volumes. It also punishes forecasting high harder than forecasting low: an under-forecast can’t cost more than 100%, an over-forecast can cost any amount, so a model tuned on MAPE drifts low.

WAPE divides the sum of absolute errors by total sales and holds up better on the long tail. Bias shows whether a model runs high or low on balance. Probabilistic forecasts are scored with the quantile (pinball) loss.

$$\text{MAPE} = \frac{1}{n}\sum_t \frac{|y_t - \hat{y}_t|}{y_t} \qquad \text{WAPE} = \frac{\sum_t |y_t - \hat{y}_t|}{\sum_t y_t}$$
$$\text{Bias} = \frac{\sum_t (\hat{y}_t - y_t)}{\sum_t y_t} \qquad L_q = \max\big(q\,(y - \hat{y}),\ (q - 1)(y - \hat{y})\big)$$

### MAPE vs WAPE on a quiet day

On the page, one week with a quiet day of 4 units sold against a forecast of 6 gives MAPE 11.3% and WAPE 5.4%, bias −0.7%; the quiet day alone makes up 63% of the MAPE. At zero sales on that day MAPE can’t be computed, while WAPE only moves from 5.4% to 6.9%. Halve every forecast and MAPE reaches 46.9%: an under-forecast can’t push it past 100%. Double them and it reaches 112.5%, with no ceiling above.

Measure the error separately for each horizon and level. Tomorrow’s error for an item in a store and next quarter’s error for a category mean different things, and one blended number hides both.

### Ordering at the right quantile: the newsvendor model

Missing low and missing high cost different amounts. Our [AI Prediction page](https://zentavor.com/solutions/ai-prediction) uses a yogurt as its example: a lost sale costs $0.62 in margin, and an unsold pot costs $0.29. Ordering at the median forecast costs more here: $68 a day in misses against $61 at the best order. The classic newsvendor model gives the profitable order: it sits at the quantile 0.62 / (0.62 + 0.29) ≈ 0.68, the level that demand stays below on 68% of days. The dearer a lost sale compared with a write-off, the higher the quantile. This needs a probabilistic forecast: a single number doesn’t tell you where the 68th percentile is.

$$q^* = \frac{c_u}{c_u + c_o} = \frac{0.62}{0.62 + 0.29} \approx 0.68, \qquad Q^* = F^{-1}(q^*)$$

c_u is the cost of one unit short (the lost margin), c_o the cost of one unit over (an unsold pot), F the forecast distribution of demand. With the page’s forecast (median 1,129 pots, 80% range 890–1,368), the profitable order is 1,217 pots: the misses cost $61 a day, against $68 a day when ordering at the median.

A backtest shows accuracy on past data. The effect on money is checked with an A/B test on real revenue, which is how the +13% on our [AI Prediction page](https://zentavor.com/solutions/ai-prediction) was proven.

## Which demand forecasting method when

| Method | Fits when | Doesn’t fit when | Data you need |
| --- | --- | --- | --- |
| Naive and seasonal naive | Always, as the baseline | As the final model when promotions or a trend drive sales | Any history |
| ETS, Holt-Winters | Tens to hundreds of series, steady seasonality | Sales move with promotions and prices | Two full seasonal cycles per series |
| ARIMA, SARIMA, ARIMAX | A few series with strong autocorrelation | Thousands of series, sharp promotion spikes | A regular series without gaps |
| Linear regression on features | A few hundred series where price and promotions matter | Effects interact, unless you add the terms by hand | History plus the drivers as columns |
| Croston, TSB | Many days without a sale | Items that sell every day | History including the zero days |
| Gradient boosting | Thousands of series, promotions, prices, new items | A long horizon with a strong trend, unless the trend is modelled separately | About 24 months of history and the drivers as features |
| Neural networks | Tens of thousands of related series, long horizons, a range is needed | Little data, or the forecast must be simple to explain | Long histories and compute |
| Ensembles and reconciliation | Planning at several levels and horizons | One series, one horizon | Forecasts from several models; for reconciliation, forecasts at every level |

## Cheatsheet: how to choose a demand forecasting method

1. Compute the seasonal naive forecast and its error. Every model has to beat it.
2. Count your series. Up to a few hundred, start with ETS or ARIMA; with thousands, start with gradient boosting.
3. Check whether promotions, prices and weather move sales. If they do, you need a feature-based model.
4. Forecast the items with intermittent demand with Croston, TSB or a probabilistic model.
5. If you plan at several levels, reconcile the forecasts.
6. Price an under-forecast and an over-forecast, and order at the quantile they imply.
7. Check the revenue effect with an A/B test. A backtest only shows accuracy.

## FAQ

### What is demand forecasting?

Demand forecasting estimates how much of each item customers will buy over a given period. Businesses use it to plan orders, stock, staff and promotions. A good forecast is built from sales history and drivers such as price, promotions and the calendar, and checked against a simple baseline such as the seasonal naive forecast.

### What are the main types of demand forecasting?

There are two groups. Qualitative methods use expert judgement, the Delphi method or market research and suit launches with no comparable history, such as a new category or market. Quantitative methods use data: time series methods such as exponential smoothing and ARIMA, and machine learning methods such as gradient boosting that add price, promotions and weather.

### Which demand forecasting method is the most accurate?

The one that beats the naive forecast by the widest margin on your own data. In retail with promotions and thousands of items, that is most often gradient boosting on features. On short series with steady seasonality, ETS holds its own against complex models.

### How much sales history do you need for a forecast?

About 24 months, so the model sees the yearly cycle twice. New items get forecasts from models that learn on similar items.

### Is machine learning better than statistical forecasting methods?

Machine learning takes outside factors into account and learns from all series at once. On small datasets statistical methods do just as well and are simpler to run.

### How do you forecast demand for a new product?

From its category, price, brand and the sales of similar items. After a few weeks of sales, the forecast leans more on the item’s own history.

### How do you account for stockouts in sales history?

Mark the days the item was out of stock and restore demand for them, for example with a censored model. Otherwise the model learns a demand that is too low.

### Which forecast accuracy metric should you use?

WAPE for the long tail, MAPE for business reports, and bias to catch a model that runs high or low. Report each metric per horizon.

Further reading: Rob J Hyndman and George Athanasopoulos, [Forecasting: Principles and Practice](https://otexts.com/fpp3/) (3rd edition), free online.

Which demand forecasting method fits your data? Send us your sales history and describe your planning cycle, and we’ll scope a forecasting model and its rollout: [contact us](https://zentavor.com/contact), or [test a forecast on your own data](https://zentavor.com/services/ai-proof-of-concept).
