Library · Demand and stock

Demand classification: ADI and CV²

Two numbers describe a demand series: how often it sells (ADI) and how much the order sizes vary (CV²). The cut-offs 1.32 and 0.49 split a catalogue into smooth, erratic, intermittent and lumpy items.

By , published

Definition

The average demand interval (ADI) is the number of periods divided by the number of periods with a demand. The squared coefficient of variation (CV²) is computed on the non-zero demand sizes only.

ADI = N ÷ Nnon-zero    CV² = ( standard deviation of sizes ÷ mean of sizes )2

The four classes of Syntetos, Boylan and Croston (2005)
CV² below 0.49CV² 0.49 or above
ADI below 1.32SmoothErratic
ADI 1.32 or aboveIntermittentLumpy

The cut-offs were not chosen by eye. They are the values at which the theoretical mean squared error of Croston's method equals that of SBA: Croston is expected to do better in the smooth quadrant only, SBA in the three others.

Worked example

Four simulated items, one per class. The function classify comes from intermittent-eval, our open-source package.

import numpy as np
from intermittent_eval import classify

rng = np.random.default_rng(12)
n = 60
items = {
    "sells every month, steady sizes":   rng.integers(9, 12, n),
    "sells every month, wild sizes":     rng.geometric(0.08, n),
    "sells rarely, steady sizes":        rng.binomial(1, 0.3, n) * rng.integers(4, 6, n),
    "sells rarely, wild sizes":          rng.binomial(1, 0.3, n) * rng.geometric(0.08, n),
}
for name, y in items.items():
    adi, cv2, cls = classify(y)
    print(f"{name:34s} ADI = {adi:4.2f}   CV2 = {cv2:4.2f}   {cls}")

y = items["sells rarely, steady sizes"]
print("same item on its first 12, 24, 60 months:", [classify(y[:k])[2] for k in (12, 24, 60)],
      [round(classify(y[:k])[0], 2) for k in (12, 24, 60)])

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

sells every month, steady sizes    ADI = 1.00   CV2 = 0.01   Smooth
sells every month, wild sizes      ADI = 1.00   CV2 = 0.72   Erratic
sells rarely, steady sizes         ADI = 3.16   CV2 = 0.01   Intermittent
sells rarely, wild sizes           ADI = 2.50   CV2 = 0.66   Lumpy
same item on its first 12, 24, 60 months: ['Intermittent', 'Intermittent', 'Intermittent'] [2.4, 2.67, 3.16]

The last line classifies one item on histories of three lengths and prints the ADI each time. The class is stable here, but the ADI moves as the history grows, because on twelve months it rests on a few sales. An item closer to 1.32 would change class along the way.

Where it misleads

  • The scheme compares two methods, Croston and SBA, on one criterion. It says nothing about TSB, temporal aggregation, or a model trained across series. Using it as a general method selector goes beyond what the paper established.
  • ADI and CV² are estimates. An item near a cut-off changes class from one month to the next.
  • CV² needs at least two demands. Items with one sale, or none, fall outside the scheme and are often the majority of a spare-parts catalogue.
  • Definitions vary: some tools compute CV² on all periods, zeros included, which gives very different values. State which one is used.

In our work

We report every result by class as well as overall, because an average over a catalogue hides the classes. The classification is computed on the training part of each series only.

References

  1. Syntetos, A. A., Boylan, J. E., Croston, J. D. (2005). On the categorization of demand patterns. Journal of the Operational Research Society, 56(5), 495-503. doi:10.1057/palgrave.jors.2601841
  2. Syntetos, A. A., Boylan, J. E. (2005). The accuracy of intermittent demand estimates. International Journal of Forecasting, 21(2), 303-314. doi:10.1016/j.ijforecast.2004.10.001
  3. Kostenko, A. V., Hyndman, R. J. (2006). A note on the categorization of demand patterns. Journal of the Operational Research Society, 57(10), 1256-1257. doi:10.1057/palgrave.jors.2602211

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.
  • SBA: the Syntetos-Boylan approximationThe Syntetos-Boylan approximation is Croston's method with one correction factor. It removes most of the upward bias of the original, and slightly over-corrects when demand occurs in almost every period.
  • The zero forecast as a baselineA forecast of zero for every item and every period is useless for stock and has the best absolute error on most intermittent series. Including it in a comparison shows at once whether the error measure can be trusted.
All library pages