Expected Correct Matches When Statements Are Mailed in Random Envelopes

Last updated: November 29, 2026

Quick Overview

A print vendor mix-up puts n customer statements into n addressed envelopes completely at random. What is the expected number of customers who receive their own statement, and what is the probability that nobody does as n grows?

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

0

0

0 solved


A print vendor mix-up puts n customer statements into n addressed envelopes completely at random. What is the expected number of customers who receive their own statement, and what is the probability that nobody does as n grows?

A classic matching problem framed around statement mailings, used in Capital One style probability screens to see whether candidates reach for linearity of expectation instead of brute-force counting. Strong answers also handle the derangement probability and its limit.

What the Interviewer Expects
  • Define indicator variables for each customer
  • Use linearity of expectation to get exactly 1
  • Count derangements via inclusion-exclusion
  • Show the limit $1/e$ and check a small case
  • Compute the variance and note the Poisson(1) limit
Key Topics to Cover
linearity of expectation
indicator variables
derangements
inclusion-exclusion
Poisson approximation
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 matches?
  • What is the probability exactly one customer gets their own statement?
  • How many derangements of 4 statements are there?
  • If envelopes are only shuffled within ZIP code batches, how does the answer change?
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

There are nn statements and nn envelopes, and the assignment is a uniformly random permutation. Let XX be the number of fixed points (customers who get their own statement). I want E[X]E[X] and $P(X=...

Approach

Let Ii=1I_i=1 if customer ii gets their own statement. P(Ii=1)=1/nP(I_i=1)=1/n by symmetry. Linearity gives the mean without worrying about dependence between indicators. For P(X=0)P(X=0), use inclusion-exclusion o...


Submit Your Answer
Markdown supported