Build a Fair Late Delivery Rate to Compare Carriers

Last updated: November 29, 2026

Quick Overview

Amazon ships through its own delivery network and several third-party carriers. Define a late delivery metric that compares carriers fairly despite different routes and package mixes.

Amazon
Analytics & Experimentation
Data Scientist
Amazon
November 29, 2026
Data Scientist
Onsite
Analytics & Experimentation
Medium

0

0

0 solved


Amazon ships through its own delivery network and several third-party carriers. Define a late delivery metric that compares carriers fairly despite different routes and package mixes.

Seen in Amazon Transportation and Last Mile data science onsites. The interviewer is checking whether you recognize mix effects and can adjust a raw rate so comparisons reflect carrier performance rather than the hardness of assigned volume.

What the Interviewer Expects
  • Define 'late' against the promise the customer saw
  • Explain why raw late rates are confounded by mix
  • Propose a risk-adjusted metric using expected late rate
  • Handle missing or misleading scan data
  • Describe how the metric would be used in carrier allocation
Key Topics to Cover
Metric definition
Mix adjustment
Observed vs expected
Simpson's paradox
Data quality
How to Approach This
  1. Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
  2. Run experiments long enough to account for novelty effects and weekly seasonality.
  3. Use funnel analysis to identify where users drop off for maximum optimization impact.
  4. Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
  5. Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
  • How would you estimate the expected late rate for each package?
  • What if a carrier marks packages delivered before they arrive?
  • How should weather events be treated?
  • Could this metric be used for carrier payments?
Sharpen Your Skills on Codemia

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

Browse Analytics Questions
Sample Answer
Clarify

'Late' means delivered after the promised date shown at checkout. Carriers get different volume: rural routes, oversized items, and peak overflow may go disproportionately to third-party carriers....

Approach

A raw late rate per carrier is confounded by assignment. Use an observed over expected ratio, where expected comes from a model of lateness given package features but not the carrier....


Submit Your Answer
Markdown supported