Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Hypergeometric Experiment

Image illustrating Hypergeometric Experiment


A hypergeometric experiment has the following properties:


  1. You are randomly drawing a sample of size nn (fixed number of trials) from a population of size NN without replacement
  • i.e. each draw is not independent
  • i.e. the probability of success is not constant from trial to trial
  1. rr of the NN 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=8N=8 (total number of coins)
  • r=3r=3 if red is favorable; r=5r=5 if blue is favorable (the number of objects considered as "successes")
  • n=4n=4 (the number of draws or trials)

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Hypergeometric Distribution

Let XX be a random variable that represents the number of successes in a hypergeometric experiment where

  • N=N= number of all available items (population size)
  • n=n= number of trials or number of items drawn from NN (sample size)
  • r=r= number of favorable items available in NN (successes)
  • x=0,1,2,3...x=0,1,2,3...

Then XX follows a hypergeometric distribution (or hypergeometric model), and we denote this by X∼Hypergeometric(N,r,n)\boxed{X\sim \text{Hypergeometric}(N,r,n)} or X∼H(N,r,n)\boxed{X\sim H(N, r, n)}.


Image illustrating Hypergeometric Distribution


Then the probability of obtaining exactly xx number of successes is given by this formula:

P(X=x)=(rx)(N−rn−x)(Nn)\displaystyle{\boxed{\displaystyle P(X=x)= \displaystyle \frac{{r \choose x}{{N-r}\choose{n-x}}}{N\choose n}}}

Notes:

  • xx must be less than or equal to the smaller of the numbers nn and rr
  • 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
x≤min(n,r)x\leq min(n,r)


Mean, Variance, and Standard Deviation

  • Mean: E(X)=n×rN\boxed{E(X)=n\times\frac{r}{N}}
  • Variance: Var(X)=σ2=(n).(rN).(1−rN).(N−nN−1)\boxed{Var(X)=\sigma^2=\left(n\right).\left(\frac{r}{N}\right).\left(1-\frac{r}{N}\right).\left(\frac{N-n}{N-1}\right)}
  • Standard deviation: SD(X)=σ=(n).(rN).(1−rN).(N−nN−1)\boxed{SD(X)=\sigma=\sqrt{\left(n\right).\left(\frac{r}{N}\right).\left(1-\frac{r}{N}\right).\left(\frac{N-n}{N-1}\right)}}

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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\begin{array}{c}x=2\\N=7\\n=3\\r=3\end{array}


P(X=2)\displaystyle P(X\bm=2)


=(xr)(n−xN−r)(nN)\displaystyle =\frac{(^r_x)(^{N-r}_{n-x})}{(^N_n)}


=(23)(3−27−3)(37)\displaystyle =\frac{(^3_2)(^{7-3}_{3-2})}{(^{7}_3)}


=(3)(4)35\displaystyle =\frac{\left(3\right)\left(4\right)}{35}


=1235\displaystyle =\frac{12}{35}


≈0.3429\approx 0.3429


Alternative method - Let women be "success"

x=1N=7n=3r=4\begin{array}{c}x=1\\N=7\\n=3\\r=4\end{array}


P(X=1)\displaystyle P(X\bm=1)


=(xr)(n−xN−r)(nN)\displaystyle =\frac{(^r_x)(^{N-r}_{n-x})}{(^N_n)}


=(13)(3−17−4)(37)\displaystyle =\frac{(^3_1)(^{7-4}_{3-1})}{(^{7}_3)}


=(4)(3)35\displaystyle =\frac{\left(4\right)\left(3\right)}{35}


=1235\displaystyle =\frac{12}{35}


≈0.3429\approx 0.3429


Same answer!


There are 10 balls in a bag; 3 of them are gold balls. To win a prize, you must draw all three gold balls. You get to draw five balls. What is the probability you will win a prize?

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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?



Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice