Let $X$ be the number of students who give their gift to themselves. What is the expected value
$\mathbb{E}(X)$ of the random variable $X$?
Hint: Use an indicator random variable for each student.
The first student has a $ \frac{1}{n} $ chance of giving a gift to themselves.
The second student has a $ \frac{1}{n} $ chance of giving a gift to themselves.
…
The $n$th student has a $ \frac{1}{n} $ chance of giving a gift to themselves.
$ E(X) = \sum_{i=1}^{n} \frac{1}{n} $
$ E(X) = n \cdot \frac{1}{n} $
$ E(X) = 1 $