Question
Two users each receive ten distinct top videos selected from the same pool of 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
. - "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 safe videos. Under the random benchmark, user two's set is equally likely to be any of the sets, and of them avoid the first list, so no overlap has probability about . 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:
- State the benchmark: uniform sets, independent across users.
- Condition on the first user's set and name the
safe videos. - Take the ratio of favorable to total sets and get
. - Cross-check with the draw-by-draw product. Most candidates lose points here by writing
, which keeps the fraction fixed as if videos were replaced. - 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
so about 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 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 counts the -element subsets of distinct items. There are possible sets, all equally likely, and 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 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 . Given that it was safe, safe videos remain out of , so the second is safe with probability . Both counts drop by one after every safe draw. Multiplying the ten conditional probabilities gives
The middle step writes each falling product as a ratio of factorials. Multiplying top and bottom by turns them into the binomial coefficients, so both routes agree.

The sequential view also shows why order inside a list does not matter. Each ten-video set has the same orderings, so counting ordered lists multiplies favorable and total counts by the same factor.
For lists of sizes and from videos, the same argument gives when . If , the lists must overlap and the probability is .
Counts alone do not settle personalized rankings
The 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 . 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 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
. 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
, while the chance of at least one is about.
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
, so linearity of expectation gives. - What is the distribution of the overlap count? It is hypergeometric:
, andrecovers 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.