I have a bag filled with $10$ balls each of different colours. Now I have picked one ball randomly and after looking at the colour, I will drop the ball again in the bag. I have repeated this for $10$ times. For all $10$ drawings, I will note the colour of the ball that is drawn. What is the probability that I will draw balls of only three different colours in the $10$ drawings (the colour of balls don't matter).
My attempt is that we can have a probability of $$\frac{10 \cdot 9 \cdot 8 \cdot 3^7}{10^{10}}$$ Is this the correct answer? Else please explain the correct one.
There are $\tfrac{10\cdot 9\cdot 8}{3\cdot 2\cdot 1}$ ways to select three distinct colours. That is also written as $\binom {10}3$ or $^{10}\mathrm C_3$.
There is a probability of $\tfrac{3^{10}}{10^{10}}$ for obtaining a drawing no more than those three distinct colours when selecting from $10$ distinct items with replacement.
However, that includes drawings of only one or two of those three colours - it does not ensure the selection contains all three.
So use the Principle of Inclusion and Exclusion.