Hypergeometric distribution (source code)

= Hypergeometric distribution
{wiki}

If a sample of size $r$ is drawn uniformly without replacement from a population of size $n$ containing $c$ marked objects, the number $K$ of marked objects sampled has mass
$$
\mathbb P(K=k)=\frac{\binom ck\binom{n-c}{r-k}}{\binom nr}.
$$