A geometric random variable counts the trial number on which the first success happens in a sequence of independent trials, each with the same probability of success . You find single-trial probabilities with , and you describe the distribution with mean and standard deviation .
Standard Deviation of a Geometric Distribution
For a geometric random variable with probability of success , the standard deviation is:
This formula describes the spread in the number of trials needed to get the first success. If is small, the standard deviation is larger because the first success is less predictable and may take many trials. On the AP Statistics exam, report this value with context, such as "trials until the first success," not just as a standalone number.

Why This Matters for the AP Statistics Exam
This topic shows up when a problem describes repeated independent trials and asks how long it takes to get the first success. You need to recognize that setup, pick the geometric model instead of the binomial model, calculate the right probability, and interpret your answer with units and context. On free-response work, showing the formula with values plugged in matters for clear communication, and on multiple choice you often have to tell geometric situations apart from binomial ones quickly.
Key Takeaways
- A geometric random variable records the trial number of the first success, so its possible values are
- Each trial is independent and has two outcomes, success with probability and failure with probability .
- The probability of the first success on trial is .
- The mean is and the standard deviation is .
- Geometric models the wait until the first success; binomial counts successes in a fixed number of trials.
- Every geometric distribution is skewed right, and answers should be interpreted with units and context.
What a Geometric Random Variable Is
A geometric random variable models the number of trials needed to get the first success in a sequence of independent trials. Each trial has two outcomes, success or failure, with probability of success and of failure. The possible values of are , since the first success could happen on the first trial, the second, the third, and so on.
For example, suppose you flip a coin until you get the first heads. Here is the number of flips needed to get that first heads. The probability of success (heads) is , and the probability of failure (tails) is .
Binomial vs. Geometric: Spot the Difference
The setup for a geometric variable looks a lot like the binomial setup, so the key is knowing what each one counts.
- A binomial random variable counts the number of successes in a fixed number of trials.
- A geometric random variable counts the number of trials needed to get the first success.
These examples show the difference:
Situation 1: Flipping a coin 10 times and counting the number of heads.
You perform a fixed number of trials (10 flips) and count the successes (heads). The random variable is binomial with and for a fair coin.
Situation 2: Flipping a coin until you get the first heads.
You keep flipping until you reach the first success (heads). The random variable is geometric with for a fair coin.
Calculating Probabilities
If follows a geometric distribution with success probability on each trial, the probability that the first success happens on trial is:
For example, if , the probability that you need exactly 3 trials to get the first success is:
Technology can help here. The geometric probability function (often labeled geometricpdf) gives the probability of the first success exactly on trial , while the cumulative function (often labeled geometriccdf) gives the probability that the first success happens on or before a given trial.
Mean, Standard Deviation, and Shape
For a geometric random variable with success probability :
- Mean (expected value): . This is the long-run average number of trials needed to get the first success.
- Standard deviation: .
A useful pattern to know: every geometric distribution is skewed right. The variable can only take positive integer values, and the probability of the first success keeps shrinking as the trial number gets larger, so the long tail stretches to the right.
When you report these values, attach units and context. A mean of is "the expected number of trials until the first success," not just a bare number.
How to Use This on the AP Statistics Exam
Problem Solving
- Read for the phrase "until the first success" or "first time" to flag a geometric setup.
- Check that trials are independent and the success probability stays the same each trial.
- Write the formula , plug in the values, then give the answer.
Free Response
- Show the structure of your calculation, not just a final number. Writing the expression with values substituted communicates that you used the right model.
- Interpret results in context with units. For a mean, say something like "on average it takes trials to get the first success."
Common Trap
- Choosing binomial because the wording mentions trials and a success probability. Ask whether the number of trials is fixed (binomial) or whether you are waiting for the first success (geometric).
Practice Problem
A manufacturing company produces a product with a 5% defect rate, so the probability of a defective product is . The company wants the probability that the first defective product is the 20th unit produced. What is that probability?
Answer
Let be the number of units until the first defective product. Success (a defective product) has probability , and failure has probability . Use the geometric probability function:
Interpretation in context: the probability that the first defective product is the 20th unit produced is about 0.0189, or 1.89%.
Common Misconceptions
- Geometric and binomial are interchangeable. They are not. Binomial needs a fixed number of trials and counts successes; geometric waits for the first success and counts trials.
- can be zero. In this course, a geometric variable starts at 1, since the first success happens on trial 1 at the earliest.
- The mean must be a whole number. The expected value is an average, so it can be a decimal like 20 or 6.7, even though actual trial counts are whole numbers.
- geometricpdf and geometriccdf do the same thing. The pdf gives the probability of the first success exactly on a trial; the cdf adds up probabilities through a trial.
- A bare number is a complete interpretation. Probabilities and parameters need units and context to count as a full answer.
Related AP Statistics Guides
Vocabulary
The following words are mentioned explicitly in the College Board Course and Exam Description for this topic.Term | Definition |
|---|---|
geometric distribution | A probability distribution that models the number of trials needed to achieve the first success in a sequence of independent Bernoulli trials, each with the same probability of success. |
geometric probability function | The formula P(X=x)=(1-p)^(x-1)p that calculates the probability that the first success occurs on trial x. |
geometric random variable | A random variable that represents the number of the trial on which the first success occurs in a sequence of independent trials. |
independent trials | Repeated experiments or observations where the outcome of one trial does not affect the outcome of any other trial. |
mean | The average value of a dataset, represented by μ in the context of a population. |
number of failures | The count of unfavorable outcomes in a sample, denoted as n(1-p̂), used to verify the normality condition. |
number of successes | The count of favorable outcomes in a sample, denoted as np̂, used to verify the normality condition. |
parameter | A numerical summary that describes a characteristic of an entire population. |
probability | The likelihood or chance that a particular outcome or event will occur, expressed as a value between 0 and 1. |
probability of success | The constant probability p that an individual trial results in a success in a binomial experiment. |
random variable | A variable whose value is determined by the outcome of a random phenomenon and can take on different numerical values with associated probabilities. |
standard deviation | A measure of how spread out data values are from the mean, represented by σ in the context of a population. |
Frequently Asked Questions
What is the standard deviation of a geometric distribution?
The standard deviation of a geometric distribution is sqrt(1 - p)/p, where p is the probability of success on each independent trial.
What is the mean of a geometric distribution?
The mean is 1/p. It represents the expected number of trials until the first success.
What is the geometric probability formula?
The formula is P(X = x) = (1 - p)^(x - 1)p, where x is the trial number on which the first success occurs.
How do you know when to use a geometric distribution?
Use a geometric distribution when trials are independent, each trial has success probability p, and the random variable counts how many trials it takes to get the first success.
What is the difference between geometric and binomial distributions?
Geometric distributions count trials until the first success. Binomial distributions count the number of successes in a fixed number of trials.
How should you interpret geometric distribution answers on AP Stats?
Interpret answers with units and context. For example, say the expected number of units inspected until the first defective unit instead of only giving 1/p.