How we calculate every number
A tracker is only useful if its numbers are right. Here's how Pokermetria calculates the things that matter (stats, all-in EV, Spins chip EV and the solver), how we check them and, above all, what's exact and what's an approximation. The code always calculates the numbers; the AI coach only explains them.
HUD stats and reports
Every stat (VPIP, PFR, 3-bet, c-bet, WTSD…) has a single definition in the code, the same one for your reports, your opponent profiles and the HUD, and it only counts an opportunity when the decision was real (a 3-bet only counts if you could actually make one). What each one measures: stats glossary. If the reader can't interpret a hand with confidence, the hand is set aside with a warning instead of making up the result.
All-in EV: exact enumeration
When there's an all-in with the cards face up, "all-in EV" takes the luck of the runout out of the picture: what you'd have won on average with those cards. Here's how it's calculated:
- We enumerate every possible runout of the missing cards, with all the cards that were shown removed from the deck. It's not a Monte Carlo simulation: it's exact, including with three or more players and with ties.
- Side pots are split in layers, each one among the players who can win it, as in PokerTracker 4 or Holdem Manager. In cash games, the rake is split across what was contested.
- EV = the sum of each layer times the share you'd win, minus what you put in.
It isn't adjusted when there's nothing to adjust or it can't be done: if you fold, if an opponent doesn't show their cards, or if everything was decided on the river. Besides all-in EV, tournaments and spins also use "total EV", which values pots that go to showdown without an all-in too (except on sites that let you muck your cards without showing them, like PokerStars, where only all-ins count).
Spins: chip EV, breakeven and multipliers
- Chip EV per game: the sum of your chips with the luck of the all-ins taken out, divided by the number of games. It comes with its standard error, because with few games the number swings a lot.
- Breakeven: the chip EV per game you need so you don't lose money to the fee. With the model "your chance of winning grows with your chips" (P(1st) = (S + cEV) / 3S, where S is the starting chips), it comes out to S·f/(1 − f), where f is the fee: for example, 37.6 chips in a 500-chip spin with a 7% fee.
- Expected ROI: the ROI that corresponds to your chip EV, ((1 + cEV/S)·(1 − f) − 1) × 100, without the luck of the multipliers.
- Traffic light for moving up: it only says "move up" with at least 300 games and if your chip EV minus two standard errors is above breakeven.
- Multipliers: on Winamax they're read from each Expresso's summary (the prize divided by the buy-in). For each multiplier you see how many games you've played and won against the 33% you'd expect by chance, and your actual average multiplier against the theoretical one. We don't calculate a separate ROI per multiplier.
Model limit: it assumes the winner takes everything; with the higher multipliers that also pay 2nd and 3rd place, the real breakeven shifts a bit.
The postflop solver: our own, in Rust and WebAssembly
The solver is ours: it's written in Rust and uses DCFR (a variant of CFR, the counterfactual regret minimization algorithm), with all runouts and card removal. It's used in three ways:
| Street | Where it comes from | Exact? |
|---|---|---|
| Flop | A grid of precomputed solutions for heads-up spins (limped and min-raised pots, 8 to 25 bb) | Yes, for its betting tree and its ranges |
| Turn | Solutions computed for BTN vs. BB and SB vs. BB; everywhere else, a neural network trained on the solutions | Yes in those pots; the network is an estimate and is labeled as one |
| River | Solved on the spot in your browser or in the app, compiled to WebAssembly | Yes heads-up, with the ranges that reach the river; with three players, it's a solid strategy but with no mathematical guarantee of equilibrium |
Measured convergence. For each solution in the grid we measure exploitability: what an opponent who knew the strategy would win by responding in the best possible way. In the documented measurements it comes out between 0.24% and 0.35% of the pot (for example, 0.24% on 8♣6♦3♥ at 8 bb with 100 iterations), and the estimated network comes in at 0.32% of the pot against 0.25% for the stored solution in the sample where they were compared.
Simplifications: the tree has a single bet size per street (50% of the pot in limped pots and 33% in min-raised ones), a 3x raise and all-in. With short stacks it loses almost no value, but it isn't a tree with every bet size. The ranges that go into the grid come from our spin charts, which are consistent but not a solver dump. And the grid doesn't cover every flop: where there's no solution, the app tells you.
The preflop charts: calculated by us
- The tournament charts in Ranges (6 players with a big blind ante, from 5 to 100 bb) come from our own preflop solver, using CFR+ over the 169 hand classes. The spin push/fold charts (heads-up and 3-handed, from 1 to 20 bb) also come from our own tools. None of the charts is copied from another tool.
- Heads-up equities are exact (a table of every runout); for three players they're simulated with 4,000 runouts per trio.
- We measure exploitability in bb per hand: in push/fold at 10 bb it's practically zero. When the hand continues past the flop without an all-in, the value of reaching the flop comes from an equity realization model: that part is an approximation, which is why we don't present those charts as unexploitable.
- On the Ranges screen, the cash and spin ranges are reasoned reference charts, not solver output, and they're labeled that way. Rake isn't modeled in the cash charts.
How we check it
Every change goes through a battery of automated tests before it's released. Among them:
- The engine's equity matches a reference enumeration written separately (so we're not validating the code against itself), and the fast evaluator gives the same results as the classic one on 20,000 hands.
- The EV and stats calculations are checked against real Winamax hands, against expected figures calculated separately, and against hand-built cases.
- The spin multipliers are checked against the ones that actually exist in real hand histories.
- The Rust solver engine is compared with our reference implementation, and tested against a case with an analytically known equilibrium (a bluff-catcher on the river), as well as side pots and ties.
What we don't have yet: an external audit, or a published number-by-number comparison with other commercial trackers or solvers. That's why we publish this methodology: so anyone can review it and tell us if something doesn't add up (soporte@pokermetria.com).
Summary: exact vs. approximate
| Exact | Approximate (and we say so) |
|---|---|
| Equity and all-in EV with the cards face up | Flop and turn with three players (what comes after is valued by equity) |
| River heads-up, with the ranges that reach it | The turn network outside the computed pots, and the river with three players |
| Grid flop, for its tree and its ranges | A single bet size per street |
| Turn for BTN and SB vs. BB | Equity realization in the preflop charts and simulated three-way equity |
| Stats counted hand by hand | Spin breakeven with multipliers that pay several places |
Try it with your own hands: import your hand histories for free and check your numbers. If one doesn't add up, write to us.
Create a free account