Expected Customers Who Receive Their Own Shuffled Return Label
Last updated: November 29, 2026
Quick Overview
At a returns station, n prepaid return labels are printed and attached to n packages in random order. How many customers do you expect to get their correct label, and what is the probability nobody does?
Amazon
November 29, 20260
0
0 solved
At a returns station, n prepaid return labels are printed and attached to n packages in random order. How many customers do you expect to get their correct label, and what is the probability nobody does?
A matching problem in the style of an Amazon phone screen, often used as a quick test of indicator variables. The interviewer wants linearity of expectation and an intuition for why the answer does not depend on n.
What the Interviewer Expects
- Defines indicator variables for each package
- Uses linearity of expectation without needing independence
- Gets an expected value of exactly 1
- Recalls or derives that P(no match) approaches $1/e$
- Verifies with a small case or simulation
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 number of correct labels?
- Compute P(no correct label) exactly for n = 4.
- Why does linearity hold even though the indicators are dependent?
- How would you detect a systematic label mix-up rather than random shuffling?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
packages and labels, matched by a uniformly random permutation. Let be the number of packages that get their own label. Want and ....
Approach
Write , where if package gets label . Linearity of expectation does not need the indicators to be independent. For , use inclusion-exclusion over the set of fi...