it's been a long time since I've dealt with probability so I thought I would ask here. I'm sampling elements independently and uniformly and with repetition from a population. Given that the population is of size n, how many tries (in expectation) would it take me to gather x unique elements?
Thank you :)
If we have $n$ things we are choosing from, see that we always have $1$ unique element after the first draw. From here, we now are dealing with a Geometric Distribution with probability of success being $\dfrac{n-1}{n}$. The expected number of tries here is $\dfrac{n}{n-1}$. Thus the expected number of draws until you get $2$ unique elements from a pool of size $n$ is $$E(1)+E(2) = 1+\dfrac{n}{n-1}$$
Where $E(m) = \dfrac{n}{n-m+1}$ is the expected number of draws after finding the $(m-1)^{th}$ unique element until you've successfully found the $m^{th}$ unique element. We take $E(1) = \dfrac{n}{n-1+1} = 1$ to be the expected number of draws until the first unique element is found, which is just the first draw.
This pattern will generalize, with the expected value of draws until you have $x \le n$ unique elements is $$\sum_{i=1}^x E(i) = E(1)+E(2)+\dots+E(x)$$