Hypergeometric Probability

Hypergeometric Experiment

A hypergeometric experiment has the following properties:
- You are randomly drawing a sample of size n (fixed number of trials) from a population of size N without replacement
- i.e. each draw is not independent
- i.e. the probability of success is not constant from trial to trial
- r of the N objects in the population are considered "success" (a.k.a. favorable)
Examples
Determine if the following are hypergeometric experiments:
1. You draw coins from a bag containing 3 red coins and 5 blue coins and note the colour of the coin drawn. You repeat this experiment 4 times with replacement → ________
This is NOT hypergeometric since each trial is independent from the other ones because you are doing this with replacement (the bag starts off with the same coins at the start of every trial.
2. You draw coins from a bag containing 3 red coins and 5 blue coins and note the colour of the coin drawn. You repeat this experiment 4 times without replacement → ________
This is hypergeometric since each coin can either be success - red or failure -blue (you could switch these labels as well), there's a fixed number of draws from a total population of objects with replacement (each draw is not independent)
- N=8 (total number of coins)
- r=3 if red is favorable; r=5 if blue is favorable (the number of objects considered as "successes")
- n=4 (the number of draws or trials)

Hypergeometric Distribution
Let X be a random variable that represents the number of successes in a hypergeometric experiment where
- N= number of all available items (population size)
- n= number of trials or number of items drawn from N (sample size)
- r= number of favorable items available in N (successes)
- x=0,1,2,3...
Then X follows a hypergeometric distribution (or hypergeometric model), and we denote this by X∼Hypergeometric(N,r,n) or X∼H(N,r,n).

Then the probability of obtaining exactly x number of successes is given by this formula:
Notes:
- x must be less than or equal to the smaller of the numbers n and r
- i.e. you can't have more "successes" than there are number of "success" objects/favorable objects
- i.e. you can't have more "successes" than the number of objects drawn
Mean, Variance, and Standard Deviation
- Mean: E(X)=n×Nr
- Variance: Var(X)=σ2=(n).(Nr).(1−Nr).(N−1N−n)
- Standard deviation: SD(X)=σ=(n).(Nr).(1−Nr).(N−1N−n)

Practice: Hypergeometric Distribution
There are seven people in Molly’s family -- 4 women and 3 men. If I select three of them at random, what is the probability that I will get exactly two men and one woman?
Let men be "success"
x=2N=7n=3r=3
P(X=2)
=(nN)(xr)(n−xN−r)
=(37)(23)(3−27−3)
=35(3)(4)
=3512
≈0.3429
Alternative method - Let women be "success"
x=1N=7n=3r=4
P(X=1)
=(nN)(xr)(n−xN−r)
=(37)(13)(3−17−4)
=35(4)(3)
=3512
≈0.3429
Same answer!
Practice: Hypergeometric Distribution
Ivan supervises employees at Walmart. Interestingly, 15 of his night shift employees called in sick today. Ivan believes that some of them are lying about their sickness to go to the Rhianna concert tonight.
An employee knows that 6 of these 15 employees have Rhianna concert tickets and are not sick – but Ivan doesn’t know this! Ivan hires a detective to randomly spy on 5 of his employees. What is the probability that exactly 2 of the 5 selected employees will be caught with Rhianna tickets?