Expected Orders Until Every Delivery Zone Sees One

Last updated: November 29, 2026

Quick Overview

A new DoorDash city launch has 5 delivery zones, and each incoming order is equally likely to come from any zone. What is the expected number of orders until every zone has received at least one? Generalize to k zones.

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

0

0

0 solved


A new DoorDash city launch has 5 delivery zones, and each incoming order is equally likely to come from any zone. What is the expected number of orders until every zone has received at least one? Generalize to k zones.

DoorDash data science screens include short probability questions framed around its marketplace. This one is the coupon collector problem, and the interviewer checks whether you break it into geometric stages and can verify by simulation.

What the Interviewer Expects
  • Recognize the coupon collector structure
  • Break waiting time into stages with geometric distributions
  • Derive the closed form k times the harmonic number
  • Compute the k = 5 answer correctly
  • Verify with a quick simulation and discuss unequal zone probabilities
Key Topics to Cover
coupon collector
geometric distribution
linearity of expectation
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 one zone gets 40% of orders?
  • How many orders until each zone has at least two?
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

Assume orders are independent and each zone has probability 1/k1/k. We want E[T]E[T] where TT is the order count when the last zone gets its first order....

Approach

Split TT into stages. After ii zones have been seen, the next order is from a new zone with probability k−ik\frac{k-i}{k}. The wait for that is geometric with mean kk−i\frac{k}{k-i}. By linearity of exp...


Submit Your Answer
Markdown supported