Geometric distribution

    Understanding the Geometric Distribution

    The geometric distribution is a discrete probability distribution that models the number of trials needed to achieve the first success in a sequence of independent Bernoulli trials. Each trial has only two possible outcomes: success or failure, and the probability of success (denoted by p) remains constant from trial to trial.

    Conditions for a Geometric Distribution

    Before applying the geometric distribution, ensure the following conditions are met (often remembered by the acronym BINS):

    • Binary? Each trial must have only two outcomes: success or failure.
    • Independent? The outcome of one trial does not affect the outcome of any other trial.
    • Number of trials (until first success)? We are counting the number of trials until the first success occurs.
    • Success probability (p) is the Same? The probability of success remains constant for each trial.

    If these conditions are met, the random variable X, representing the number of trials until the first success, follows a geometric distribution, denoted as X ~ Geo(p).

    Probability Mass Function (PMF)

    The probability that the first success occurs on the k-th trial is given by the formula:

    P(X = k) = (1 - p)^(k-1) * p

    Where:

    • k is the number of trials until the first success (k = 1, 2, 3, ...)
    • p is the probability of success on any given trial.
    • (1 - p) is the probability of failure on any given trial, sometimes denoted as q.

    This formula reflects that there must be k-1 failures followed by one success.

    Mean (Expected Value) of a Geometric Distribution

    The expected value or mean of a geometric distribution, which represents the average number of trials needed to get the first success, is given by:

    E(X) = 1/p

    For example, if the probability of making a free throw is p = 0.7, then on average, it would take 1/0.7 ≈ 1.43 free throws to make the first one.

    Standard Deviation of a Geometric Distribution

    The standard deviation of a geometric distribution is given by:

    SD(X) = sqrt((1 - p) / p^2)

    This measures the typical spread of the number of trials around the mean.

    Cumulative Probability

    Sometimes, we are interested in the probability that the first success occurs within a certain number of trials. For example, P(X <= k) is the probability that the first success occurs on or before the k-th trial. This can be calculated as:

    P(X <= k) = 1 - P(X > k) = 1 - (1 - p)^k

    The probability of needing more than k trials means that the first k trials were all failures, hence (1 - p)^k.

    Distinction from Binomial Distribution

    It's crucial to distinguish the geometric distribution from the binomial distribution. While both deal with independent Bernoulli trials, the binomial distribution counts the number of successes in a fixed number of trials, whereas the geometric distribution counts the number of trials until the first success occurs.

    Practice questions

    1

    A student is taking a multiple-choice test. Each question has 5 choices, and only one is correct. If the student guesses randomly, what is the probability that the first correct answer occurs on the 3rd question?

    2

    On average, how many times would you expect to flip a fair coin until you get the first head?

    3

    What is the standard deviation for the number of trials needed to get the first success if the probability of success is 0.25?

    4

    A quality control inspector is checking items from an assembly line. There is a 5% chance that an item is defective. What is the probability that the first defective item is found within the first 2 inspections?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/statistics/unit-4-probability-random-variables-and-probability-distributions/geometric-distribution