Expected Orders Until Every Delivery Zone Has Been Served

Last updated: November 29, 2026

Quick Overview

A new Amazon delivery station serves n zones, and each incoming order lands in a uniformly random zone. How many orders do you expect before every zone has received at least one, and how spread out is that number?

Amazon
Statistics & Math
Data Scientist
Amazon
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


A new Amazon delivery station serves n zones, and each incoming order lands in a uniformly random zone. How many orders do you expect before every zone has received at least one, and how spread out is that number?

A coupon-collector question in the style an Amazon interviewer uses to see whether you can decompose a waiting time into stages. It often comes up for Last Mile or Amazon Logistics analytics roles, where launch readiness depends on every route seeing real volume.

What the Interviewer Expects
  • Breaks the wait into stages with geometric waiting times
  • Derives $n H_n$ and approximates it as $n \ln n$
  • Gives a concrete number for a small n
  • Discusses variance or at least that the tail is long
  • Validates the formula with a quick simulation
  • Questions the uniform-zone assumption
Key Topics to Cover
coupon collector
geometric distribution
linearity of expectation
harmonic numbers
simulation
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What is the variance of the waiting time?
  • How does the answer change if zones receive orders with unequal probabilities?
  • How many orders until each zone has at least two orders?
  • How would you use this to decide when a station's routing data is mature enough?
Sharpen Your Skills on Codemia

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

Browse Statistics Questions
Sample Answer
Clarify

Orders arrive one at a time, each independently assigned to one of nn zones with probability 1/n1/n. Let TT be the number of orders until all zones are covered. I want E[T]E[T] and a sense of its varia...

Approach

Split TT into stages. Stage kk starts once k−1k-1 distinct zones have been seen and ends when a new zone appears. In stage kk each order is new with probability n−k+1n\frac{n-k+1}{n}, so the stage lengt...


Submit Your Answer
Markdown supported