Paragraph

So f(x) = P(X = x) = P(x from the sample are from the target group and the remainder are not). Breaking these up gives
\begin{equation*} f(x) = \frac{\binom{n_1}{x} \binom{n-n_1}{r-x}}{\binom{n}{r}} \end{equation*}
in-context