I have four balls in the bag {🟢, 🔴, 🟡,🟠}. What's the probability of picking (with replacement) $3$ or more green balls and $1$ or less red ball out of $6$ tries?
When I am running experiment programmatically, result is $0.13$. $4096$ all possible combinations and $539$ combinations with $3$ or more greens and $1$ or less red. $539/4096\approx0.13$.
Now I am wondering what would be a math/formulaic way to derive same result?
I have tried multiplication rule but $P(\text{green}\ge3)\times P(\text{red}\le1) = 0.09$ which makes no sense 🙁
Any help would be much appreciated
Best Answer
Split the event into two disjoint events:
$P(E_1)=\sum_{k=3}^6\binom 6k(1/4)^k(2/4)^{6-k}$ since you pick $k$ out of $6$ tries to get $k\ge3$ green balls and on the remaining $6-k$ tries, you get either orange or yellow ball.
$P(E_2)=\sum_{k=3}^5\binom 6k(1/4)^k\binom{6-k}1(1/4)(2/4)^{6-k-1}$ since you pick $k$ out of $6$ tries to get $k\ge3$ green balls, $1$ try out of remaining $6-k$ tries to get a red ball and on the remaining $6-k-1$ tries, you get either orange or yellow.
The required probability is $P=P(E_1)+P(E_2)$ which indeed turns out to be $539/4096$.