Lesson 4.9 · Probability, Random Variables and Distributions
The geometric distribution
The binomial distribution counts successes in a fixed number of trials. A different question is just as natural: how many trials will it take to get the first success? How many boxes of cereal until you find the prize, how many calls until someone answers, how many rolls until a six? That waiting time has a geometric distribution.
The geometric setting
Definition
Geometric setting
A geometric setting arises when you perform independent trials, each with two outcomes (success or failure) and the same probability of success , and you keep going until the first success.
The number of trials needed to get the first success is a geometric random variable with parameter . Its possible values are with no upper limit.
Compare it with the binomial setting. The conditions are the same except one: a binomial setting has a fixed number of trials, while a geometric setting has a fixed number of successes (one) and a random number of trials.
Geometric probabilities
For the first success to happen on trial , the first trials must all be failures and trial must be a success. Because trials are independent, multiply:
Geometric probability
If is geometric with success probability , then for
Also, the first success takes more than trials exactly when the first trials are all failures:
On a TI-84, is geometpdf(p, k) and is geometcdf(p, k).
Worked example: Finding the prize
One in four boxes of a cereal contains a toy, independently from box to box. Let = the number of boxes you open to find the first toy. Find .
Solution. is geometric with . You need two boxes without a toy, then a box with one:
Worked example: More than four boxes
For the same cereal, find the probability that it takes more than 4 boxes to find the first toy, and the probability that it takes at most 4.
Solution. It takes more than 4 boxes exactly when the first 4 boxes have no toy:
Shape, mean and standard deviation
The largest probability is always at , and each probability after that is times the one before, so the distribution is strongly skewed right. Here is the distribution for out to (the probabilities continue forever, getting smaller).
Mean and standard deviation of a geometric random variable
The mean makes intuitive sense: if a toy is in 1 of every 4 boxes, you'd expect to open about 4 boxes on average to find one.
Worked example: Mean and standard deviation for the cereal
Find and interpret the mean of for the cereal with , and find the standard deviation.
Solution.
If many people each opened boxes until finding a toy, they would need 4 boxes on average. The number of boxes needed typically varies from 4 by about 3.46 boxes, a large spread due to the long right tail.
Common mistake
Don't mix up and . "The first success takes at least 5 trials" means the first 4 trials fail, so . Also make sure the question counts trials, not failures before the first success; on the AP exam, counts trials, starting at 1.
Tip
Deciding between binomial and geometric? Ask: "Is the number of trials fixed?" If yes, binomial. If you keep going until a success, geometric.
Practice
A basketball player makes of her half-court shots, independently. Let = the number of shots she takes until she makes her first one. Find . Round to 4 decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For the player in the previous problem, find the probability that she makes her first half-court shot within her first 3 attempts.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For the same player, what is the expected number of attempts needed to make her first half-court shot?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For the same player, find the standard deviation of the number of attempts needed. Round to 2 decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which situation is best modeled by a geometric distribution?
About of people who enter a store make a purchase, independently of one another. Let = the number of people who enter, up to and including the first person who buys something. Find , the probability that none of the first 5 people makes a purchase. Round to 4 decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A game is won with probability each time it's played, independently. Let = the number of plays needed to get the first win. Find . Round to 4 decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.