# AP Statistics Review: The Geometric Distribution

Source: https://www.albert.io/blog/ap-statistics-the-geometric-distribution/ · Updated November 16, 2026

You're waiting for something to happen. A basketball player shoots free throws until she makes one. A quality inspector tests widgets until he finds a defective one. In each scenario, the random variable isn't the number of successes in a fixed number of trials — it's the *trial number on which the first success occurs*. This is the geometric distribution. Unlike the binomial, which answers "how many successes in n trials?", the geometric answers "how many trials until the first success?" Mastering this distinction and the geometric formulas gives you complete command of first-occurrence problems on the AP exam.

## The Geometric Distribution: Setup and Definition

A random variable X follows a geometric distribution if:

![The geometric distribution: the trial on which the first success occurs.](https://www.albert.io/blog/wp-content/uploads/2026/11/geometric-distribution.png) The geometric distribution: the trial on which the first success occurs.

- You conduct independent trials, each with the same probability p of success.
- Trials continue until the first success occurs.
- X counts the trial number on which that first success occurs.

Key difference from binomial: there's no fixed n. You keep going until success, so X could be 1, 2, 3, ... with no upper limit. Also, X counts the trial *number* (not the number of failures). Getting your first free throw on attempt 3 means X = 3, not X = 2.

For a geometric distribution to apply, you need independent trials with a constant success probability p, and you're tracking "trials until first success." If success becomes more or less likely over time, or if trials aren't independent, the model breaks down.

**Example:** A fast-food chain places prize tickets in 1 of every 20 meals. You buy meals one at a time until you get a prize. Let X = the meal number on which you first find a prize. Each meal independently has p = 0.05 probability of a prize, so X is geometric with p = 0.05.

## The Probability Mass Function

For a geometric random variable X with success probability p, the probability that the first success occurs on trial x is:

![Probability rules can be seen with Venn diagrams.](https://www.albert.io/blog/wp-content/uploads/2026/11/venn-diagrams-probability.png) Probability rules can be seen with Venn diagrams.

**P(X = x) = (1−p)^(x−1) × p**

To get your first success on trial x: fail on the first (x−1) trials (each with probability 1−p), then succeed on trial x (probability p). Independent trials → multiply.

Meal prize example, p = 0.05. Probability the first prize is on the 10th meal:

P(X = 10) = (0.95)^9 × 0.05 ≈ 0.6158 × 0.05 ≈ 0.0308

About 3% chance. Compare: P(X = 1) = (0.95)^0 × 0.05 = 0.05 — 5% of the time you get lucky immediately, which matches the 5% prize rate. The distribution is heaviest at small values of x with a long tail toward larger values.

On the AP exam, use a calculator's geometric probability function (geompdf) for numerical calculations. Understanding the formula tells you *why* the distribution has its shape.

## The Mean and Standard Deviation of a Geometric Distribution

The expected trial number on which the first success occurs:

**μX = 1/p**

If each trial succeeds with probability p, you need an average of 1/p trials to achieve one success. Meal example: μX = 1/0.05 = 20. On average, you'll buy 20 meals to find your first prize — which matches the intuition that 1 in 20 meals has a prize.

The standard deviation:

**σX = √(1−p) / p**

(Equivalently: σX = √((1−p)/p²) — same result.) Meal example:

σX = √0.95 / 0.05 = 0.9747 / 0.05 ≈ 19.49

This large standard deviation (nearly as large as the mean) shows geometric distributions are highly variable. You might get your first prize on the very first meal or search for 40+ meals. The long right tail drives the large spread.

## Cumulative Probabilities and "At Least" Questions

The AP exam often asks: "What's the probability you find the first prize within the first 10 meals?" — that's P(X ≤ 10). Instead of summing 10 individual probabilities, use the complement shortcut:

![A discrete probability distribution and its cumulative distribution.](https://www.albert.io/blog/wp-content/uploads/2026/11/discrete-probability-distribution.png) A discrete probability distribution and its cumulative distribution.

P(X > k) = (1−p)^k (failing on all first k trials)

Therefore: **P(X ≤ k) = 1 − (1−p)^k**

Meal example: P(X ≤ 10) = 1 − (0.95)^10 = 1 − 0.5987 ≈ 0.4013

About 40% chance you find a prize within 10 meals. One computation instead of 10 sums — use this shortcut every time it applies.

## Comparing Geometric to Binomial and Recognizing the Distribution

Students often confuse geometric and binomial situations. The direct comparison:

| Feature | Binomial | Geometric |
| --- | --- | --- |
| Number of trials | Fixed (n) | Variable — keep going until first success |
| What X counts | Successes in n trials | Trial number of first success |
| Parameters | n and p | p only |
| Mean | μX = np | μX = 1/p |
| Standard deviation | σX = √(np(1−p)) | σX = √(1−p) / p |
| P(X = k) formula | C(n,k) × p^k × (1−p)^(n−k) | (1−p)^(x−1) × p |
| Key question | "How many successes in n trials?" | "How many trials until first success?" |

On the AP exam: "in n trials" or "out of n attempts" → binomial. "Until" or "the trial on which" or "number of attempts needed" → geometric.

## Working Through a Complete Geometric Example

A medical diagnostic test correctly identifies disease 95% of the time (when disease is present). A patient takes the test repeatedly until it correctly identifies the disease. X = the test number on which the disease is first correctly identified.

Verify: independent tests, constant p = 0.95, counting trials until first success. Geometric.

- **Mean:** μX = 1/0.95 ≈ 1.053. On average, the disease is correctly identified on the 1.053rd test — essentially always on the first test. A 95% accurate test catches disease nearly immediately.
- **Standard deviation:** σX = √0.05 / 0.95 = 0.2236 / 0.95 ≈ 0.235. Very small — little variability because the test is so reliable.

Probability the disease is identified within the first 3 tests:

P(X ≤ 3) = 1 − (0.05)^3 = 1 − 0.000125 ≈ 0.9999

Essentially certain. The test is so accurate that the disease is identified on the first or second test in virtually all cases.

## Test-Taking Strategies

**Mnemonic — "1 over p for the mean":** μX = 1/p. That's the entire mean formula. For standard deviation: σX = √(1−p)/p — roughly the same magnitude as the mean when p is small, reflecting the long tail.

**Quick recognition tool:** Binomial says "in n trials." Geometric says "until" or "the trial on which" or "the number of attempts needed." Train your eye to spot these keywords immediately — they appear in almost every geometric problem.

**Cumulative shortcut:** Always use P(X ≤ k) = 1 − (1−p)^k instead of summing individual probabilities. This saves 2–3 minutes per question and eliminates arithmetic errors on free-response items.

**Common exam formats:** Free-response asks you to (1) identify the distribution as geometric and state p, (2) calculate mean and standard deviation with interpretation, (3) find a cumulative probability. Multiple-choice often asks "which scenario is geometric?" or compares probabilities at different values of k.

**Frequent mistakes to avoid:**

- Don't use μ = np for geometric distributions. The geometric mean is 1/p.
- Don't confuse trial number X with failures (X−1).
- Don't sum individual probabilities when the cumulative shortcut is available.
- Always interpret mean and standard deviation in context — a bare number loses free-response points.

**Cross-topic connections:** Geometric distributions connect to the memoryless property — P(X > n+k | X > n) = P(X > k). Past failures don't change future probabilities. The concept of "independent trials" with a fixed success probability carries forward into hypothesis testing and simulation studies. The geometric distribution is also the discrete counterpart of the exponential distribution, which models waiting times in continuous settings.
