Fixed points of permutation
Recall the example of derangements (Deragements). Let us pick a random permutation on . A fixed point is a value for which . (so this is the student who receives their own homework when the homework is returned at random order) How many students do we expect to receive their own homework? (or how many fixed points do we expect?)
More formally, we are working with the sample space of all permutations, i.e., and uniform distribution.
Prove: The probability that is a fixed point is .
Let be the random variable denoting the number of students who receive their own homework, i.e., the number of fixed points. Therefore, we can write as a sum of indicators variables indicating whether is a fixed point. We have . This implies that .
This implies that, regardless of how large the class is, the expected number of students receiving their own homework is one!