Statistics & Probability · Grades 11, 12

The Geometric Distribution: Waiting for the First Success

Quick answer

When independent trials each succeed with the same probability p, the number of the trial on which the first success happens follows a geometric distribution. The first success comes on trial k with probability (1 − p)^(k−1)·p: k − 1 failures, then a success. The chance of needing more than n trials is (1 − p)ⁿ, and the average wait is 1/p trials: six rolls, on average, for a die to show a six.

What you'll learn

  • Recognize a geometric setting
  • Compute P(first success on trial k)
  • Find the chance of waiting more than n trials
  • Use the mean 1/p and standard deviation √(1 − p)/p

Waiting for a six

Roll a die until a six appears. How many rolls will it take? Each roll succeeds with p=16p = \tfrac{1}{6}, independently of the others. Let XX be the number of the roll on which the first six appears. The first six comes on roll 33 exactly when rolls 11 and 22 fail and roll 33 succeeds:

P(X=3)=(56)2⋅16=25216≈0.1157P(X = 3) = \left(\tfrac{5}{6}\right)^2 \cdot \tfrac{1}{6} = \frac{25}{216} \approx 0.1157

In general, XX has a geometric distribution:

P(X=k)=(1−p)k−1 p,k=1,2,3,…P(X = k) = (1 - p)^{k - 1}\,p, \qquad k = 1, 2, 3, \ldots

The binomial distribution fixes the number of trials and counts successes. The geometric fixes the number of successes, one, and counts trials.

Why the average wait is 1/p

Think of a long run of trials. Successes happen in a fraction pp of them, so over NN trials there are about NpNp successes, spread through the run. The gaps between them, which are the waiting times, must add up to about NN. So the average gap is NNp=1p\tfrac{N}{Np} = \tfrac{1}{p}. The rarer the success, the longer the average wait, in exact inverse proportion. For a die, 11/6=6\tfrac{1}{1/6} = 6 rolls.

The standard deviation is 1−pp\tfrac{\sqrt{1 - p}}{p}, close to the mean when pp is small: waiting times are very spread out.

Worked examples

Common mistakes

Practice problems

  1. A fair coin is tossed until it lands heads. Find the chance the first head is on toss 55.

    Answer

    132≈0.031\tfrac{1}{32} \approx 0.031

    Full solution

    (12)4⋅12\left(\tfrac{1}{2}\right)^4 \cdot \tfrac{1}{2}.

  2. What is the chance a coin needs more than 33 tosses to land heads?

    Answer

    18\tfrac{1}{8}

    Full solution

    The first 33 must be tails: (12)3\left(\tfrac{1}{2}\right)^3.

  3. On average, how many tosses does a fair coin need to land heads?

    Answer

    22

    Full solution

    1p=11/2\tfrac{1}{p} = \tfrac{1}{1/2}.

  4. Find the mean and standard deviation of a geometric variable with p=0.2p = 0.2.

    Answer

    Mean 55; standard deviation about 4.474.47

    Full solution

    10.2\tfrac{1}{0.2} and 0.80.2\tfrac{\sqrt{0.8}}{0.2}.

  5. A die is rolled until a six appears. Find the chance the first six is on roll 33 or earlier.

    Answer

    About 0.4210.421

    Full solution

    1−(56)3=1−125216=912161 - \left(\tfrac{5}{6}\right)^3 = 1 - \tfrac{125}{216} = \tfrac{91}{216}.

  6. A website visitor buys something with probability 0.050.05. On average, how many visitors arrive before the first sale, counting the buyer?

    Answer

    2020

    Full solution

    10.05\tfrac{1}{0.05}.

  7. Show that the probabilities P(X=k)P(X = k) add to 11.

    Answer

    They form a geometric series with first term pp and ratio 1−p1 - p, whose sum is p1−(1−p)=1\tfrac{p}{1 - (1 - p)} = 1.

    Full solution

    p+(1−p)p+(1−p)2p+⋯p + (1 - p)p + (1 - p)^2p + \cdots, an infinite geometric series.

  8. After 1010 rolls without a six, a player says a six is now due. What is the chance of a six on the next roll?

    Answer

    Still 16\tfrac{1}{6}

    Full solution

    Rolls are independent. The geometric distribution is memoryless: the remaining wait has the same distribution as a fresh start.

Frequently asked questions

What is a geometric distribution?

The distribution of the trial number on which the first success happens, in independent trials with the same success probability p.

What is the formula for a geometric probability?

P(X = k) = (1 − p)^(k−1) · p: k − 1 failures followed by one success.

What is the mean of a geometric distribution?

1/p. If each trial succeeds with probability 1/6, the first success takes 6 trials on average.

How is it different from the binomial distribution?

The binomial counts successes in a fixed number of trials. The geometric counts trials until the first success, so the number of trials is the random part.

What is the chance of needing more than n trials?

(1 − p)ⁿ, the chance that the first n trials are all failures.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSS.MD.A.3Using Probability to Make Decisions(+) Develop a probability distribution for a random variable defined for a sample space in which theoretical probabilities can be calculated; find the expected value.