Suppose five cards are drawn from a deck. What is the probability of obtaining a flush (five cards of the same suit)?
Probability of getting a hand that has 5 cards of the same suit (flush, straight flush, royal flush)
Probability of getting a flush (and so excluding straight and royal flushes)
To find the probability, we need to find the fraction where the numerator is the number of ways to have a flush and the denominator is the number of 5 card hands possible.
Each of these numbers will be found using Combinations (we don't care about the order of the draw, merely of what ends up in our hand). The general formula for Combinations is:
First let's calculate the denominator (picking 5 random cards from a pack of 52 cards):
Let's evaluate it!
And now let's calculate the numerator.
We're going to calculate all hands that involve a flush (so not just a flush but also a straight flush and royal flush) so that we'll be looking at any hand that has five cards of the same suit (with a suit having 13 cards in total). We can express getting this with:
Keep in mind that there are 4 suits this can happen in, but we only want 1, and so we need to multiply by
Let's evaluate this!
(keep in mind that we've just calculated all hands that have a flush element to them, including straight flushes and royal flushes!)
The probability of getting a hand with a flush is:
To exclude straight and royal flushes (these are hands that have 5 consecutive value cards in the same suit, such as 3, 4, 5, 6, 7 of hearts), we can deduct those possibilities from the 5148 flush hands. There are 10 different ways to get a straight (A-5, 2-6, 3-7,..., 10-A) and 4 suits, so we can deduct