Birthday Problem Class Size
Smallest group for shared birthday is an easy quant interview question on Combinatorics.
This classic combinatorics interview question asks about how large a group must be before a shared birthday becomes more likely than not. The setup involves drawing multiple independent samples from a finite set of equally likely outcomes, and asking when a collision among those outcomes crosses a specific probability threshold. It is often used in quantitative and data science interviews to challenge intuition about randomness and to highlight how quickly overlap arises when sampling from a limited pool of possibilities.
The solution leans on complementary counting, basic probability rules, and permutations without repetition. An interviewer is looking for candidates who immediately recognize that "at least one match" is best handled via the complement event, and who can express that complement systematically. They watch for clear reasoning about independence, careful handling of multiplicative probabilities, and an ability to translate a verbal condition into a clean algebraic inequality. Clear explanation of the unintuitive growth in collision probability, plus comfort with approximations or sanity checks, is often what distinguishes stronger answers.
What it tests
This problem is governed by the principle of complementary counting and the rapid growth of collision probabilities in large sample spaces. When multiple independent selections are made from a finite set, the chance of at least one repeat (a 'collision') increases much faster than intuition expects, due to the combinatorial explosion of possible pairs. The probability of no collision is easier to compute directly, as it involves assigning each selection to a unique option, which is a permutation. The complement, the probability of at least one match, is then simply one minus this value. This pattern holds in any scenario where you are interested in the probability of at least one shared outcome among repeated independent draws from a finite set.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free