how do i calculate the odds of being dealt a flush in poker?
Tired of playing that game you move onto the poker room. You sit down to play a game where you are dealt 5 cards (A poker hand is dealt from a standard pack of 52 cards consisting of four suits of thirteen ranks). Using MATLAB and the function ‘nchoosek’ show how many possible hands you can be dealt. Being very lucky, the first hand you are dealt contains 5 cards of the same suit. Again using the function ‘nchoosek’, calculate the probability of this event occurring.
Public Comments
- We consider all the card in the deck to be unique, So the nCk function will give you the number k element of subsets of an n element set where order is not considered important. In this case the total possible 5 card hands is given by 52 C 5. Now you need to calculate the number of ways you could draw a hand of all the same suit. The total number of ways to draw 5 cards from a particular suit is, 13 C 5 However, there are 4 such suits, so the total number of flush hands is, 4 ( 13 C 5 ) So the probability of these event will be, the number of ways to get a flush / the total number of possible hands. 4 ( 13 C 5 ) / 52 C 5
Powered by Yahoo! Answers