Consider a large bowl with balls, of which are green and of which are yellow. We draw balls out of the bowl without replacement. Let be the number of green balls in the many draws (i.e. getting a green ball is a success). The distribution of is called the hypergeometric distribution. This distribution has three parameters and its probability function is:
In the denominator, we have the number of different ways of drawing balls out of balls. In the numerator, we have the number of ways of drawing balls out of green balls multiplied by the number of ways of drawing balls out of yellow balls. We presented an example of the hypergeometric distribution in this post (The hypergeometric distribution, an example). In this post, we continue the discussion and we also derive the mean and variance.
When both (the number of green balls) and (the number of yellow balls) approach infinity while at the same time the proportion of the green balls remains constant, then the hypergeometric distribution approaches the binomial distribution with parameters and . This result makes intuitive sense. As the number of balls in the bowl becomes larger and larger and is much greater than the sample size (), the difference between sampling without replacement and sampling with replacement is negligible. Thus when population size is much larger than the sample size, for all practical purposes, the hypergeometric probabilities can be estimated with the binomial probabilities.
If we draw green balls with replacement, we work with the binomial distribution with parameters and . Then the mean number of green balls drawn is . Interestingly, the mean of the hypergeometric distribution under discussion is also . Sampling without replacement produces the same mean as sampling with replacement. However, the variance is different between sampling with and without replacement. The following is the derivation for the mean of the hypergeometric distribution.
In the second to the last step above, we use the Euler’s formula:
We now derive the variance. We first derive .
Again, we use the Euler’s formula in the second to the last step. To find the variance, we use the following: