Flip coins until you get r heads - how many tails will you see?
The Negative Binomial Distribution models the number of failures (tails) before achieving a fixed number of successes (heads) in a sequence of independent Bernoulli trials.
Where: X = number of tails, r = target heads, p = probability of heads, k = number of tails
Click "Run Single Trial" to start flipping!