Skip to main content
Statistics LibreTexts

5.3: Geometric Distributions

  • Page ID
    24040
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    The geometric distribution is a discrete probability distribution used to find the probability of success when there are two outcomes to each trial, and the trials are independent with the same probability of occurrence. A geometric probability distribution results from a random experiment that meets all of the following requirements.

    1. Repeat the trials until you get a success.
    2. The trials must be independent.
    3. Each trial must have exactly two categories that can be labeled “success” and “failure.”
    4. The probability of a “success,” denoted by p, remains the same in all trials. The probability of “failure” is often denoted by q, thus q = 1– p.
    5. Random Variable, X, counts the number of trials until your first success

    If a random experiment satisfies all of the above, the distribution of the random variable X, where X counts the number of trials until the first success, is called a geometric distribution. If a discrete random variable X has a geometric distribution with the probability of success is p, we write X ~ G(p).

    The geometric distribution is P(X = x) = p ∙ q(x – 1) , x = 1, 2, 3, … where x is the number of trials up to the first success that you are trying to find the probability for, p is the probability of a success for one trial and q = 1 – p is the probability of a failure for one trial.

    Be careful, a “success” is not always a “good” thing. Sometimes a success is something that is “bad,” like finding a defect or getting in a car crash. The success will be the event from the probability question.

    A game of chance has only two possible outcomes to win or lose for each time you play. The probability of losing the game is 65%. You play this game until your first loss. What is the probability of playing the game exactly 6 times in a row?

    Solution

    We have independent trials with two outcomes, no set sample size and the same probability of success each time we play so we can use the geometric distribution. Let p = 0.65, which means q = 1 – 0.65 = 0.35 and x = 6. P(X = 6) = 0.65 ∙ 0.355 = 0.0034. This is the probability of winning the first 5 games and losing on the 6th game in which you would stop playing.

    TI-84: Press [2nd] [DISTR]. This will get you a menu of probability distributions. Press 0 or arrow down to geometpdf( and press [ENTER]. This puts geometpdf( on the home screen. Enter the values for p and x with a comma between each. Press [ENTER]. This is the probability density function and will return you the probability of exactly x successes. For the previous example, we would use geometpdf(0.65,6).

    clipboard_ec1243992ccb14d136c7ea55c7604de9e.png

    TI-89: Go to the [Apps] Stat/List Editor, then select F5 [DISTR]. This will get you a menu of probability distributions. Arrow down to Geometric Pdf and press [ENTER]. Enter the values for p and x into each cell. Press [ENTER]. This gives the probability density function and will return you the probability of exactly x successes.

    clipboard_e0f225e23b34de598775ae5b56e494688.png

    Flip a fair coin until you get a tail. What is the probability of flipping the coin exactly 8 times until you get a tail?

    Solution

    In this case the probability of a success is getting a tail on any one toss which is p = ½ = 0.5. We are interested in a success on the eighth flip so x = 8.

    P(X = 8) = 0.5 ∙ 0.57 = 0.00391.

    Figure 5-5 shows a graph of the discrete probability distribution.

    clipboard_ed3ecb75585b4072757080aab44d81ce4.png

    Figure 5-5

    When looking at a person’s eye color, it turns out that only 2% of people in the world have green eyes (not to be confused with hazel colored eyes). Randomly select people and look at their eye color. What is the probability that you get someone with green eyes on the 5th person?

    clipboard_ea3a312832f4b2046070ede8e3b77cc3c.png

    Solution

    The probability of a success is 0.02. We are looking for P(X = 5) = 0.02 ∙ 0.984 = 0.0184.

    Mean, Variance & Standard Deviation of a Geometric Distribution

    For a geometric distribution, μ, the expected number of successes, σ2 , the variance, and σ, the standard deviation for the number of success are given by the formulas, where p is the probability of success and q = 1 – p.

    \(\mu=\frac{1}{p} \quad \sigma^{2}=\frac{1-p}{p^{2}} \quad \sigma=\sqrt{\frac{1-p}{p^{2}}}\)


    This page titled 5.3: Geometric Distributions is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Rachel Webb via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.