Distinct Toys in Seven Boxes
Expected unique toys from 7 boxes is a hard quant interview question on Expected Value, reported to have been seen at Optiver and Squarepoint Capital.
MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.
This expected value question is about how many unique categories you see when you repeat the same random experiment multiple times. It lives at the intersection of discrete probability, combinatorics, and occupancy problems, which show up constantly in quant prep and real trading models. By focusing on distinct types rather than raw counts, it highlights the difference between simple averages and more subtle expectations over sets.
It trains your ability to work with indicator variables, linearity of expectation, and complements of events in a clean, abstract way. You practice translating a story into a probabilistic structure where each possible category becomes a separate event. It also develops comfort with symmetry arguments and with reasoning about repeated independent trials in a compact, formula-driven style.
This matters for quant interviews because many market microstructure and risk questions boil down to expectations over unique states or configurations. Interviewers use it to see if you move naturally from a narrative setting into a rigorous probabilistic framework. Strong performance on this kind of quant interview question signals that you can generalize techniques, not just memorize formulas, which is crucial for high-level trading and research roles during interviews.
What it tests
When calculating the expected number of distinct outcomes in repeated independent trials, the key is to recognize that the expectation can be decomposed into the sum of the probabilities that each individual outcome occurs at least once. This is a direct application of the linearity of expectation, which holds regardless of whether the events are independent or not. The probability that a particular outcome is observed at least once is often easier to compute via its complement: the probability that it is never observed. This approach is powerful because it avoids the need to enumerate all possible combinations of outcomes, instead reducing the problem to manageable calculations for each outcome type. The underlying structure is that each outcome's presence is a Bernoulli trial across all draws, and the sum of their probabilities yields the expected count of unique outcomes.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free