2011-11-15, 09:57 PM
Permutation isn't important, since the order doesn't matter. First, you'll need to know how many hands are possible using a standard deck of 52 cards. So you'll need to do Combination(52 x 5) = 2,598,960.
Then you need to look at each specific case and how many possible ways you can get that hand. For example, a Straight Flush can be:
- A, 2, 3, 4, 5
- 2, 3, 4, 5, 6
- 3, 4, 5, 6, 7
...
- 9, 10, J, Q, K
- 10, J, Q, K, A (Royal Flush)
So, you have 10 possible ways of getting a Straight Flush (including a Royal Flush) and there's 4 suits, so there are 40 possible Straight Flushes in a deck of cards. Divide it by the number of hands and you get the probability of getting a Straight Flush.
40 / 2,598,960 = 0.00001539...
For the Four of a Kind, it would be the Four of a Kind + any card.
- A, A, A, A, 2 (Clubs)
- A, A, A, A, 2 (Diamonds)
...
- K, K, K, K, Q (Hearts)
- K, K, K, K, Q (Spades)
You'd have the 13 possible Four of a Kinds + any of the other 48 cards (52 - 4 cards), which is 624. There are 624 way of getting a Four of a Kind.
624 / 2,598,960 = 0.00024...
At least, I think that's how it's done. I really hated Probability & Statistics class. : P
Then you need to look at each specific case and how many possible ways you can get that hand. For example, a Straight Flush can be:
- A, 2, 3, 4, 5
- 2, 3, 4, 5, 6
- 3, 4, 5, 6, 7
...
- 9, 10, J, Q, K
- 10, J, Q, K, A (Royal Flush)
So, you have 10 possible ways of getting a Straight Flush (including a Royal Flush) and there's 4 suits, so there are 40 possible Straight Flushes in a deck of cards. Divide it by the number of hands and you get the probability of getting a Straight Flush.
40 / 2,598,960 = 0.00001539...
For the Four of a Kind, it would be the Four of a Kind + any card.
- A, A, A, A, 2 (Clubs)
- A, A, A, A, 2 (Diamonds)
...
- K, K, K, K, Q (Hearts)
- K, K, K, K, Q (Spades)
You'd have the 13 possible Four of a Kinds + any of the other 48 cards (52 - 4 cards), which is 624. There are 624 way of getting a Four of a Kind.
624 / 2,598,960 = 0.00024...
At least, I think that's how it's done. I really hated Probability & Statistics class. : P

