I have a basket with 4 balls with different colors. What is the expected value of distinct colors I can see after picking 4 times from bin. I return the ball back after each try.
I tried computing probabilities of number of colors
$$\mathbb{P}(1) = \binom 41 \times \frac 1{4^4}$$
$$\mathbb{P}(4) = 1 \times \frac 34 \times \frac 24 \times \frac 14$$
But I struggle with computing $\mathbb{P}(2)$ and $\mathbb{P}(3)$. I was thinking:
$$\mathbb{P}(2) = \binom 42 \times \frac 1{2^4} - \mathbb{P}(1) = \frac 6{16} - \frac 1{64} = \frac {23}{64}$$ but I was told that I am wrong.
The probability of obtaining two colours twice each is $$\frac{4\times3\times3}{4^4}=\frac{9}{64}$$ (pick the colour which occurs first; pick another place for the same colour; pick the remaining colour). The probability of obtaining one colour once and another three times is $$\frac{4\times4\times3}{4^4}=\frac{12}{64}$$ (pick the colour to occur once; place it; pick the other colour). So $$P(2)=\frac{21}{64}\ .$$