
Cristian M. answered 07/15/22
MS Statistics Graduate with 5+ Years of Tutoring Experience
So here are the major parts of this problem: calculating a probability of success p (not a common task in a statistics class since it's typically provided for you) and applying the negative binomial distribution (since you're finding a certain number of successes upon reaching the last of a certain number of trials).
Let's calculate p first. Each drum is independent of each other, and we're looking for three drums coming up on eggplant for success. So this probability is p = (6/9)(5/9)(1/9) = 30/(93) = 30/729 = 10/243
So p = 10/243. This is half the battle. Now, we apply the negative binomial distribution.
The negative binomial pmf is defined/parameterized in a number of ways, but I'll use this representation:
f(x) = P(X = x) = (x-1)C(r-1)*(1-p)x-rpr
This applies for two possible outcomes (in our case, jackpot or not), independent trails (in our case, one spin of the drums won't affect the next spin of the drums), and p remaining the same across trials (in our case, each spin of the drums has the same probability p of getting a jackpot).
We are looking for the probability of r = 5 successes (jackpots), with the fifth (and last) jackpot being on the 20th attempt, so x = 20. To be clear on X, it is the number of trials until the rth success.
So we have p = 10/243, 1-p = 1 - (10/243) = 233/243, x = 20, r = 5.
Plug it in!
P(X = x) = (x-1)C(r-1)*(1-p)x-rpr
P(X = 20) = (20-1)C(5-1)*(1-(10/243))20-5(10/243)5
P(X = 20) = 19C4*(233/243)15(10/243)5 <--- exact
P(X = 20) ≈ 0.00024, or about 0.024%. <----- approximate
I hope this helps!