# An urn contains 5 red, 2 blue, and 9 green balls. Six balls are drawn.

Q: An urn contains 5 red, 2 blue, and 9 green balls. Six balls are drawn. Assuming the drawing is WITH replacement, what is the probability of getting 1 red, 2 blue, and 3 green balls?

This is an exam question I got wrong. My answer was:

$$\frac{{5 \choose 1}{2 \choose 2}{9 \choose 3}}{{16 \choose 6}}$$

I checked other questions, such as this one, and they approached it the same way. What am I missing?

• You miss that in your problem drawing is with replacement. For example, with your calculation you would get zero probability to draw $3$ green balls, while it's clearly possible. – mihaild Apr 30 '19 at 17:44
• Why? I included "9 choose 3" in the fraction. – juliodesa Apr 30 '19 at 17:46
• Oops, a typo from my part: it should be $3$ blue balls. – mihaild Apr 30 '19 at 17:46
• But there are only 2 blue balls in the urn. – juliodesa Apr 30 '19 at 17:49
• And yet, since each time a ball is pulled out, immediately after looking at its color it is put back in it has the ability of being drawn again immediately after. – JMoravitz Apr 30 '19 at 17:50

Hint: the question you linked is looking at drawing balls without replacement. The way to approach the problem changes if you put each ball back into the urn after you draw it (i.e. with replacement), and the formula you used isn't correct for this situation.

• So this would be the answer to the question if it was asking without replacement? What's the answer for with replacement then? – juliodesa Apr 30 '19 at 17:47
• @juliodesa You've heard of the binomial distribution I hope, yes? How about the multinomial distribution? – JMoravitz Apr 30 '19 at 17:48

Since there is replacement there is no conditional probability, this means that the answer is simply:

$$\frac{6!}{3!2!1!}p( \color{red}\bullet \cap \color{blue}\bullet \cap \color{blue} \bullet \cap\color{green}\bullet \cap\color{green}\bullet\cap\color{green}\bullet)=\frac{6!}{3!2!1!}p(\color{red}\bullet)p^2(\color{blue}\bullet )p^3(\color{green}\bullet \color{green})=60\left(\frac{5}{16}\right)\left(\frac{2}{16}\right)^2 \left(\frac{9}{16}\right)^3=\frac{54675}{1048576}\approx 5.21 \%$$

Where the factor $$\frac{6!}{3!2!1!}$$ indicates the number of permutations of the sequence of drawings.

:)

• My graphic is so lovely xd :) – Eureka Apr 30 '19 at 17:56
• @callculus I was too concentrated on the graphics lol – Eureka Apr 30 '19 at 17:58