Negative Binomial Distribution#
The negative binomial distribution models the probability distribution of the number of independent Bernoulli trials required to observe a predetermined number of failures, where each trial has only two possible outcomes (success or failure) and the probability of success remains constant across all trials.
A negative binomial random variable is denoted as followed:
where
\(r\) = number of sucessess
\(p\) = probability of success in a Bernoulli trial
Probability Mass Function (PMF)#
The pmf of the negative binomial distribution is as follows:
Expectation#
To derive the expected value of the negative binomial distribution, we must first note the following:
where
Because we know that the expected value of the geometric distribution is \(\frac{1}{p}\), we can use this to evaluate the expected value of the negative binomial distribution:
Variance#
We can similarly evaluate the variance of the negative binomial distribution: