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 7 taken from a population of size 37, in which there are 12 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 7 people from its workforce of 37. (In this workforce, only 12 of those 37 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 positive skew (right skew), that its sample space is integers between 0 and 7, inclusive. In other words, S = {0, 1, 2, …, 7}.

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

To Calculate

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

Your Answer

In the box below, please enter the value of P[X = 7], where X ~ H(n=7, N=37, K=12), 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.   .