Forecast Demand for Slow-Moving Products With Mostly Zero Weeks

Last updated: November 29, 2026

Quick Overview

Many products sell zero units most weeks and occasionally a few. How would you forecast their weekly demand for inventory planning, and how would you evaluate those forecasts?

Amazon
Machine Learning
Data Scientist
Amazon
November 29, 2026
Data Scientist
Onsite
Machine Learning
Medium

0

0

0 solved


Many products sell zero units most weeks and occasionally a few. How would you forecast their weekly demand for inventory planning, and how would you evaluate those forecasts?

Amazon's long-tail catalog creates intermittent demand that breaks standard forecasting metrics and models. Forecasting scientists check whether you know specialized methods such as Croston's, probabilistic forecasting, and why MAPE is unusable here.

What the Interviewer Expects
  • Recognize intermittent demand and its properties
  • Explain why MAPE and plain MSE are poor metrics
  • Propose Croston-style or probabilistic count models
  • Recommend quantile forecasts tied to inventory decisions
  • Use pooling across similar products
Key Topics to Cover
Intermittent demand
Croston's method
Quantile loss
Negative binomial
Hierarchical pooling
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you forecast a brand new product with no history?
  • How do you handle a stockout week that recorded zero sales?
  • How would you choose the quantile used for inventory?
  • When is a global deep model better than per-item models?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify
  • What decision uses the forecast? Usually a reorder point, which needs an upper quantile of lead-time demand, not just a mean.
  • Is a zero a true zero or a stockout (censored demand)? Out-of-stock we...
Approach

Baseline: Croston's method. Separate the series into nonzero demand sizes ztz_t and intervals between nonzero weeks qtq_t, smooth each with exponential smoothing:


Submit Your Answer
Markdown supported