Since ,
we have
Additionally, for any pair ,
the r.v.
equals 1 only when some pair of samples are both members of party A,
which occurs with probability .
There are
pairs .
Therefore, the expression
evaluates to .
Finally, we have , so now we can write
When , .
When , Var(X) = 0. This makes sense, as if the sample is the entire population, we always get the same number of members of party A in our sample (all of them), so there is no variation.