Chapter 3: Discrete Random Variables and Their Probability ...

Recall that for the negative binomial distribution, X = number of trials required for the rth success. However, R uses a different variable: Y = number of failures in the sequence of trials where the last trial ends in the rth success. So to find the probability for a negative binomial random variable X with parameters r = 4 successes and p = 0.6, ................
................