Fixed points of a shuffle

A permutation of {1,,n}\{1,\dots,n\} is drawn uniformly at random. What is the expected number of fixed points (elements mapped to themselves)?

Show hints (2)+
  1. Indicator per element + linearity.
  2. Each element is fixed with probability 1/n.

Answer

Reveal answer →

1

Want the full step-by-step worked solution? It's part of Premium — along with a worked solution for every question in the bank.

Asked at: Jane Street, Two Sigma

Related questions