[Math] Probability of having at least one ball of each color

probability

An urn contains $6$ red balls, $2$ green balls and $9$ white balls. If a set of $4$ balls is randomly selected, but whenever a ball is selected its color is noted and then it is replaced in the urn before the next selection:

What is the probability that we have at least one ball of each color?

My attempt: Let

$E_{1}$= event of having $2$ red balls, $1$ green ball and $1$ white ball;

$E_{2}$= event of having $1$ red ball, $2$ green balls and $1$ white ball;

$E_{3}$= event of having $1$ red ball, $1$ green ball and $2$ white balls.

Then the proability $P$ (of having at least one ball of each color) is $=P(E_{1})+P(E_{2})+P(E_{3})$.

$$P(E_{1})=({6\over 17})^{2}{2\over 17}{9\over 17}$$

$$P(E_{2})={6\over 17}({2\over 17})^{2}{9\over 17}$$

$$P(E_{3})={6\over 17}{2\over 17}({9\over 17})^{2}$$

Then the probability $$P=({6\over 17})^{2}{2\over 17}{9\over 17}+{6\over 17}({2\over 17})^{2}{9\over 17}+{6\over 17}{2\over 17}({9\over 17})^{2}$$

The thing is that my friend told me that I need to multiply this number by $12$ but I don't see why I need to do this

Can you please tell me if this is the correct answer? I would appreciate your help 🙂

Best Answer

Here the "pattern" $2$-$1$-$1$-$1$ is the only way our desired event can occur. That makes your approach a good one. With larger numbers, the number of patterns may become large, and the above kind of analysis becomes unwieldy. I suggest the following approach.

Our desired probability is $1$ minus the probability that at least one colour is missing. We find that probability.

The probability that red is missing is $\left(\frac{11}{17}\right)^4$. We can find similar expressions for the probability green is missing, and for the probability that white is missing.

Suppose we add together these three probabilities. Then we will have double-counted the situations in which two colours are missing. So we must subtract the sum of the "two colours missing" probabilities. For example, the probability that red and green are both missing is $\left(\frac{9}{17}\right)^4$.

The Inclusion/Exclusion procedure we have described is not much longer than yours for $4$ picks. And it remains essentially unchanged if we make, for example, $8$ picks: the exponents just change from $4$ to $8$.