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
Statistics & Math
Data Scientist
Amazon
November 29, 2026
Data Scientist
Phone Screen
Statistics & Math
Easy

0

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
indicator variables
linearity of expectation
derangements
inclusion-exclusion
Poisson limit
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 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 Questions
Sample Answer
Clarify

nn packages and nn labels, matched by a uniformly random permutation. Let XX be the number of packages that get their own label. Want E[X]E[X] and P(X=0)P(X = 0)....

Approach

Write X=∑iIiX = \sum_i I_i, where Ii=1I_i = 1 if package ii gets label ii. Linearity of expectation does not need the indicators to be independent. For P(X=0)P(X=0), use inclusion-exclusion over the set of fi...


Submit Your Answer
Markdown supported