Expected Packs to Collect Every Card in an Xbox Collection

Last updated: November 29, 2026

Quick Overview

An Xbox game sells packs that each contain one card chosen uniformly at random from 20 possible cards. What is the expected number of packs a player must open to own all 20, and how variable is that number?

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

0

0

0 solved


An Xbox game sells packs that each contain one card chosen uniformly at random from 20 possible cards. What is the expected number of packs a player must open to own all 20, and how variable is that number?

The coupon collector problem framed around in-game purchases, a topic Microsoft Gaming data scientists care about for fairness and monetization. The interviewer checks the linearity of expectation argument and whether the candidate can discuss variance and what it means for players.

What the Interviewer Expects
  • Split the process into stages by how many distinct cards are owned
  • Model each stage as geometric
  • Use linearity of expectation to sum stages
  • Compute or approximate the variance
  • Connect results to player experience and duplicate protection
Key Topics to Cover
coupon collector
linearity of expectation
geometric distribution
harmonic numbers
Xbox scenario
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
  • Each pack has 5 distinct cards instead of 1. Roughly how many packs now?
  • One card is rare, with probability 1% per pack. What dominates the expectation?
  • The game adds duplicate protection that never repeats a card. What is the expectation then?
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

I would confirm that each pack has one card, that cards are equally likely and independent across packs, and that we want the expected number of packs until all 20 distinct cards are owned....

Approach

After owning ii distinct cards, a new pack gives a new card with probability (20−i)/20(20 - i) / 20. The number of packs in that stage is geometric with mean 20/(20−i)20 / (20 - i). Total packs is the sum over $i ...


Submit Your Answer
Markdown supported