I have 5 dice that I roll. I want to find that at least 2 values are the same and at least 3 values are the same.
So for k=2: $P(2) = 1-P(\text{all values distinct}) = 1-\frac{6*5*4*3*2}{6^5}$ but for k=3 I thought it's $P(3)= P(2)-P(\text{exactly 2 values are the same})$ where $P(\text{exactly 2 values are the same}) = 6*\binom{5}{2}* (1/6)^2 *(5/6)^3$ but I get $P(3)$ negative... can you please help?
Your equation for the probability of at least three being the same is incorrect. P[at least three are the same]=p[at least two are the same]+p[exactly three are the same]. What you have is p[at least two are the same]+p[exactly 2 are the same] which won't work.
Or to put it another way, if p[x] is the probability that exactly x dice are the same, the equation you have is p[1]+p[2]+p[2] instead of p[1]+p[2]+p[3]