Expected Repeat Partners When Reshuffling Coffee Chat Pairings

Last updated: November 29, 2026

Quick Overview

A Meta team of 10 is paired up for weekly coffee chats, and next week everyone is re-paired uniformly at random. What is the expected number of pairs that repeat, and what is the probability no pair repeats?

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Hard

0

0

0 solved


A Meta team of 10 is paired up for weekly coffee chats, and next week everyone is re-paired uniformly at random. What is the expected number of pairs that repeat, and what is the probability no pair repeats?

This question models random matching features at Meta, such as pairing users for chats or reviewers for content, and tests counting perfect matchings plus inclusion-exclusion. The interviewer expects linearity of expectation for the mean, an exact inclusion-exclusion sum for the probability, and a Poisson approximation check.

What the Interviewer Expects
  • Counts perfect matchings of 2n people as (2n-1)!!
  • Gets P(a given old pair repeats) = 1/(2n-1)
  • Computes expected repeats n/(2n-1) = 5/9
  • Writes the inclusion-exclusion sum for no repeats and evaluates about 0.576
  • Compares to the e^(-1/2) approximation and verifies by simulation
Key Topics to Cover
Perfect matchings
Double factorial
Inclusion-exclusion
Linearity of expectation
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
  • How would you generate a pairing that guarantees no repeats?
  • What is the variance of the number of repeated pairs?
  • How does the answer behave as the team grows large?
  • What if pairs are formed only within sub-teams?
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

2n=102n=10 people, last week's pairing is fixed with n=5n=5 pairs, and the new pairing is uniform over all perfect matchings. A repeat is a pair present in both weeks....

Approach

Number of perfect matchings of 2m2m people: (2m−1)!!=(2m−1)(2m−3)⋯1(2m-1)!!=(2m-1)(2m-3)\cdots1, since person 1 has 2m−12m-1 choices of partner and the rest recurse. For the mean, use one indicator per old pair. For no repe...


Submit Your Answer
Markdown supported