Evaluate a Delivery Time Promise Model With Quantile Loss
Last updated: November 29, 2026
Quick Overview
Amazon shows customers a delivery date that should be met about 90 percent of the time. Explain how to train and evaluate a model that predicts the 90th percentile of delivery time, and implement the loss and coverage checks.
Amazon
November 29, 20260
0
0 solved
Amazon shows customers a delivery date that should be met about 90 percent of the time. Explain how to train and evaluate a model that predicts the 90th percentile of delivery time, and implement the loss and coverage checks.
Delivery promise accuracy is central to Amazon's retail experience, and interviewers for last-mile and fulfillment ML teams like to see whether candidates can evaluate a quantile prediction rather than a mean. They check pinball loss, calibration of coverage, and segment-level analysis.
What the Interviewer Expects
- Explains why mean squared error is wrong for a promise target
- Defines and implements pinball loss correctly
- Measures empirical coverage against the 90 percent target
- Balances coverage against sharpness (how late the promise is)
- Slices coverage by region, carrier and day of week
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you produce several quantiles without them crossing?
- How do you trade off coverage and conversion from showing earlier dates?
- How would you evaluate if many packages are still in transit at evaluation time?
- What would you do if coverage is 90 percent overall but 70 percent in rural ZIP codes?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Clarify the target (hours from order to delivery), the quantile (0.9), whether the promise is shown at checkout, and the cost of a missed promise versus a late-looking promise that lowers conversion....
Approach
Train with the pinball (quantile) loss, which is minimized by the true q-th conditional quantile. Evaluate on a time-based holdout with three checks: average pinball loss for comparing models, empiric...