Here's an explanation of the Probability Mass Function (PMF) for the Negative Binomial Distribution:
Negative Binomial Distribution:
The Negative Binomial Distribution is a discrete probability distribution that models the number of failures until the r-th success in a sequence of independent and identically distributed Bernoulli trials, each with a success probability p. The distribution is characterized by two parameters:
r (required number of successes): a positive integer. This represents the number of successful trials at which the experiment stops. For example, if r = 3, the experiment stops after the third success.
p (probability of success on each trial): a real number in the interval (0, 1). This is the probability of achieving a success in any single trial.
Probability Mass Function (PMF):
The PMF of the Negative Binomial Distribution, denoted as NB(r, p), gives the probability of observing exactly k failures before the r-th success. The PMF is defined as:
P(X = k) = (k + r - 1 choose r - 1) * p^r * (1 - p)^k
where:
X: the random variable representing the number of failures until the r-th success
k: the number of failures until the r-th success (non-negative integer, k = 0, 1, 2, ...)
r: the required number of successes (positive integer)
p: the probability of success on each trial (real number in (0, 1))
(k + r - 1 choose r - 1): the binomial coefficient, also written as C(k + r - 1, r - 1) or ∑(k + r - 1, r - 1), calculated as (k + r - 1)! / ((r - 1)! \* k!)
Interpretation:
- The term
(k + r - 1 choose r - 1) represents the number of ways to arrange k failures and r - 1 successes in k + r - 1 trials, which is the number of ways to have k failures before the r-th success.
p^r is the probability of achieving r successes.
(1 - p)^k is the probability of observing k failures.
Example:
Suppose we want to find the probability of observing exactly 3 failures before the 2nd success in a sequence of independent trials, each with a success probability of 0.7.
r = 2 (required number of successes)
p = 0.7 (probability of success on each trial)
k = 3 (number of failures until the 2nd success)
Using the PMF:
P(X = 3) = (3 + 2 - 1 choose 2 - 1) * 0.7^2 * (1 - 0.7)^3
= (4 choose 1) * 0.7^2 * 0.3^3
= 4 * 0.49 * 0.027
≈ 0.053 (or 5.3%)
Relationship to Other Distributions:
- Geometric Distribution: A special case of the Negative Binomial Distribution when
r = 1, modeling the number of failures until the first success.
- Poisson Distribution: Approximates the Negative Binomial when
r is large and p is close to 1, modeling the number of events in a fixed interval.
Real-World Applications:
- Quality Control: Modeling the number of defective products until a specified number of non-defective ones are found.
- Insurance: Calculating the number of claims until a certain number of successful (non-claim) events occur.
- Biology: Analyzing the number of failures (e.g., unsuccessful gene expressions) before a specified number of successes (e.g., successful gene expressions).