In poker, a 5-card hand is called two pair if there are two cards of one rank, two cards of another rank, and a fifth card of a third order of the cards doesn't matter (so, example, QQ668 and 68QQ6 are the same). How many 5-card hands are two pair?
1 Answer
Explanation:
Let's work this through in bits.
Ok - first to know is that a standard card deck has 52 cards. There are 13 cards (1 - 10, Jack, Queen, King - let's call them Ordinals) in each of four Suits (spades, clubs, hearts, diamonds), which is
Ok, let's now work through the number of 5 card hands that are 2 pairs.
The first two cards will be the first card each of the 2 pairs. We have 13 ordinals to choose from and we need one, so we can express that as:
(I'm using C to mean Combination, the first number being the number of things we can choose from, and the second number being the number being selected). So there are 78 different ways to pick 2 ordinals from a group of 13.
Next thing we need to do is pick 2 cards from each suit for each ordinal. We can write doing it once as:
and we need to do it twice, so let's write the formula again for the other suit:
So now we have 2 cards in one ordinal and 2 in the other ordinal. Two pairs.
Lastly we need to account for the last card in 5 card hand. There are 11 ordinals to pick from and we need only 1:
and from that one ordinal we need 1 suit:
To find the number of 2-pair hands, we multiply it all together:
This wikipedia page has the odds for all hands:
https://en.wikipedia.org/wiki/Poker_probability#Frequency_of_5-card_poker_hands