0% found this document useful (0 votes)
6 views1 page

Poker Flush Probability Calculation

The document discusses the probability of being dealt a flush in straight poker. It provides the solution steps and code to calculate this probability as 0.001981 or 0.198% by dealing 5 cards from a standard 52 card deck to a player and considering all possible combinations.

Uploaded by

lord97huck
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Poker Flush Probability Calculation

The document discusses the probability of being dealt a flush in straight poker. It provides the solution steps and code to calculate this probability as 0.001981 or 0.198% by dealing 5 cards from a standard 52 card deck to a player and considering all possible combinations.

Uploaded by

lord97huck
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Problem 1.

September 12, 2022

Solution
In straight poker, five cards are dealt to each player from a deck of ordinary playing cards.
1. What is the probability that the a player will be dealt a flush?

[1]: from numpy import arange


from itertools import combinations

deck = arange(0, 52)


suit = arange(0,13)

hands = len(list(combinations(deck, 5)))


flush = len(list(combinations(suit, 5)))

flush = (4*flush)/hands
print("The probability of being dealt flush is: %.6f (%.3f%%)" % (flush,␣
,→flush*100))

The probability of being dealt flush is: 0.001981 (0.198%)

You might also like