# 每個撲克組合贏得攤牌的概率是多少？

``````High card wins: 100
Pair wins     : 5.80
Two pairs win : 3.10
Set wins      : 6.80
Straight wins : 5.70
Flush wins    : 8.70
Fullhouse wins: 8.70
Straight flush: 100
Royal flush   : 100
``````

So, I did bruteforce the thing, but not the whole thing. I took 200000 random samples (a sample contains a table and 6 2-card hands) and found a maximum combination among each of them. Turns out, some coefficients are, in fact, better than others (and some of them marginally), yet none of them are good enough considering the expected value.

``````1709.4017094
6.24024961
3.26679952
7.1857148
6.02119461
9.2042892
9.17010546
116.75423234
645.16129032
nan
``````

The `nan` thing means, that among `200000` samples the program never met any royal flush. So, speaking of the expected values:

``````HC: -0.94149994
OP: -0.06451613
TP: -0.06060606
SE: -0.05555556
ST: -0.05
FL: -0.05434783
FH: -0.05434783
QU: -0.31506849
SF: -0.8450093
RF:  nan
``````

Which means, that betting on One Pair will lose you 6.45% of your money on average. The least money-losing bet turns out to be Straight and anything below One Pair and above Full-House is a dead bet.