Fixed Points of a Permutation

Probability
Random Permutations
Medium
A random permutation of n distinct objects is chosen uniformly. What is the expected number of objects that remain in their original positions?
Hint 1

Use indicator variables for object being fixed.

Hint 2

By linearity of expectation, sum the individual probabilities .

Show worked solution
  1. 1. Define indicators

    Let if object is in its original position, else 0. Then the number of fixed points is .

  2. 2. Individual probability

    By symmetry, for each .

  3. 3. Linearity of expectation

    .

Answer: 1

Related roles: Browse quant jobs

This problem has 1 interviewer follow-up — unlock them by solving it in Practice.

Related problems