If we are looking to find the probability of observing the $6th$ head after $12$ independent flips and we let $X$ be the random variable for the number of flips of an unbiased coin
I found that there are 2 formulas about negative binomial distribtuion:
- $\frac{(1-p) r}{p}$
- $\frac{r}{p}$
So which one is the correct formula of mean of negative binomial distribution? The answer displays that I should use second one, why?
Let's consider $Y$ discrete random variable which gives amount of failures till first success in binomial experiment. Then $EY=\frac{q}{p}$
But if you take $Z$ discrete random variable which gives amount of failures till $r$ success, then you will have $EZ = \frac{rq}{p}$