Login
📚 Mostly Harmless Statistics
Chapters ▾
⇩ Download ▾

5.5 Hypergeometric Distribution

The hypergeometric distribution is a discrete probability distribution used to find the probability of success when there are two outcomes to each trial, and there are a set number of dependent trials. A hypergeometric probability distribution results from a random experiment that meets all of the following requirements. 12

  1. The procedure has a fixed sample size n taken from a population N.
  2. The trials are taken without replacement (dependent).
  3. Each trial has exactly two outcomes, the number of successes = a and the number of failures = b. Note a + b = N.

If a random experiment satisfies all of the above, the distribution of the random variable X, where X counts the number of successes, is called a hypergeometric distribution, we write X ~ H(n, a, N).

Note: the calculator does not have the hypergeometric distribution shortcut. The following online calculator will calculate the probability: https://homepage.divms.uiowa.edu/~mbognar/applets/hg.html. The M = a is the number of successes a from our example, or use Excel. Figure 5-7 may help you decide when to use the “True” for cumulative in Excel. Table matching probability phrases to Excel hypergeometric formulas: P(X = x) uses =HYPGEOM.DIST(x,n,a,N,false); P(X ≤ x) uses =HYPGEOM.DIST(x,n,a,N,true); P(X ≥ x) uses =1-HYPGEOM.DIST(x-1,n,a,N,true); P(X > x) uses =1-HYPGEOM.DIST(x,n,a,N,true); P(X < x) uses =HYPGEOM.DIST(x-1,n,a,N,true); a Where column defines N as population size, n as sample size, a as successes out of N, and b as failures out of N, and notes there is no shortcut for the TI. Figure 5-7 A bookstore owner examines 5 books from each lot of 25 to check for missing pages. If they find at least 2 books with missing pages, the entire lot is returned. If, indeed, there are 4 books with missing pages, find the probability that the lot will be returned. Solution Sometimes the hardest part is determining which of the numbers goes in the right place in the formula. The population size is always the largest number, N = 25. A success is what you are trying to find the probability for, which is getting a book with a missing page. The number of successes out of the population is a = 4 (the 4 books with the missing pages). This means b = 25 – 4 = 21 (the number of books without missing pages). Note a + b = N. The sample size is the n = 5 is the number of books the owner examines. The owner will send the lot back if X is at least 2 missing pages. We can stop at X = 4 since there are only 4 books with missing pages. Your stopping point will be the smaller of n or a. P(X ≥ 2) = P(X = 2) + P(X = 3) + P(X = 4) = 4C2·21C325C5+4C3·21C225C5+4C4·21C125C5=0.1502+0.0158+0.0004=0.1664. In Excel use the formula: =1- HYPGEOM.DIST(1,5,4,25,TRUE). Figure 5-8 shows the online calculator at https://homepage.divms.uiowa.edu/~mbognar/applets/hg.html. Online calculator for the hypergeometric distribution X ~ HG(n, N, M) with inputs n = 5, N = 25, M = 4, and x = 2, showing P(X ≥ x) = 0.1664; below, a bar chart of the distribution has tall blue bars at x = 0 and 1 and small red-shaded bars from x = 2 upward marking the probability region. Figure 5-8

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University), hosted on LibreTexts (stats.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.