Library · Demand and stock

ADIDA: aggregate, forecast, disaggregate

ADIDA removes zeros by temporal aggregation: months become quarters, and a series that was mostly zeros becomes one that can be smoothed. The forecast is then divided back into the original periods.

By , published

Definition

The aggregate-disaggregate intermittent demand approach was described by Nikolopoulos and co-authors in 2011. It has three steps: sum the series into non-overlapping buckets of k periods, counted back from the most recent period; forecast the aggregated series with a simple method such as exponential smoothing; divide the forecast by k to return to the original frequency.

forecast per period = SES( bucket sums of size k ) ÷ k

The authors suggest setting k to the lead time plus one review period, because the stock decision depends on the demand over that horizon and not on each period separately.

Worked example

import numpy as np

def ses(x, alpha=0.2):
    level = x[0]
    for v in x[1:]:
        level += alpha * (v - level)
    return level

def adida(y, k, alpha=0.2):
    y = np.asarray(y, float)
    n = len(y) // k * k
    buckets = y[len(y) - n:].reshape(-1, k).sum(axis=1)     # drop the oldest periods if needed
    return ses(buckets, alpha) / k, buckets

rng = np.random.default_rng(6)
y = rng.binomial(1, 0.25, 48) * rng.integers(1, 6, 48)
print(f"monthly series: {np.mean(y == 0):.0%} of periods are zero")
for k in (1, 3, 6):
    f, b = adida(y, k)
    print(f"bucket of {k} months: {np.mean(b == 0):4.0%} zero buckets, {len(b):2d} buckets, forecast per month = {f:.3f}")
print(f"mean of the history = {y.mean():.3f}")

Output, produced by running the code above when this page was built:

monthly series: 69% of periods are zero
bucket of 1 months:  69% zero buckets, 48 buckets, forecast per month = 1.403
bucket of 3 months:  25% zero buckets, 16 buckets, forecast per month = 1.182
bucket of 6 months:   0% zero buckets,  8 buckets, forecast per month = 0.961
mean of the history = 0.896

As the bucket grows the zeros disappear, and so do the observations: with buckets of six months, four years of history leave eight points to smooth.

Where it misleads

  • The gain in regularity is paid in sample size. On short histories, a large bucket leaves too few points for any method.
  • Dividing the forecast evenly assumes that demand has no pattern inside a bucket. With a seasonal pattern the split must use seasonal weights.
  • The forecast changes with the bucket size and with the period where the buckets start. The size should be fixed from the lead time before looking at the errors, not tuned on the test window.

Aggregation is a change of data, so it combines with any method: Croston or SBA can be applied to the buckets when zeros remain. Evaluating over the lead time instead of per period serves the same purpose on the scoring side.

In our work

ADIDA is one of the eight methods of our preregistered study on four public datasets, with the bucket size fixed on development data before the test windows were read.

References

  1. Nikolopoulos, K., Syntetos, A. A., Boylan, J. E., Petropoulos, F., Assimakopoulos, V. (2011). An aggregate-disaggregate intermittent demand approach (ADIDA) to forecasting: an empirical proposition and analysis. Journal of the Operational Research Society, 62(3), 544-554. doi:10.1057/jors.2010.32
  2. Petropoulos, F., Kourentzes, N. (2015). Forecast combinations for intermittent demand. Journal of the Operational Research Society, 66(6), 914-924. doi:10.1057/jors.2014.62
  3. Chadeffaud, M. (2026). Evaluating intermittent demand forecasts: a preregistered study on four public datasets. Zenodo, preprint. doi:10.5281/zenodo.24248568

Have a question like this one on your own data? Tell us what you need in a few lines.

Send us the brief

Related pages

  • Croston's methodCroston's method splits an intermittent series in two: how much is ordered when there is an order, and how long between orders. Each is smoothed separately and the forecast is their ratio. The ratio is biased upward.
  • Simple exponential smoothing on intermittent demandSimple exponential smoothing follows the level of a series with one constant. On intermittent demand its average is right and its timing is wrong: the forecast peaks just after each sale, when the reorder is placed.
  • Lead-time demand and its bootstrapWhat a reorder point must cover is the total demand between placing an order and receiving it. Its distribution can be estimated by resampling the history, without assuming a shape.
All library pages