LearnQuestion bank

How would you evaluate a SKU-level grocery demand forecast across thousands of products with intermittent demand?

ML engineeringTechnicalMedium

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Use rolling-origin backtests across origins, horizons and seasons, not one holdout.
  • Report scale-free WAPE/wMAPE and MASE; avoid MAPE for zero-sales SKUs.
  • Weight errors by revenue or waste cost and score quantiles with pinball loss/service level.
  • Treat stock-out sales as censored lower bounds, not true zeros.
  • Evaluate cold-start SKUs separately against global/hierarchical baselines.

In full

I would evaluate it as a decision problem, not just an accuracy exercise: run rolling-origin backtests across many origins and horizons so I can see whether gains persist across seasons, promotions and holidays rather than in one lucky split. For thousands of intermittent SKUs I would report scale-free metrics such as WAPE/wMAPE and MASE, and avoid MAPE because zero-sales SKUs make it unstable and misleading. I would also weight errors by revenue or waste cost and score probabilistic forecasts with quantile/pinball loss and service-level or newsvendor outcomes, since ordering is driven by the cost of over- and under-stocking, not the mean error. I would treat stock-out days as censored demand, where observed sales are a lower bound, and either model the censoring or flag those SKUs and periods rather than calling them true zeros. Finally, cold-start SKUs would be evaluated separately against global or hierarchical baselines, with their own error and coverage, because they should not be averaged into the mature-SKU result.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • Rolling-origin backtests.
  • Scale-free metrics: WAPE/wMAPE and MASE; avoid MAPE with zero sales.
  • Weight by revenue or waste cost; evaluate quantiles because ordering is a newsvendor-style problem.
  • Handle censored demand from stock-outs; check cold-start SKUs separately.

Common mistakes

  • a random train/test split
  • scoring on sales instead of demand when stock-outs truncate sales.