Fiveable

📊AP Statistics Unit 4 Review

QR code for AP Statistics practice questions

4.12 The Geometric Distribution

4.12 The Geometric Distribution

Written by the Fiveable Content Team • Last updated June 2026
Verified for the 2027 exam
Verified for the 2027 examWritten by the Fiveable Content Team • Last updated June 2026
📊AP Statistics
Unit & Topic Study Guides

Previous Exam Prep

AP Cram Sessions 2021

Pep mascot

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 pp. You find single-trial probabilities with P(X=x)=(1p)x1pP(X=x)=(1-p)^{x-1}p, and you describe the distribution with mean 1p\frac{1}{p} and standard deviation 1pp\frac{\sqrt{1-p}}{p}.

Standard Deviation of a Geometric Distribution

For a geometric random variable with probability of success pp, the standard deviation is:

σX=1pp\sigma_X = \frac{\sqrt{1-p}}{p}

This formula describes the spread in the number of trials needed to get the first success. If pp 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 XX records the trial number of the first success, so its possible values are 1,2,3,1, 2, 3, \ldots
  • Each trial is independent and has two outcomes, success with probability pp and failure with probability 1p1-p.
  • The probability of the first success on trial xx is P(X=x)=(1p)x1pP(X=x)=(1-p)^{x-1}p.
  • The mean is μX=1p\mu_X=\frac{1}{p} and the standard deviation is σX=1pp\sigma_X=\frac{\sqrt{1-p}}{p}.
  • 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 pp of success and 1p1-p of failure. The possible values of XX are 1,2,3,1, 2, 3, \ldots, 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 XX is the number of flips needed to get that first heads. The probability of success (heads) is p=0.5p = 0.5, and the probability of failure (tails) is 1p=0.51 - p = 0.5.

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 n=10n = 10 and p=0.5p = 0.5 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 p=0.5p = 0.5 for a fair coin.

Calculating Probabilities

If XX follows a geometric distribution with success probability pp on each trial, the probability that the first success happens on trial xx is:

P(X=x)=(1p)x1p,x=1,2,3,P(X=x)=(1-p)^{x-1}p, \quad x = 1, 2, 3, \ldots

For example, if p=0.5p = 0.5, the probability that you need exactly 3 trials to get the first success is:

P(X=3)=(10.5)31(0.5)=(0.25)(0.5)=0.125P(X=3)=(1-0.5)^{3-1}(0.5) = (0.25)(0.5) = 0.125

Technology can help here. The geometric probability function (often labeled geometricpdf) gives the probability of the first success exactly on trial xx, 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 XX with success probability pp:

  • Mean (expected value): μX=1p\mu_X = \frac{1}{p}. This is the long-run average number of trials needed to get the first success.
  • Standard deviation: σX=1pp\sigma_X = \frac{\sqrt{1-p}}{p}.

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 1p\frac{1}{p} 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 pp stays the same each trial.
  • Write the formula P(X=x)=(1p)x1pP(X=x)=(1-p)^{x-1}p, 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 1p\frac{1}{p} 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 p=0.05p = 0.05. The company wants the probability that the first defective product is the 20th unit produced. What is that probability?

Answer

Let XX be the number of units until the first defective product. Success (a defective product) has probability p=0.05p = 0.05, and failure has probability 1p=0.951 - p = 0.95. Use the geometric probability function:

P(X=20)=(10.05)201(0.05)=(0.95)19(0.05)0.0189P(X=20)=(1-0.05)^{20-1}(0.05) = (0.95)^{19}(0.05) \approx 0.0189

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.
  • XX 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 1p\frac{1}{p} 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.

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.

Pep mascot
Upgrade your Fiveable account to print any study guide

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Click below to go to billing portal → update your plan → choose Yearly→ and select "Fiveable Share Plan". Only pay the difference

Plan is open to all students, teachers, parents, etc
Pep mascot
Upgrade your Fiveable account to export vocabulary

Download study guides as beautiful PDFs See example

Print or share PDFs with your students

Always prints our latest, updated content

Mark up and annotate as you study

Plan is open to all students, teachers, parents, etc
report an error
description

screenshots help us find and fix the issue faster (optional)

add screenshot