Learn / Library / Combinatorics
Matching product assignments
market makers each have a distinct favorite product out of products. The products are assigned one per market maker uniformly at random over all assignments. What is the expected number of market makers who receive their own favorite product?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Write the count as a sum of indicators and use linearity of expectation.
Solution
- For each market maker, the probability of receiving their favorite product is .
- By linearity of expectation, the expected count is the sum over all market makers.
- This gives .
- The answer is .
Answer: