User:Reuqr/Test page

Frequency of 5-card poker hands
The following enumerates the (absolute) frequency of each hand, given all combinations of 5 cards randomly drawn from a full deck of 52 without replacement. Wild cards are not considered. The probability of drawing a given hand is calculated by dividing the number of ways of drawing the hand by the total number of 5-card hands (the sample space, $$\, \begin{matrix} {52 \choose 5} = 2,598,960 \end{matrix}$$ five-card hands). The odds are defined as the ratio (1/p) - 1 : 1, where p is the probability. Note that the cumulative column contains the probability of being dealt that hand or any of the hands ranked higher than it. (The frequencies given are exact; the probabilities and odds are approximate.)

The nCr function on most scientific calculators can be used to calculate hand frequencies; entering nCr with 52 and 5, for example, yields $$\begin{matrix} {52 \choose 5} = 2,598,960 \end{matrix}$$ as above.

The royal flush is a case of the straight flush. It can be formed 4 ways (one for each suit), giving it a probability of 0.000154% and odds of 649,740 : 1.

When ace-low straights and ace-low straight flushes are not counted, the probabilities of each are reduced: straights and straight flushes each become 9/10 as common as they otherwise would be. The 4 missed straight flushes become flushes and the 1,020 missed straights become no pair.

Note that since suits have no relative value in poker, two hands can be considered identical if one hand can be transformed into the other by swapping suits. For example, the hand 3♣ 7♣ 8♣ Q♠ A♠ is identical to  3♦ 7♦ 8♦ Q♥ A♥  because replacing all of the clubs in the first hand with diamonds and all of the spades with hearts produces the second hand. So eliminating identical hands that ignore relative suit values, there are only 134,459 distinct hands.

The number of distinct poker hands is even smaller. For example, 3♣ 7♣ 8♣ Q♠ A♠ and  3♦ 7♣ 8♦ Q♥ A♥  are not identical hands when just ignoring suit assignments because one hand has three suits, while the other hand has only two—that difference could affect the relative value of each hand when there are more cards to come. However, even though the hands are not identical from that perspective, they still form equivalent poker hands because each hand is an A-Q-8-7-3 high card hand. There are 7,462 distinct poker hands.

Derivation of frequencies of 5-card poker hands
of the binomial coefficients and their interpretation as the number of ways of choosing elements from a given set. See also: sample space and event (probability theory).


 * Straight flush &mdash; Each straight flush is uniquely determined by its highest ranking card; and these ranks go from 5 (A-2-3-4-5) up to A (10-J-Q-K-A) in each of the 4 suits. Thus, the total number of straight flushes is:
 * $${10 \choose 1}{4 \choose 1} = 40$$
 * Royal straight flush &mdash; A royal straight flush is a subset of all straight flushes in which the ace is the highest card (ie 10-J-Q-K-A in any of the four suits). Thus, the total number of royal straight flushes is
 * $${5 \choose 5}{8 \choose 0}{4 \choose 1} = 4$$
 * or simply $${4 \choose 1} = 4$$. Note: this means that the total number of non-Royal straight flushes is 36.


 * Four of a kind &mdash; Any one of the thirteen ranks can form the four of a kind by selecting all four of the suits in that rank. The final card can have any one of the twelve remaining ranks, and any suit. Thus, the total number of four-of-a-kinds is:
 * $${13 \choose 1}{4 \choose 4}{12 \choose 1}{4 \choose 1} = 624$$


 * Full house &mdash; The full house comprises a triple (three of a kind) and a pair. The triple can be any one of the thirteen ranks, and three of the four cards of this rank are chosen.  The pair can be any one of the remaining twelve ranks, and two of the four cards of the rank are chosen.  Thus, the total number of full houses is:
 * $${13 \choose 1}{4 \choose 3}{12 \choose 1}{4 \choose 2} = 3,744$$


 * Flush &mdash; The flush contains any five of the thirteen ranks, all of which belong to one of the four suits, minus the 40 straight flushes. Thus, the total number of flushes is:
 * $${13 \choose 5}{4 \choose 1} - 40 = 5,108$$


 * Straight &mdash; The straight consists of any one of the ten possible sequences of five consecutive cards, from 5-4-3-2-A to A-K-Q-J-10. Each of these five cards can have any one of the four suits.  Finally, as with the flush, the 40 straight flushes must be excluded, giving:
 * $${10 \choose 1}{4 \choose 1}^5 - 40 = 10,200$$


 * Three of a kind &mdash; Any of the thirteen ranks can form the three of a kind, which can contain any three of the four suits. The remaining two cards can have any two of the remaining twelve ranks, and each can have any of the four suits.  Thus, the total number of three-of-a-kinds is:
 * $${13 \choose 1}{4 \choose 3}{12 \choose 2}{4 \choose 1}^2 = 54,912$$


 * Two pair &mdash; The pairs can have any two of the thirteen ranks, and each pair can have two of the four suits. The final card can have any one of the eleven remaining ranks, and any suit.  Thus, the total number of two-pairs is:
 * $${13 \choose 2}{4 \choose 2}^2{11 \choose 1}{4 \choose 1} = 123,552$$


 * Pair &mdash; The pair can have any one of the thirteen ranks, and any two of the four suits. The remaining three cards can have any three of the remaining twelve ranks, and each can have any of the four suits.  Thus, the total number of pair hands is:
 * $${13 \choose 1}{4 \choose 2}{12 \choose 3}{4 \choose 1}^3 = 1,098,240$$


 * No pair &mdash; A no-pair hand contains five of the thirteen ranks, discounting the ten possible straights, and each card can have any of the four suits, discounting the four possible flushes. Alternatively, a no-pair hand is any hand that does not fall into one of the above categories; that is, any way to choose five out of 52 cards, discounting all of the above hands. Thus, the total number of no-pair hands is:
 * $$\left[{13 \choose 5} - 10\right]\left[{4 \choose 1}^5 - 4\right] = {52 \choose 5} - 1,296,420 = 1,302,540$$


 * Any five card poker hand &mdash; The total number of five card hands that can be drawn from a deck of cards is found using a combination selecting five cards, in any order where n refers to the number of items that can be selected and r to the sample size; the "!" is the factorial operator:
 * $${n\choose r} = {{n!} \over {r!(n - r)!}} = {52 \choose 5} = {{52!} \over {5!(52 - 5)!}} = 2,598,960$$