Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

Question

Two users each receive ten distinct top videos selected from the same pool of 200200 videos. Calculate the probability that their lists have no overlap, and explain the assumptions needed for the calculation.

Derive the uniform-random benchmark: each user's ten-video set is selected uniformly without replacement from the pool, and the two selections are independent. Explain whether counts alone determine the answer for personalized rankings.

Hint 1

Fix the first user's ten videos. The question becomes how likely it is that all ten of the second user's videos come from the rest of the pool.

Hint 2

Count the ten-video sets that avoid the first list and divide by the number of all possible ten-video sets.

How to Answer in the Interview

A five-to-ten-minute onsite question with two parts. The count is standard. The points split between doing the without-replacement arithmetic correctly and saying plainly that a random model is only a baseline for a recommender.

Clarify first:

  • "Are the ten videos in one list distinct?" Yes, so the second list is drawn without replacement. Allowing repeats changes the answer to (19/20)10≈0.599(19/20)^{10}\approx0.599.
  • "Does order within a top-ten list matter for overlap?" No. Overlap only asks whether a video appears in both lists, so you can work with unordered sets.
  • "Should I assume random, independent lists?" The prompt asks for that benchmark first. Real recommendations are neither random nor independent, which is the second part of the answer.

TIP

How I'd say it in the interview: "Fix user one's ten videos. That leaves 190190 safe videos. Under the random benchmark, user two's set is equally likely to be any of the (20010)\binom{200}{10} sets, and (19010)\binom{190}{10} of them avoid the first list, so no overlap has probability about 0.5910.591. For real personalized rankings the counts don't determine this. Popular videos and similar users push overlap up, so I'd measure it from logs."

Then walk through:

  1. State the benchmark: uniform sets, independent across users.
  2. Condition on the first user's set and name the 190190 safe videos.
  3. Take the ratio of favorable to total sets and get 0.59150.5915.
  4. Cross-check with the draw-by-draw product. Most candidates lose points here by writing (190/200)10(190/200)^{10}, which keeps the fraction fixed as if videos were replaced.
  5. Answer the second part: counts alone do not determine overlap for personalized rankings.

Solution

Under the uniform-random benchmark, the probability of no overlap is

(19010)(20010)≈0.59145213,\frac{\binom{190}{10}}{\binom{200}{10}}\approx 0.59145213,

so about 40.85%40.85\% of list pairs share at least one video. For personalized rankings, the pool size and list lengths alone do not determine this probability.

Condition on the first user's list

Fix the ten videos the first user receives. The lists have no overlap exactly when all ten of the second user's videos come from the other 200−10=190200-10=190 videos. Call these the safe videos.

Under the benchmark, the second user's set is chosen uniformly from all ten-video subsets of the pool, independently of the first user. Here (Nk)\binom{N}{k} counts the kk-element subsets of NN distinct items. There are (20010)\binom{200}{10} possible sets, all equally likely, and (19010)\binom{190}{10} of them use only safe videos. With equally likely outcomes, probability is favorable over total, which gives the ratio above.

This conditional probability is the same whichever ten videos the first user got, because every first list leaves exactly 190190 safe videos. A conditional probability that does not depend on the condition is also the unconditional probability.

Check it one draw at a time

Reveal the second user's list one video at a time. The first video is safe with probability 190/200190/200. Given that it was safe, 189189 safe videos remain out of 199199, so the second is safe with probability 189/199189/199. Both counts drop by one after every safe draw. Multiplying the ten conditional probabilities gives

190200⋅189199⋯181191=190!/180!200!/190!=(19010)(20010).\frac{190}{200}\cdot\frac{189}{199}\cdots\frac{181}{191}=\frac{190!/180!}{200!/190!}=\frac{\binom{190}{10}}{\binom{200}{10}}.

The middle step writes each falling product as a ratio of factorials. Multiplying top and bottom by 1/10!1/10! turns them into the binomial coefficients, so both routes agree.

Handwritten counting and sequential derivation: fixing the first ten videos leaves 190 safe choices. The probability is C(190,10)/C(200,10), equivalently (190/200)(189/199) through (181/191), approximately 0.59145213.

The sequential view also shows why order inside a list does not matter. Each ten-video set has the same 10!10! orderings, so counting ordered lists multiplies favorable and total counts by the same factor.

For lists of sizes aa and bb from NN videos, the same argument gives (N−ab)/(Nb)\binom{N-a}{b}/\binom{N}{b} when a+b≤Na+b\le N. If a+b>Na+b>N, the lists must overlap and the probability is 00.

Counts alone do not settle personalized rankings

The 0.59150.5915 depends on two modeling choices: every set is equally likely, and the two users are chosen independently. A recommender breaks both. Popular videos appear in many lists, so the effective pool is smaller than 200200. Users with similar histories get similar lists, so the two selections are positively dependent. Both effects usually raise overlap, which pushes the no-overlap probability below the benchmark.

So the answer for real rankings needs the joint selection model or logged data. The benchmark is still useful as a reference: overlap far above 40.85%40.85\% measures how concentrated recommendations are.

Code

An exact check of three numbers: the subset ratio, the draw-by-draw product, and the with-replacement value that the common mistake produces.

from fractions import Fraction
from math import comb

subset_ratio = Fraction(comb(190, 10), comb(200, 10))

sequential = Fraction(1)
for i in range(10):
    sequential *= Fraction(190 - i, 200 - i)

print(f"subset ratio:      {float(subset_ratio):.8f}")
print(f"draw-by-draw:      {float(sequential):.8f}, equal: {sequential == subset_ratio}")
print(f"with replacement:  {float(Fraction(19, 20) ** 10):.8f}")

Output:

subset ratio:      0.59145213
draw-by-draw:      0.59145213, equal: True
with replacement:  0.59873694

Additional Notes

Common mistakes

  • Keeping the safe fraction fixed and answering (19/20)10≈0.599(19/20)^{10}\approx0.599. That treats each draw as if the chosen video went back into the pool. Within one list the videos are distinct, so after a safe draw both the safe count and the pool shrink. The error is small here but grows when lists are a larger share of the pool.
  • Presenting the benchmark as the answer for real recommendations. Shared popularity and similar users make overlap more likely than the random model says.
  • Confusing expected overlap with the probability of any overlap. The expected number of shared videos is 0.50.5, while the chance of at least one is about 0.4090.409.

What this question tests

The question tests counting without replacement, conditioning on one side to simplify a two-sided event, and stating what a model assumes. The interviewer wants the exact number and the judgment that a random baseline does not describe a ranking system. Likely follow-ups:

  • What is the expected overlap? Give each of the first user's videos an indicator for "also in the second list". Each indicator has mean 10/20010/200, so linearity of expectation gives 10×10/200=0.510\times10/200=0.5.
  • What is the distribution of the overlap count? It is hypergeometric: P(K=k)=(10k)(19010−k)/(20010)P(K=k)=\binom{10}{k}\binom{190}{10-k}/\binom{200}{10}, and k=0k=0 recovers the answer.
  • How would you measure overlap in production? Sample user pairs, compute the share of pairs with any common video or the Jaccard similarity, and compare with the random baseline.

Patterns to reuse

  • For an event involving two random sets, condition on one set and count outcomes for the other.
  • Without replacement, multiply fractions whose numerator and denominator both shrink, or take a ratio of binomial coefficients.
  • Pair a random-model number with the assumptions it needs and the direction real data would move it.
Your progressLogin to save progress
Spot an issue or have a suggestion?