Quoto

Learn / Library / Combinatorics

Squared matches payout

CombinatoricsHard

A game shuffles cards numbered to uniformly at random and lays them in positions to . You are paid dollars, where is the number of cards whose number equals their position. What is the expected payout in dollars?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Expand using indicators and treat pairs of distinct positions separately.

Solution
  1. Write , where indicates that position holds card .
  2. For each , , and , so the diagonal terms contribute .
  3. For , , and there are ordered pairs, so these contribute .
  4. Therefore .
  5. The answer is .

Answer: