Here's a screenshot of the work in progress:

As you can see progress is good. Except the All-in Equity Value line on the chart is completely wrong. I mean, not even close to reality. I've create a dummy function to create the equity value. Which brings me to my point: everything is done and working except the hardest bit: the function/method called calculateEquityValue() which takes as input a hand and turns as output the equity value in cents...
Unfortunately I can't find a canonical way of calculating all-in equity value. There are so many variables one could take into account. I figure the best I can do is to make the charts generated by Poker Copilot show the same data as those generated by Hold 'em Manager. Unfortunately I'm unable to find much about this chart in Hold 'em Manager's documentation. I suspect Hold 'em Manager uses poker-eval from poker source.
Can any of my readers guide me to a good formula/function/algorithm for calculating all-in equity value? What are some of the issues you would like me to consider when calculating equity value?


2 comments:
Hi Steve,
This is one thing I recently found in a french paper:
- All-in EV = %win x (Pot - rake) - effective Pot
- %win is your chance to win the hand
- Pot-rake is the total pot of both players all-ins minus the rake of the room
- effective pot is the amount of money in the pot before one player goes all-in.
Preflop example:
No-Limit Hold'em, $1.00 BB (6 handed)
UTG ($118.30)
MP ($101.50)
CO ($100)
Hero (Button) ($111.50)
SB ($255.85)
BB ($100)
Preflop : Hero is Button with
3 folds
Hero bets $2.50
1 fold
BB raises $8
Hero raises $18.50
BB raises $91 (All-In)
Hero calls $79
Flop: ($200.50) (2 players, 1 all-in)
Turn: ($200.50) (2 players, 1 all-in)
River: ($200.50) (2 players, 1 all-in)
Total pot: $200.50
Results:
Hero had (one pair, Aces).
BB had (three of a kind, Jacks).
Outcome: BB won $197.50
In the case above, both player go allin preflop. Hero's %win is 81.1%, so the formula goes:
All-in EV = 0.81 x ($200.5 - $3) - $100 = $60
Hero's result is a loss of 100$. HEM will show "EV $ Diff" being +$160, the plus sign saying that your EV was higher than the result. No luck.
Had Hero won, the "EV $ Diff" columns would show -$37.50
POST FLOP:
No-Limit Hold'em, $1.00 BB (6 handed)
CO ($101.50)
Button ($118.85)
Hero (SB) ($216.40)
BB ($153.05)
UTG ($100)
MP ($103.10)
Preflop: Hero is SB with Ac, Ad
UTG bets $3
1 fold
CO calls $3
Button raises $7
Hero raises $20.50
2 folds
CO calls $18
Button calls $14
Flop: ($67) (3 players)
Hero bets $36
CO raises $80.50 (All-In)
1 fold
Hero calls $44.50
Turn: ($228) (2 players, 1 all-in)
River: ($228) (2 players, 1 all-in)
Total pot: $228
Results:
Hero had (one pair, Aces).
CO had (one pair, Kings).
Outcome: Hero won $225
In the above example, both players go allin postflop. Hero's %win is 91.6%, so:
All-in EV = 0.92 x ($228 - $3) - $101.5 = $105
Since Hero won 123.50$ in this hand, the "EV $ Diff" will show -19$.
I hope the above helps.
Hi,
may be it's not totally on topic.
But as far as I know Poker Tracker calculates preflop equity using Pokerstove.
Cheers
John
Post a Comment