Rule
A random variable is hypergeometrically distributed if it meets the following criteria:
You draw a random element from a population that is divided into two or more groups: Group , Group , Group , and so on.
You draw elements, without replacing any of them, distributed between these groups.
is the number of elements you draw from the different groups.
Theory
The probability of drawing elements from group and elements from group is given by this formula:
, the number of elements you draw from group .
, the total number of elements you draw from both group and .
, the number of elements you draw from group .
, the number of elements in , and , the number of elements in .
, the total number of elements in the set.
Example 1
You draw five cards from a normal deck of cards and want to see how many hearts you get. Let be the number of hearts among your cards. What is the probability of getting three hearts?
This is the information you can deduce from the text: The population is 52, as there are 52 cards in a deck. The relevant groups in this case are hearts and non-hearts. There are 13 hearts and non-hearts in the deck. You’ve drawn a total of five cards, with three of them being hearts. That means of your cards are non-hearts.
After sorting through this information, you can see that is hypergeometrically distributed, and you can insert the numbers you found into the above formula. That gives you
Example 2
A box of light bulbs contains 100 light bulbs. Seven of them are broken. If you draw four random bulbs from the box, what is the probability of drawing only functioning light bulbs?
You can see that the population is 100 from the text. There are two groups, one group containing the broken light bulbs and another containing the functioning ones. The group of broken light bulbs has seven elements, while the group of functioning light bulbs has elements. You want to draw light bulbs. From this, you understand that is hypergeometrically distributed, and that you want to find the probability of . You use the formula from before and get that
This means there’s a % chance that all four of the drawn light bulbs work.
Example 3
Danny Boyle is setting up a new musical in the West End, and he is holding auditions for extras. There are 14 female and 7 male actors at this audition, and Boyle needs 8 actors regardless of gender. Imagine every actor auditioned equally well, so the probability of getting the part is the same for everyone.
What’s the probability of four actors of each gender getting the parts?
What’s the probability of all the male actors getting a part?
What’s the probability that at least two of the chosen actors are female?
You can see that group (the women) has elements and that group (the men) has elements. This gives you elements in total. Danny needs to pick of them. Let be the number of women he picks.
is 0, because there being only seven men makes it so that Danny always have to pick at least one woman.
You found in the previous part. That means that
This means the probability of Boyle picking two or more women is %.
Example 4
Bradley Cooper goes to a buffet to have some sushi. There is space for 15 pieces on his plate, and he’s determined to fill it up. In the buffet, there are 30 pieces of salmon maki, 20 pieces of tempura maki and 15 pieces of maki with scallops. What’s the probability of him choosing five pieces of each?
Bradley needs to choose between three different groups. He needs to pick 5 pieces from the first group of 30, from the second group of 20 pieces he also wants 5, and the same is the case with the final group of 15 pieces. All together, that is pieces in the buffet. Then you can insert the numbers straight into the formula for the hypergeometric distribution and get this:
The probability of Bradley picking five pieces of each type is %.