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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample Answer
Clarify
Assume orders are independent and each zone has probability . We want where is the order count when the last zone gets its first order....
Approach
Split into stages. After zones have been seen, the next order is from a new zone with probability . The wait for that is geometric with mean . By linearity of exp...