Geometric Distribution: Formula, Examples & Practice

4 fully solved examples and 3 practice problems on the distribution of "first success"

What is the Geometric Distribution?

The geometric distribution models the number of independent, identical trials needed to achieve the first success. It answers: "What is the probability that the very first success occurs on the \(x\)-th trial?"

Conditions for a Geometric Experiment

  1. Independence — the outcome of any trial doesn't affect the others.
  2. Two outcomes per trial — success or failure only.
  3. Constant success probability \(p\) on every trial.
  4. Constant failure probability \(1-p\) on every trial.

Convention used on this page: the random variable \(X\) counts the trial number of the first success, so \(X \in \{1, 2, 3, \ldots\}\). Some textbooks instead count the number of failures before the first success; under that convention the PMF becomes \((1-p)^x p\) with \(x \in \{0, 1, 2, \ldots\}\) and the mean becomes \((1-p)/p\). The two differ by 1. Always check which convention a formula uses.

Formulas and Key Properties

Geometric distribution formulas
Quantity Formula
Probability mass function \( P(X = x) = (1-p)^{x-1}\,p \)
Mean (expected number of trials) \( \mu = \dfrac{1}{p} \)
Variance \( \sigma^2 = \dfrac{1-p}{p^2} \)
Standard deviation \( \sigma = \sqrt{\dfrac{1-p}{p^2}} \)

Cumulative Probability Formulas

These follow from summing a finite geometric series (derivation in Example 3):

Cumulative geometric distribution formulas
Event Formula
First success on or before trial \(n\) \( P(X \le n) = 1 - (1-p)^n \)
First success strictly before trial \(n\) \( P(X < n) = 1 - (1-p)^{n-1} \)
First success on or after trial \(n\) \( P(X \ge n) = (1-p)^{n-1} \)
First success strictly after trial \(n\) \( P(X > n) = (1-p)^n \)

Memoryless property. \( P(X > m + n \mid X > m) = P(X > n) \) — the geometric distribution is the discrete analogue of the exponential distribution. If you've already failed \(m\) times, the probability of waiting at least \(n\) more is the same as if you had just started.

Worked Examples with Step-by-Step Solutions

Example 1 — Coin toss until first tail

A fair coin is tossed repeatedly until the first tail appears. Here "success" is defined as getting a tail.

  1. Find the probability that the first tail appears exactly on the 5th toss.
  2. Calculate the mean and standard deviation of the number of tosses required.
  3. Plot the probability distribution for the first 10 trials.
View solution
  1. \( p = 0.5 \) (success = tail), \( 1 - p = 0.5 \).

    \[ P(X = 5) = (0.5)^4 \times 0.5 = (0.5)^5 = \frac{1}{32} = 0.03125 \]
  2. \[ \mu = \frac{1}{0.5} = 2 \text{ tosses}, \qquad \sigma = \sqrt{\frac{0.5}{0.25}} = \sqrt{2} \approx 1.414 \]
  3. For \(x = 1, \ldots, 10\), the PMF is \(P(X = x) = (0.5)^x\).

    Geometric distribution for p = 0.5 showing probabilities halving at each trial from 0.5 down to about 0.001
    Figure 1 — Geometric distribution for \( p = 0.5 \).

    The cumulative probability for the first 10 trials is \( \sum_{x=1}^{10} P(X = x) = 1 - 0.5^{10} \approx 0.999 \).

Example 2 — Post-secondary degrees in a population

In a given region, 45% of adults have post-secondary degrees. People are randomly selected one by one.

  1. What is the probability that the third person selected is the first one to have a degree?
  2. What is the probability that the first degree-holder is found by the 4th selection (inclusive)?
View solution

\( p = 0.45 \), \( 1 - p = 0.55 \).

  1. \[ P(X = 3) = (0.55)^2 \times 0.45 = 0.3025 \times 0.45 = 0.136125 \approx 0.1361 \]
  2. Summing individually:

    \[ P(X \le 4) = 0.45 + 0.2475 + 0.1361 + 0.0749 = 0.9085 \]

    Or, faster, using the cumulative formula:

    \[ P(X \le 4) = 1 - (0.55)^4 = 1 - 0.0915 = 0.9085 \]

Example 3 — Deriving the cumulative formulas

Starting from the PMF \( P(X = x) = p(1-p)^{x-1} \), derive:

  1. \( P(X \le n) \)
  2. \( P(X < n) \)
  3. \( P(X \ge n) \)
  4. \( P(X > n) \)
View solution
  1. Finite geometric series:

    \[ P(X \le n) = \sum_{x=1}^{n} p(1-p)^{x-1} = p \cdot \frac{1 - (1-p)^n}{1 - (1-p)} = p \cdot \frac{1 - (1-p)^n}{p} = 1 - (1-p)^n \]
  2. Since \(X\) is integer-valued, "\(X < n\)" = "\(X \le n-1\)":

    \[ P(X < n) = P(X \le n-1) = 1 - (1-p)^{n-1} \]
  3. By the complement rule:

    \[ P(X \ge n) = 1 - P(X < n) = 1 - \bigl[1 - (1-p)^{n-1}\bigr] = (1-p)^{n-1} \]
  4. By the complement rule:

    \[ P(X > n) = 1 - P(X \le n) = 1 - \bigl[1 - (1-p)^n\bigr] = (1-p)^n \]

Example 4 — Quality control with 99% non-defective

A manufacturing company produces tools where 99% are verified to be non-defective. Tools are randomly selected off the assembly line. "Success" = picking a non-defective tool.

  1. What is the probability that the second tool tested is the first non-defective one?
  2. What is the probability that the first non-defective tool is found by the second test?
  3. What is the probability that the first non-defective tool is only found after 10 tests?
View solution

\( p = 0.99 \), \( 1 - p = 0.01 \).

  1. \[ P(X = 2) = (0.01)^1 \times 0.99 = 0.0099 \]
  2. \[ P(X \le 2) = 1 - (0.01)^2 = 1 - 0.0001 = 0.9999 \]
  3. \[ P(X > 10) = (0.01)^{10} = 10^{-20} \]

    This is essentially zero — which makes sense given the 99% success rate.

Practice Problems

Practice 1 — First six on a die

A fair die is rolled until the first six appears. What is the probability the first six appears exactly on the 4th roll?

Answer

\( p = 1/6 \), \( 1 - p = 5/6 \).

\[ P(X = 4) = \left(\tfrac{5}{6}\right)^3 \cdot \tfrac{1}{6} = \frac{125}{1296} \approx 0.0965 \]

Practice 2 — Cumulative with a rare event

A certain defective chip has a 2% defect rate. Chips are tested until a defect is found. What is the probability the first defect is found within 10 tests?

Answer

\( p = 0.02 \), \( 1 - p = 0.98 \).

\[ P(X \le 10) = 1 - (0.98)^{10} \approx 1 - 0.8171 = 0.1829 \]

Practice 3 — Memoryless property

For a geometric random variable with \(p = 0.3\), find \( P(X > 5 \mid X > 3) \).

Answer

By the memoryless property, \( P(X > 5 \mid X > 3) = P(X > 2) \).

\[ P(X > 2) = (1 - 0.3)^2 = 0.7^2 = 0.49 \]

Direct computation gives the same: \( P(X > 5) / P(X > 3) = 0.7^5 / 0.7^3 = 0.7^2 = 0.49 \). ✓

Key Takeaways

Frequently Asked Questions

What is the geometric distribution?

It models the number of independent identical Bernoulli trials until the first success. If success probability is \(p\), then \(P(X = x) = (1-p)^{x-1} p\) for \(x = 1, 2, 3, \ldots\).

What does "number of trials" vs. "number of failures" convention mean?

The trials convention counts \(X = 1, 2, 3, \ldots\) with PMF \((1-p)^{x-1} p\) and mean \(1/p\). The failures convention counts \(Y = 0, 1, 2, \ldots\) with PMF \((1-p)^y p\) and mean \((1-p)/p\). This page uses the trials convention. Always check which convention a formula uses.

What is the memoryless property of the geometric distribution?

\(P(X > m + n \mid X > m) = P(X > n)\). If you've already failed \(m\) times, the probability of waiting at least \(n\) more doesn't depend on \(m\). The geometric distribution is the discrete analogue of the exponential distribution.

How do I compute cumulative geometric probabilities quickly?

Use the closed-form sums: \(P(X \le n) = 1 - (1-p)^n\), \(P(X < n) = 1 - (1-p)^{n-1}\), \(P(X \ge n) = (1-p)^{n-1}\), \(P(X > n) = (1-p)^n\). These come from summing the geometric series and avoid summing many individual terms.

Related Probability & Statistics Topics

Last updated: October 20, 2026