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
| CV² below 0.49 | CV² 0.49 or above | |
|---|---|---|
| ADI below 1.32 | Smooth | Erratic |
| ADI 1.32 or above | Intermittent | Lumpy |
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.
Service: forecasting and statistical studies Research note: intermittent demand forecasting, measured
References
- 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
- 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
- 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