Binomial and geometric distributions Knowledge-Based Study

Math · Data, Statistics & Probability · Math · Probability

Math topic explanations on Binomial and geometric distributions.

Study notes

  1. Bernoulli Trials and the Binomial Setting

    A Bernoulli trial is a random experiment with exactly two mutually exclusive outcomes, conventionally labeled success (with probability pp) and failure (with probability q=1−pq = 1 - p).

    A discrete random variable XX follows a Binomial distribution, written as X∼Bin(n,p)X \sim \text{Bin}(n, p), when it counts the total number of successes across a fixed number of independent and identical Bernoulli trials.

    Key Conditions for a Binomial Experiment

    • Fixed number of trials: The experiment consists of a predetermined number of trials, nn.
    • Two possible outcomes: Each trial results in either success or failure.
    • Constant probability: The probability of success, pp, remains the same for every trial.
    • Independence: The outcome of any trial does not influence any other trial.

    Probability Mass Function of the Binomial Distribution

    If X∼Bin(n,p)X \sim \text{Bin}(n, p), the probability of observing exactly kk successes in nn trials is given by the probability mass function (PMF):

    P(X=k)=(nk)pk(1−p)n−k,for k=0,1,2,…,nP(X = k) = \binom{n}{k} p^k (1 - p)^{n - k}, \quad \text{for } k = 0, 1, 2, \dots, n

    where (nk)=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n - k)!} denotes the binomial coefficient representing the number of ways to arrange kk successes among nn trials.

    Expectation and Variance

    • Expected Value (Mean): E[X]=μ=npE[X] = \mu = np
    • Variance: Var(X)=σ2=np(1−p)\text{Var}(X) = \sigma^2 = np(1 - p)
    • Standard Deviation: σ=np(1−p)\sigma = \sqrt{np(1 - p)}

    Example

    A fair six-sided die is rolled 5 times. Let XX be the number of times a 4 appears. Here, n=5n = 5 and p=16p = \frac{1}{6}.

    The probability of getting a 4 exactly twice is:

    P(X=2)=(52)(16)2(56)3=10⋅136⋅125216=6253888≈0.1608P(X = 2) = \binom{5}{2} \left(\frac{1}{6}\right)^2 \left(\frac{5}{6}\right)^3 = 10 \cdot \frac{1}{36} \cdot \frac{125}{216} = \frac{625}{3888} \approx 0.1608

    Waiting for the First Success

    Unlike the Binomial distribution where the number of trials is fixed, the Geometric distribution models the number of independent Bernoulli trials needed until the first success occurs.

    Let YY be the trial number on which the first success occurs. We write Y∼Geo(p)Y \sim \text{Geo}(p), where pp is the constant probability of success on each trial.

    Probability Mass Function

    For the first success to occur on trial kk, the preceding k−1k - 1 trials must all be failures, followed by a success on trial kk:

    P(Y=k)=(1−p)k−1p,for k=1,2,3,…P(Y = k) = (1 - p)^{k - 1} p, \quad \text{for } k = 1, 2, 3, \dots

    Cumulative Distribution Function

    The probability that the first success requires more than kk trials is simply the probability of getting kk consecutive failures:

    P(Y>k)=(1−p)kP(Y > k) = (1 - p)^k

    Consequently, the cumulative probability of achieving the first success on or before trial kk is:

    P(Y≤k)=1−P(Y>k)=1−(1−p)kP(Y \le k) = 1 - P(Y > k) = 1 - (1 - p)^k

    Summary of the Geometric Distribution

    • Expected Value (Mean): E[Y]=1pE[Y] = \frac{1}{p}
    • Variance: Var(Y)=1−pp2\text{Var}(Y) = \frac{1 - p}{p^2}
    • Memoryless Property: For positive integers ss and tt, P(Y>s+t∣Y>s)=P(Y>t)P(Y > s + t \mid Y > s) = P(Y > t) Past failures do not alter the likelihood of future success.

    Comparing Binomial and Geometric Models

    • What is fixed? In a Binomial distribution, the number of trials nn is fixed. In a Geometric distribution, the number of successes (namely 1) is fixed.
    • What is counted? Binomial counts the number of successes X∈{0,1,…,n}X \in \{0, 1, \dots, n\}. Geometric counts the trial number of the first success Y∈{1,2,3,… }Y \in \{1, 2, 3, \dots\}.
    • Support: Binomial random variables are bounded (finite support), whereas Geometric random variables can take arbitrarily large positive integer values (countably infinite support).