Every year for Halloween, it is estimated that $5$ out of every $8$ houses give away candy.
(a) If we want to receive candy from $5$ different houses, what is the probability that we will need to visit at least $10$ of them?
I tried using a negative binomial distribution approach.
We are allow to use R to solve the problem.
Hence, I have $negbinom(5,5/8)$
I let X be the # of houses until we receive candy from 5
To find $P(X>=10)$ I use the cdf $1-P(X<=9)$
Using R I calculated $[1-pnbinom(4,5,5/8)]=0.2166$
Is any of this correct?