Expected number of unique selections

88 Views Asked by At

If I'm selecting $N$ elements uniformly at random (with replacement) from $\{1, \dots, M\}$, what is the expected number of values that are selected exactly once?

The basis for this question originated here.

1

There are 1 best solutions below

1
On

Hint: Expected value is linear. What is the probability that a particular value is selected exactly once?