Hypergeometric Distributions

Calculating Probabilities

The Problem Statement

Let X be a random variable following a Hypergeometric distribution. All Hypergeometric distributions have three parameters: sample size, population size, and number of successes in the population. For this problem, let X be a sample of size 8 taken from a population of size 39, in which there are 27 successes. An example of where such a distribution may arise is the following:

Statistics, Inc., wants to determine how well the people like its candies. To determine this, they randomly select 8 people from its workforce of 39. (In this workforce, only 27 of those 39 actually like the candies.) Let X be the number of employees surveyed who like the candies.

From the description, we can tell that X has a Hypergeometric distribution. We know this because X is the number of successes in a finite population where subjects cannot be measured more than once.

For those who like pictures, here is a graphic of the probability mass function of X. Note that it has a negative skew (left skew), that its sample space is integers between 0 and 8, inclusive. In other words, S = {0, 1, 2, …, 8}.

The Probability Graphic

Here is the probability function of the Hypergeometric distribution described in the example:

0.05 0.10 0.15 0.20 0.25 0.30 0.35 0 1 2 3 4 5 6 7 8

To Calculate

Continuing the candy example, let us determine the probability that exactly 2 people in the survey respond that they like the candies. In symbols, calculate P[X = 2].

Your Answer

In the box below, please enter the value of P[X = 2], where X ~ H(n=8, N=39, K=27), then click on the “Check your answer!” button. Please round your answer to the ten-thousandths place.

Assistance

Show Formula

Show Solution

Show the R Code

Show the Excel Formula

© Ole J. Forsberg, Ph.D. 2025. All rights reserved.   .