<s>[INST] Probability of at least 3 identical numbers from an array I have an array {1, 2, 3, 4, 5} and I extract 4 random numbers. I want to find out the probability that at least 3 numbers are identical.
I concluded that it's the probability of having exactly 3 identical numbers added to the probability of having exactly 4 identical numbers.
The probability of having exactly 3 numbers is:  $$\binom{4}{3}*p^{3}*(1-p)^{4-3}$$
Now, my issue is, who is p? As far as I understand, p is: $$\frac{1}{5}$$
Since it represents the probability of extracting any random number, but I'm not sure.
 [/INST] You calculated the probability of getting at least three of a $particular$ number. However, we can get at least three of $any$ of the five numbers.
Let $X$ denote the number of identical numbers. First we compute $P(X=3)$.
We must get three of one number and one of another. First choose one of the five numbers to be obtained three times. Then denote $p=\frac{1}{5}$. Thus we have
$$\begin{align*}
P(X=3)
&= {{5 \choose 1} \cdot {4 \choose 3} \cdot\frac{1}{5}^3 \cdot\frac{4}{5}}\\\\
&=0.128
\end{align*}$$
Next compute $P(X=4)$. Choose one number of the five to be selected all four times. We have
$$\begin{align*}
P(X=4)
&= {5 \choose 1} \cdot {4 \choose 4} \cdot\frac{1}{5}^4\\\\
&=0.008
\end{align*}$$
Finally, 
$$P(X=3)+P(X=4)=0.128+0.008=0.136$$
</s>