The question comes with calculating combos with a pair/ high card. With a pair in 5-card poker you would just calculate the odds of a pair with 3 singletons. With the possibility of 4-card hands, those 3 singletons could complete the poker hands. Here's what I have so far:
The explanation is 13 possible ranks for the pair picking out 2 of 4 suits for that pair. we pick 3 more ranks out of 12 remaining for the singletons (all standard so far) and I subtract the 44 stretches (2 given pair of 2's, 4 given a pair of 7's, etc.) over the 13 ranks. I then multiply by 4^3 for the possible suits of the singletons and subtract 2 for the cases where all 3 singletons match either paired card. I then add back the straight flush with a pair possibilities because I think I double-subtracted them?
choosing 5 singletons out of 13 ranks and subtracting the 10 5straight stretches and 78(I calculated) 4straight stretches multiplied by 4^5 for all the suits of the singletons minus 4 5flushes and 20 4flushes
4 suits times picking 4 cards out of 13 ranks - 11 straight flush stretches * 39 non-suited kickers(5 card flush would outrank) - 120 5-card straights with 4 suited cards (I calculated)
9 4straights with 2 kicker ranks that would complete a 5straight (ie. not A,2,3,4 or J,Q,K,A) times 4 suits for the 4 cards - 4 sflushes times 40 kickers that wont improve the hand added to that 2 4straights of the same thing times 44 kickers that wont improve the hand. I then subtract the 4straight hands that are also 4flush hands (again that I calculated) since flush outranks straight
right now in my sheet I'm double-counting ~7k hand combinations and can't figure out where they're coming from. numbers where "I calculated" could easily be wrong. Thanks for any help
Quote: richodudeI'm trying to calculate the hand odds of 5-card stud with 4 and 5-card poker hands. To clarify all the normal poker hands with the addition of 4-card flushes and straights. For calculation purposes, a 4-card flush outranks a 4-card straight. Each of those hands lose to a three of a kind and beat a two pair. A math check is in dire need.
The question comes with calculating combos with a pair/ high card. With a pair in 5-card poker you would just calculate the odds of a pair with 3 singletons. With the possibility of 4-card hands, those 3 singletons could complete the poker hands. Here's what I have so far:
The explanation is 13 possible ranks for the pair picking out 2 of 4 suits for that pair. we pick 3 more ranks out of 12 remaining for the singletons (all standard so far) and I subtract the 44 stretches (2 given pair of 2's, 4 given a pair of 7's, etc.) over the 13 ranks. I then multiply by 4^3 for the possible suits of the singletons and subtract 2 for the cases where all 3 singletons match either paired card. I then add back the straight flush with a pair possibilities because I think I double-subtracted them?
choosing 5 singletons out of 13 ranks and subtracting the 10 5straight stretches and 78(I calculated) 4straight stretches multiplied by 4^5 for all the suits of the singletons minus 4 5flushes and 20 4flushes
4 suits times picking 4 cards out of 13 ranks - 11 straight flush stretches * 39 non-suited kickers(5 card flush would outrank) - 120 5-card straights with 4 suited cards (I calculated)
9 4straights with 2 kicker ranks that would complete a 5straight (ie. not A,2,3,4 or J,Q,K,A) times 4 suits for the 4 cards - 4 sflushes times 40 kickers that wont improve the hand added to that 2 4straights of the same thing times 44 kickers that wont improve the hand. I then subtract the 4straight hands that are also 4flush hands (again that I calculated) since flush outranks straight
right now in my sheet I'm double-counting ~7k hand combinations and can't figure out where they're coming from. numbers where "I calculated" could easily be wrong. Thanks for any help
link to original post
Are you subtracting out the lower hands if they are also part of a higher qualifying hand?
For example, you could have both a pair and a 4 card straight or a pair and a 4 card flush. You don't want to count both of them.
Make separate categories out of 4 card straight plus a pair, 4 card flush plus a pair, and 4 card SF plus a pair.
I count 12,288 low straights A234, 135,168 straights not using the Ace as a low card, and 55,770 high flushes. Now, removing all hands that also have flushes, straights, or SFs, I get:
Hand, Pay, #Flops
Royal, 800.00, 4
Str_Flush, 50.00, 36
Quads, 25.00, 624
Full_House, 9.00, 3744
Flush, 6.00, 5108
Straight, 4.00, 10200
Trips, 3.00, 54912
Flush4, 2.70, 14376
Straight4, 2.30, 97476
Two_Pair, 2.00, 123552
JOB, 1.00, 333696
Nada, 0.00, 1955232
EDIT: I think I am double counting the low 4-straights. The totals I gave above have 11 times more straights than low straights. The straights can start with 11 ranks, so 135,168 includes all 4-straights.
Game Pay Table : 'Jacks or Better'"
Hand, Pay, #Flops
Royal, 800.00, 4
Str_Flush, 50.00, 36
Quads, 25.00, 624
Full_House, 9.00, 3744
Flush, 6.00, 5108
Straight, 4.00, 10200
Trips, 3.00, 54912
Flush4, 2.70, 15324
Straight4, 2.30, 96528
Two_Pair, 2.00, 123552
JOB, 1.00, 333696
Nada, 0.00, 1955232
My diagnostic hand listings use colors for suits on my xterm console. I should figure out how to list all the hands in color using the formatting codes here. Then I could post a list of all of the hands here.
Quote: gordonm888
Make separate categories out of 4 card straight plus a pair, 4 card flush plus a pair, and 4 card SF plus a pair.
link to original post
This bit is really helpful. I started again today with a fresh mind and think I've got it. The cells marked "(calculated)" are my answers
4sflush | 2,032 |
---|---|
4flush w/ 5straight | 360 |
4flush w/ pair | 34,320 |
4flush w/ kicker | 102,600 |
4flush (theoretical) | 134,888 |
4flush (calculated) | 134,888 |
4straight w/ 4flush | 1,320 |
4straight w/ 5straight | 10,200 |
4straight w/ pair | 33,264 |
4straight w/ kicker | 89,592 |
4straight (theoretical) | 121,536 |
4straight (calculated) | 121,536 |
4sflush | =36*46+8*47 |
---|---|
4flush w/ 5straight | =4*30*3 |
4flush w/ pair | =4*COMBIN(13,4)*12 |
4flush w/ kicker | =4*COMBIN(13,4)*36-360 |
4flush (theoretical) | =4*(COMBIN(13,4)*48) - B22-B23 |
4flush (calculated) | =sum(B24:B25) - B22 |
4straight w/ 4flush | =(11*4^4)*12/256*10 |
4straight w/ 5straight | =10*(4^5-4) |
4straight w/ pair | =11*(4^4-4)*12 |
4straight w/ kicker | =11*(4^4-4)*36-B27 |
4straight (theoretical) | =11*(4^4-4)*48-B27-B26 |
4straight (calculated) | =SUM(B28,B29)-B26 |
I used google sheets on cells A22-B33 for this with the order slightly different. I had it
4sflush (red)
4flush w/ 5straight (yellow)
4flush w/ pair (green)
4flush w/ kicker (green)
4straight w/ 4flush (red)
4straight w/ 5straight (red)
4straight w/ pair (green)
4straight w/ kicker (green)
4flush (orange)
4straight (blue)
4flush (calculated) (orange)
4straight (calculated) (blue)
where a red cell got subtracted from each respective total cell, a yellow got subtracted only from the theoretical, and green was what was added in the calculated cells. I'm sure there's a better way to display this information but I couldn't be bothered finding how.
There is a special case where a 4-card straight with a pair where the paired card also forms a 4-card flush. It happens to be that every single scenario of this forms a 4 card straight flush which I already subtracted out.
These calculations help me with the whole hierarchy
royal flush | 4 |
---|---|
straight flush | 36 |
4 card royal | 188 |
quads | 624 |
4 card straight flush | 1,844 |
full house | 3,744 |
flush | 5,108 |
straight | 10,200 |
trips | 54,912 |
4 card flush | 134,888 |
4 card straight | 121,536 |
two pair | 123,552 |
pair | 1,030,656 |
high card | 1,111,668 |
total (theoretical) | 2,598,960 |
total (calculated) | 2,598,960 |
I'm somewhat confident in these numbers but now have some decisions about the game. Should 4-card flush still outrank straight and two pair? The difference is little and would be more intuitive for people without the numbers and knowledge of 5-card hands. Next, how would I add sections for ace high/king high/queen high etc. combinations? Normally it wouldn't be so bad but the 4-card combos really screw you.
Commenting on Mental's calculations, I'm curious as to how your code got lower answers than me. The 4flush is definitely too low at only 3x more likely than a 5flush but the 4straight is ballpark. I like the video poker prediction but this will be a stud game of player vs. dealer. Hoping to get into game invention and looking at a class in LV in August where corporations can buy final projects (table game ideas).
To be clear, I am not calculating the number of 4-card hands. I am calculating the number of 4-card hands that are not contained within a higher paying hand. An 5-card flush contains 5 different 4-card flushes, right? A 5-card straight contains two different 4-card straights.Quote: richodude
Commenting on Mental's calculations, I'm curious as to how your code got lower answers than me. The 4flush is definitely too low at only 3x more likely than a 5flush but the 4straight is ballpark. I like the video poker prediction but this will be a stud game of player vs. dealer. Hoping to get into game invention and looking at a class in LV in August where corporations can buy final projects (table game ideas).
link to original post
I am calculating the 5-card stud probabilities for getting paid for a certain hand, because that is what you need for the EV. I did not look at your spoiler, but I suppose you are just getting the raw numbers without accounting for counterfeiting.
If I make the 4-straight pay more than the 5-flush and 5-straight I will get a larger number of 4-straights. I will look to see if I am catching al 4-flushes tomorrow.
Quote: MentalTo be clear, I am not calculating the number of 4-card hands. I am calculating the number of 4-card hands that are not contained within a higher paying hand. An 5-card flush contains 5 different 4-card flushes, right? A 5-card straight contains two different 4-card straights.
I am calculating the 5-card stud probabilities for getting paid for a certain hand, because that is what you need for the EV. I did not look at your spoiler, but I suppose you are just getting the raw numbers without accounting for counterfeiting.
If I make the 4-straight pay more than the 5-flush and 5-straight I will get a larger number of 4-straights.
link to original post
Sorry if any of my words seem pointless/rude, I'm just trying to be thorough
"A 5-card flush contains 5 different 4-card flushes, right?" Yes. The hand A♥2♥3♥4♥5♥ contains 1 5-card [straight] flush and 5 4-card flushes (one for every rank removed). However there should be considerably more due to the possibility of hands like A♥2♥3♥4♥5♣. Ignoring the 5straight and 4sflush, the 5th card is not a heart meaning an extra 39 kickers for a lot of extra combos. but there are also many 4flush combos where the kicker forms a 5straight which outranks and needs to be subtracted.
"A 5-card straight contains two different 4-card straights." Also yes, but a 5straight outranks a 4straight so shouldn't be counted. Your numbers seem to justify your process though, but our results are different somehow.
"If I make the 4-straight pay more than the 5-flush and 5-straight I will get a larger number of 4-straights." Yes but I don't think that difference is why our results differ. Our 4straight combos differ by almost 30k, but the 4sflush, 4flush w/ 4straight, and 5straight/sflush hands (the hands containing 4straights that have something better) don't even total 15k (according to my results) That means one or both of our calcs are wrong.
If you think any of my logic is wrong, please let me know
Hand, Pay, #Flops
Royal, 800.00, 4
Str_Flush, 50.00, 36
Quads, 25.00, 624
Full_House, 9.00, 3744
Flush, 6.00, 5108
Straight, 4.00, 10200
Trips, 3.00, 54912
Flush4, 2.70, 110940
Straight4, 2.30, 92208
Two_Pair, 2.00, 123552
JOB, 1.00, 323268
Nada, 0.00, 1874364