Expected value, variance, and standard deviation
Geometric distribution
The geometric distribution is used when you’re waiting for a first success in a series of independent trials. Unlike the binomial distribution, which counts successes in a fixed number of trials, the geometric distribution counts how many trials it takes to get that first success. The key formulas are defined below.
Calculator Commands
You can also use software to calculate geometric probabilities. geometpdf gives the probability that the first success occurs on the th trial, where is the probability of success on a single trial. geometcdf gives the cumulative probability that the first success occurs on or before the th trial, where is the probability of success on a single trial.
Conditions for Using the Geometric Distribution
Practice problem
Example 1:
Suppose that only of Americans voted third party in the last election. Liam is randomly selecting Americans until he finds one who voted third party in the last election.
Part a.
Define the random variable of interest for Liam and state how the random variable is distributed and with what parameter(s).
Since Liam is counting the number of people needed until the first third party voter is found, this is a geometric setting. The parameter represents the probability that any one selected American voted third party.
Solution:
Let be the number of randomly selected Americans needed until Liam finds the first person who voted third party. Then is geometrically distributed with parameter , where is the probability that a randomly selected American voted third party on any one trial.
Part b.
What is the expected number of people that Liam will have to randomly select in order to find one who voted third party?
Use the expected value formula for a geometric distribution:
Solution:
The expected number of people Liam will need to select is .
Part c.
What is the standard deviation for the number of people that Liam will have to select in order to find one who voted third party?
Use the standard deviation formula for a geometric distribution:
Solution:
The standard deviation is . Interpreting this in context: the number of people Liam needs to select typically differs from the mean of by about people.
Part d.
What is the probability that the first third party voter that Liam finds is the tenth person selected?
There are two approaches to this problem.
Solution 1 (without technology): Use the geometric probability formula with and :
Solution 2 (with technology): geometpdf gives the probability that the first success occurs on the th trial. With and :
Solution:
The probability that the first third party voter is the 10th person selected is about .
Part e.
What is the probability that the first third party voter that Liam finds is one of the first five people selected?
We want , meaning the first success happens on trial 1, 2, 3, 4, or 5. You could compute and add
but it’s more efficient to use cumulative probability. geometcdf gives the cumulative probability that the first success occurs on or before the th trial:
Solution:
The probability that the first third party voter is among the first five people selected is about .
Part f.
What is the probability that the first third party voter that Liam finds is either the 15th person selected or someone selected sometime after the 15th person is selected?
We want . Use the complement: the opposite of “first success on trial 15 or later” is “first success on or before trial 14.”
First, compute using the cumulative distribution:
Now subtract from 1:
Solution:
The probability that the first third party voter is found on the 15th selection or later is about .
Part g.
What is the probability that the first non-third party voter that Liam finds is the third one who is selected?
For this part, the definition of “success” has changed. Now “success” is selecting a person who did not vote third party, so . We want the first success on the third trial ():
Solution:
The probability is . This probability is small because it requires the first two selected people to be third party voters — a rare outcome when only voted third party.