Problem
A retail chain loses revenue when an item that should sell is not on the shelf: delivered but never put out, "virtual stock" (the system shows stock, the store has none), or a missing or wrong price tag. Staff can fix all three if told what to check. The only inputs are daily sales and stock per item and store. For slow items a run of zero-sales days is normal, so the alert must depend on how this item usually sells in this store.
Example from the article: an item that had earlier 3-day gaps in sales raised no alert; after 6 days without sales the CUSUM statistic crossed the threshold.
Solution in brief
For each item and store, model daily baseline sales as Poisson (or zero-inflated Poisson for bursty items). Run a one-sided CUSUM that tests "sales fell to zero" against "sales at the natural level", with the threshold set by parametric bootstrap. Keep an alert only if the drop is deeper than in analog stores, which removes seasonal and price effects.
Questions this case answers
- How to detect that a count-valued series has stopped, per entity, when the usual rate varies by orders of magnitude and long runs of zeros are normal for some entities
- How to separate a local failure from a demand shift shared by many entities, using a peer group, when only aggregate series are available and compute must stay cheap
- How to find products that are missing from the shelf or wrongly priced using only daily sales and stock data?
- How to tell a real sales stop from an ordinary run of zero-sales days for a slow-moving item?
Tools and methods
- CUSUM on a log-likelihood ratio — detects the drop from the natural level to zero.
- Poisson and zero-inflated Poisson (ZIP) — models daily unit sales.
- Parametric bootstrap — sets the threshold from a false-alarm rate.
- Analog-store comparison — filters out demand shifts shared by many stores.
Google or a one-time email code. No password.
