Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Probability

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2005, 02:12 PM
VivaLaViking VivaLaViking is offline
Member
 
Join Date: Jul 2005
Posts: 97
Default Probability of Flopping a Straight

The probability of flopping a straight depends on the span of the cards (eg. K 8 has a 0% chance). So what I am looking for is a probabilty function based on the span of the cards. To complicate the matter A K has a single span but only Q J and 10 will result in a straight. So it might need to be based on the number of outs instead of just the span. Anybody have any thoughts on this?
Reply With Quote
  #2  
Old 08-03-2005, 02:31 PM
LetYouDown LetYouDown is offline
Senior Member
 
Join Date: Mar 2005
Location: Sharing a smoke w/negativity
Posts: 524
Default Re: Probability of Flopping a Straight

Obviously filtering out the impossible hands is elementary. If the difference of the ranks is 1, there are 4 distinct ways you can flop a straight. If the difference is 2, there are 3. If the difference is 3, there are two. If the difference is 4, there is only one. You're going to need to throw in some logic to determine if the cards have maximum reach or not.
Reply With Quote
  #3  
Old 08-03-2005, 02:51 PM
VivaLaViking VivaLaViking is offline
Member
 
Join Date: Jul 2005
Posts: 97
Default Re: Probability of Flopping a Straight

LetYouDown, I know you wouldn't so thanks once again. Yes, that's what I thought and have started work on it, it seems a bit sloppy at present but I'm sure I can clean it up a little. I will post the result for you approval as soon as I am finished.

TY
Reply With Quote
  #4  
Old 08-03-2005, 03:00 PM
LetYouDown LetYouDown is offline
Senior Member
 
Join Date: Mar 2005
Location: Sharing a smoke w/negativity
Posts: 524
Default Re: Probability of Flopping a Straight

Just to clarify, you obviously need to factor in the suits...which I assume is obvious, but file it under "just in case". There's probably a solution out there that will turn this into a single formula, but in this case it really doesn't seem worth the effort. There was a truly elegant solution to ranking hands against each other with bit shifting that I found really impressive. I wouldn't be surprised if someone had done this with a more elegant method. It just seems like it would take more time to come up with that method than to write a full function. I'd imagine the performance hit would be almost negligible.
Reply With Quote
  #5  
Old 08-03-2005, 03:29 PM
VivaLaViking VivaLaViking is offline
Member
 
Join Date: Jul 2005
Posts: 97
Default Re: Probability of Flopping a Straight

I just noticed you hasve the BoSox emblen. I can't count the number of ALCS games I have gone to. My nephew's birthday is in October so it makes a nice present to take him. Except for last year and I'm still angry. I was pleased they won on the road so the scalpers would choke on the tickets.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.