I have a set of 9 different elements. How do I calculate the chance that when I pick one element out of the set 20 times, I have the same one 5 times or more?
I thought about using the following formula: if the probability of success on any trial is $p$, then the probability of exactly $k$ successes in $n$ trials is $$\binom{n}{k}p^k(1-p)^{n-k}.$$ (Source)
Then we have $p$ equal to $1/9$, $n$ equal to $20$ and $k$ equal to $5$ till $20$ and add up the values. We multiply this by $\binom{20}{4}$ so we take into account that there are $\binom{20}{4}$ ways to pick 4 elements out of 20.
Is this correct?
binomial(1,9)instead of(1/9). Same thing with(8/9). I use R https://www.r-project.org/about.html, but most programs/language can do this, even WA. :p – Em. Feb 16 '16 at 09:21