I was looking at this website http://www.cwu.edu/~glasbys/POKER.HTM and I read the explanation for how to calculate the probability of getting a full house. To me, the logic basically looked like you figure out the number of possible ranks and multiply by the number of ways to choose the cards from that given rank.
In other words, for a full house $P=$ $$\frac{{13\choose1}{4\choose3}{12\choose1}{4\choose2}}{52\choose5}$$
Following this logic, I tried to calculate the probability of getting two pair. My (incorrect) logic was that there are 13 possible ranks for the first pair and $4\choose2$ ways to choose two cards from that rank, 12 possible ranks for the second pair and $4\choose2$ ways to choose two cards from that rank, and 11 possible ranks for last card and $4\choose1$ ways to choose a card from that rank.
So I tried $P=$ $$\frac{{13\choose1}{4\choose2}{12\choose1}{4\choose2}{11\choose1}{4\choose1}}{52\choose5}$$
Obviously my solution was incorrect. I read explanation and the correct answer is $P=$ $$\frac{{13\choose2}{4\choose2}{4\choose2}{11\choose1}{4\choose1}}{52\choose5}$$
I'm still a bit fuzzy on where I went wrong though. Can anyone help me understand this problem a little better? Thank you very much for your help.
First choose the two (different) values of the cards that will be pairs: $13 \choose 2$.
For each of these values, pick two suits from the four suits available: ${4 \choose 2}{4 \choose 2}$.
Then, since this is only two pair and not more, choose the value of the other card, and its suit: ${11 \choose 1}{4 \choose 1}$.
Finally, divide by the total number of combinations of all hands: $52 \choose 5$. And there it is:
$$P = \frac{{13\choose2}{4\choose2}{4\choose2}{11\choose1}{4\choose1}}{52\choose5}$$
The difference between this solution and that for the full house is that there is more "symmetry" for the two pair: both pairs are groups of two. With the full house, one is a group of three, and the other is a group of two. Aces over kings is distinct from kings over aces.
Here, you choose the card for the three of a kind, then pick the three suits: ${13 \choose 1}{4 \choose 3}$. Then, you choose the card for the pair, and pick the two suits: ${12 \choose 1}{4 \choose 2}$.