Suppose to have $n$ elements of $2$ different types. Let $n_1$ and $n_2$ be the numbers of elements of each type respectively (with $n=n_1+n_2$).
I have to pick $k$ elements from this set. Every time I pick an element, I will not put it back to the original set.
What it is the probability that $h$ of the $k$ picked elements are of type "1"? I would like to evaluate the probability density function $p_{k, n_1, n_2}(h) $ which is the probability that I have picked exactly $h$ element in the case that parameters $k$, $n_1$ and $n_2$ are fixed.
I started by enumerating all the possibilities but that's a dirty job. I was wondering if there is a formula for this kind of problem.
