PDA

View Full Version : Something you may already know (or need to know)


theredpill
08-09-2004, 03:57 AM
Hey. I'm a newbie so if you already know this then disregard. I'm a math guy so I like to dig into the mathematics of poker. I decided to check out some of the free odds calculators on various web sites. Well, I'm not impressed. I say let the fish use those odds calculators all they want. You probably should even encourage it. I decided to make my own odds calculator using C++. Don't worry it is too slow to use online. I believe it is much more exact than the other stuff being thrown out there. I won't mention which ones I tested in case a fish drops by. (hopefully, I'm not a fish anymore or am getting there) Sometimes, my calculations were different than the free programs by 10 % . There is one popular one out there that is total bull. My calculations were almost never in line with theirs. My calculations were sometimes off by 20 to 30 %. I was calculating the win % of a hand given a 3 card flop in my program.

Ok, here is an example:

You have A /images/graemlins/spade.gif 9 /images/graemlins/diamond.gif and the flop is 10 /images/graemlins/diamond.gif 6 /images/graemlins/diamond.gif K /images/graemlins/club.gif . You are playing heads-up on the flop with a guy in early position. Of course, some of these programs don't take this into consideration. One program gives you a win % of 49.8 % and your opponent 47.4 % . My calculation for this hand gave a win % of 19% and opponent 75.8 % which I believe is more accurate. Another program gave a win % of 28 %.
What do you think ? I am new at poker so I can't give you any experience from a hand like this. I just don't think those odds calculators are all they are cracked up to be. If you know a fish that uses one, tell him he's on the right track.

It takes 20 minutes for my program to give an accurate answer and that's on a 2 ghz computer. I am still tweaking to see if I can get it down but I doubt I will get it down to a few seconds.

jdl22
08-09-2004, 05:25 AM
We need more information.

</font><blockquote><font class="small">En respuesta a:</font><hr />
You have A 9 and the flop is 10 6 K . You are playing heads-up on the flop with a guy in early position. Of course, some of these programs don't take this into consideration. One program gives you a win % of 49.8 % and your opponent 47.4 % . My calculation for this hand gave a win % of 19% and opponent 75.8 % which I believe is more accurate.

[/ QUOTE ]

Depends on his hand. I'm assuming you forgot to put that in. How does your program calculate this? How does it take # of players in the hand and position into account?

Others simply play a gazillion hands of no fold'em hold'em and give the results. They are generally believed to be reliable for what they do but of little value because they don't take into account the way people play hands. If yours does I'm sure many here would like to know how.

fnord_too
08-09-2004, 11:15 AM
20 minutes seems awfully long. I also have written code (in Java) for doing analysis. Though I don't attack the problem you are attacking with it, I can't immagine it would take even 1 minute if I did. If you PM me your basic approach to the problem (a little more detailed than "Monte Carlo" or "Deterministic") I would be happy to comment on it. Also, you may have some very sub-optimal code to compare hands. If I take two hands pre flop and run through every possible 5 card board, I think I take about 7 seconds. I would have to check this, it has been a while since I played with it. At any rate, I have some experience in this type of analysis, which may or may not be of benefit to you.

The other point I would make is that this seems to be a smarter hot and cold analysis, but still a hot and cold analysis. If you are not taking into account betting patterns and the play of the hand then you are leaving a lot of ground uncovered. (Maybe you are playing the hands out with betting and that's why it is taking 20 minutes to run the simulations.) I am guessing that you can vary pre-flop calling and raising standards of your opponents, and input the pre-flop action? For instance, in this case if the EP guy raised, I would say the A9 was a clear fold pre flop and just as clear post flop. If he limped, then did the A9 limp as well or raise? Is the A9 in a blind or in position? With an EP limper this hand is far from the nearly 4-1 dog you project, and most of the time I don't think the hand would go to a showdown in real play.

Just an FYI, there is an open source code base on Sourceforge I believe for this type of analysis. I haven't looked at it yet, but one of the Cardplayer columnists uses it and gives its location.

AKQJ10
08-09-2004, 01:09 PM
[ QUOTE ]

Just an FYI, there is an open source code base on Sourceforge I believe for this type of analysis. I haven't looked at it yet, but one of the Cardplayer columnists uses it and gives its location.

[/ QUOTE ]

Is this it?: http://sourceforge.net/projects/pokersource/

Instead of digging around Cardplayer.com trying to find this reference, i figured it was easier to dig around the search results from SourceForge. There are plenty of poker-related projects but most of them seem to be front-ends to play over the Net.

fnord_too
08-09-2004, 02:58 PM
I think that is it... I just dug around cardplayer to find it, and here is what I got.

http://pokersource.sourceforge.net/
And
www.seriouspoker.com (http://www.seriouspoker.com)

The latter being the columnist's site, where you can get all the code he writes for his analyses.

droidboy
08-09-2004, 08:30 PM
[ QUOTE ]
You have A /images/graemlins/spade.gif 9 /images/graemlins/diamond.gif and the flop is 10 /images/graemlins/diamond.gif 6 /images/graemlins/diamond.gif K /images/graemlins/club.gif . You are playing heads-up on the flop with a guy in early position. Of course, some of these programs don't take this into consideration. One program gives you a win % of 49.8 % and your opponent 47.4 % .

My calculation for this hand gave a win % of 19% and opponent 75.8 % which I believe is more accurate.

What do you think ? It takes 20 minutes for my program to give an accurate answer and that's on a 2 ghz computer.

[/ QUOTE ]

It really depends on exactly what you are calculating. The equity of As8d in this spot is 50.19% versus a random hand. That looks like what the "one program" is trying to calculate. Equity is very different from the chance of winning. It's important that anyone who uses software understands what is being calculated, and how to use that information. As you imply, just having the raw numbers doesn't necessarily give you the answer.

As for spending 20 minutes running your software before you get a convergent answer, that is a bit too long. What exactly is it that you are computing? For what it's worth, my software gives the A9o about 20% equity. This is the equity from a specific distribution of hands (66+,A7s+,KTs+,76s+, KJo+,ATo+). Again, that's not the chance of winning, but it does seem closer to what you are calculating.

- Andrew

www.pokerstove.com (http://www.pokerstove.com)

theredpill
08-09-2004, 09:09 PM
Oh, I see what you mean. Yes, I believe I am computing equity. I did get 19 % to your 20% so maybe our programs are similar. How fast is yours? I'm not done with my program and many things that I wrote were done without thinking of the best way. I will go back and fix some things to make it faster. I was basically computing what a A /images/graemlins/spade.gif 9 /images/graemlins/diamond.gif would do over the long run against one person in EP who is in on a 10 /images/graemlins/diamond.gif 6 /images/graemlins/diamond.gif K /images/graemlins/club.gif . If you were able to follow a poker player around for 5 years and record the results everytime As 9d with 10d 6d kc on the flop and he always went to a showdown against a guy in EP. I believe he would win 19% of the time.

droidboy
08-09-2004, 10:02 PM
[ QUOTE ]
Oh, I see what you mean. Yes, I believe I am computing equity. I did get 19 % to your 20% so maybe our programs are similar. How fast is yours?


[/ QUOTE ]

Oh, about 3000 times faster than yours /images/graemlins/wink.gif. (see link below).

[ QUOTE ]

If you were able to follow a poker player around for 5 years and record the results everytime As 9d with 10d 6d kc on the flop and he always went to a showdown against a guy in EP. I believe he would win 19% of the time.

[/ QUOTE ]

Maybe this is true. But if you had that information, would you raise, fold or call when the early player bets into you on the flop? Is this "equity" number different if you raise or call? Which is better?

- Andrew

www.pokerstove.com (http://www.pokerstove.com)

theredpill
08-09-2004, 10:39 PM
Free ? hey that's great. Andrew, your program looks good but how do I use it? I put in player 1's hand and the 3 cards on the flop and hit EVAL but nothing is happening.

droidboy
08-09-2004, 10:58 PM
You'll need to specify two hands. Click "Player 2", then click the "Two Card" tab, and select the hand which you think the early position player might hold.

- Andrew

www.pokerstove.com (http://www.pokerstove.com)

Al_Capone_Junior
08-09-2004, 11:26 PM
In your example you don't say what the other guy has, so how do we know if you are right or not?

Also you don't mention which odds calculators online are good and which ones are bad. Personally, I always thought twodimes.net did a great job. Their calculations are always very close to that which we already know from charts in books (that we know are accurate). If you think this site's calculator is THAT bad then you should specify exactly why and then show how yours is so much better. Without proof you are just blowing hot air.

al

fnord_too
08-09-2004, 11:38 PM
[ QUOTE ]
In your example you don't say what the other guy has, so how do we know if you are right or not?

al

[/ QUOTE ]

I think he's running weighted equity calculations over the range of legitimate early position hands.

Al_Capone_Junior
08-09-2004, 11:58 PM
Well then, he may or may not be right, there is really no way to tell since we are guessing all the way here. If it's a weighted equity calculation then what specific range of hands is he using (this could differ by who you ask), how frequently will each be held, etc. You know me, you may be able to convince me, but not without specifics and solid evidence to back up your claim. He may have the best calculator in the world, but until I see proof I can't say it's so.

al

cero_z
08-10-2004, 01:53 AM
Hi redpill,
[ QUOTE ]
Don't worry it is too slow to use online.

[/ QUOTE ]

Why would we worry? If you got that program to work instantaneously, it wouldn't help you play any better than anyone who roughly understands the concepts in the appropriate 2+2 books. As a mathematical exercise, or to help formulate a strategy away from the table, it may have some usefulness. But it certainly won't allow you to beat decent players.

dana33
08-10-2004, 11:45 PM
[ QUOTE ]
If you were able to follow a poker player around for 5 years and record the results everytime As 9d with 10d 6d kc on the flop and he always went to a showdown against a guy in EP. I believe he would win 19% of the time.

[/ QUOTE ]
You have still not defined the precise problem you are solving. If the EP player is a rock, you will get a completely different answer than if he is a maniac.

What are you assuming about the distribution of hands the EP player will play? Without this information, there is no way to independently verify or refute your results.