



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Suppose we have a population of N objects which are divided into two types: Type A and Type B. There are M objects of Type A and N − M objects of Type B. For example, a standard deck of N = 52 playing cards can be divided in many ways. Type A could be “Hearts” and Type B could be “all others.” Then there are M = 13 hearts and 39 others.
Now suppose a random sample of size n is taken all at once without replacement from the entire population of N objects. The hypergeometric distribution X ~ Hyp ( N , M , n ) counts the total number of objects of Type A in the sample.
Range of the Distribution
There are four cases for the range of X , which result from two cases for the maximum possible value and two cases for the minimum possible value.
Maximum Value in Range : Since we are sampling n objects, there can be no more than n objects of Type A in the sample. But since there are only M objects of Type A in the population, there also cannot be more than M objects of Type A in the sample. So the most objects of Type A possible is the smallest of n and M. Thus, X ≤ min( n , M ).
Minimum Value in Range : We now compare the sample size n with N − M which is the number of objects of Type B. If n ≤ N − M , then all of the objects in the sample may be of Type B , leaving none of Type A. However if n > N − M , then there must be at least n – ( N − M ) objects of Type A in the sample. Therefore, max(0, n − ( N − M )) ≤ X.
Example 1. There are 13 Hearts and 39 other cards in a deck of 52 cards. What are the possible number of Hearts samples of sizes
(a) 5 (b) 20 (c) 42?
(a) There could be anywhere from 0 to 5 Hearts in the sample of size 5.
(b) There could be anywhere from 0 to 13 Hearts in the sample of size 20.
(c) Now there must be at least 3 Hearts in a sample of size 42 since there are only 39 non-hearts. The range is now 3 to 13.
The Probability Distribution Function
From the population of size N , there are C ( N , n ) ways to choose a random sample of size n all at once without replacement and without regard to order. In order to have exactly k of Type A , we must choose k from the M objects of Type A and choose the remaining n − k from the N − M objects of Type B.
Thus the probability of having exactly k objects of Type A is
P ( X = k ) =
k
n − k
n
There is no known formula for the cumulative probability P ( X ≤ k ) or for computing probabilities such as P ( j ≤ X ≤ k ). These values must be computed by summing P ( X = i ) for appropriate i.
Expected Value, Variance, and Standard Deviation
When choosing only one object at random, the probability of drawing an object of Type A is p = M / N. Then when choosing n objects at random, the average number of objects of Type A in the sample, or the expected value of X ~ Hyp ( N , M , n ) , is given by
= E [ X ] = n ×
(^) = n p.
This average value n p is the same mean as with a binomial distribution b ( n , p ). Therefore it does not matter if we sample with or without replacement when finding the average number of occurrences in n trials. However the variance does depend on whether you sample with replacement (binomial) or without replacement (hypergeometric).
The variance in the number of objects of Type A in the sample is given by
(^2) = n × M N
N − n N − 1
(^) = n × p × q × N − n N − 1
where q = 1 − p.
Since
N − n N − 1
< 1, there is less variance when sampling without replacement.
However when the population size N is extremely large, as with national surveys, then N − n N − 1
≈ 1; thus, the variance is approximately n pq , which is the same as the binomial
variance. For X ~ Hyp ( N , M , n ) , the standard deviation is given by =
n pq ×
N − n N − 1
Example 3. There are 80 people called for jury duty. One of these people is you. Of these 80 people, 14 are chosen to try a particular case. If the 14 are chosen completely at random from the group of 80, then what is the probability that you are chosen for the case?
Solution. Consider yourself the 1 person of Type A. Then there are 79 of Type B. The probability of exactly 1 of Type A being chosen (i.e., you) is
1 1
Since
(^) = 1, this value simplifies as follows:
In other words, the chance of you being picked is
since there are 80 in the group
and 14 are chosen.
Exercises (Give detailed solutions.)
(a) What are the possibilities for the number of red cards dealt?
(b) What is the probability of there being at least 3 red cards dealt?
(c) What is the most likely number of red cards dealt in a hand of 7 cards?
(d) What are the average number and the standard deviation in the number of red cards dealt in a hand of size 7?
(a) What are the possibilities for the number of face cards dealt?
(b) What is the most likely number of face cards dealt in a hand of 13 cards and what is the probability of exactly this number of face cards being dealt?
(c) What are the average number and the standard deviation in the number of face cards dealt in a hand of size 13?
(a) What are the possibilities for the number of females chosen? For the number of males chosen?
(b) What are the most likely number, the average number, and the standard deviation in the number of females chosen in this random choice of 12 students?
(c) What are the most likely number, the average number, and the standard deviation in the number of males chosen in this random choice of 12 students?