Statistics reference - jejellyroll-fr/fpdb-3 GitHub Wiki
Statistics reference
The reference lives in the application, not on this page.

Help → Stats Guide opens a searchable guide to all 54 statistics fpdb computes, in five sections — Preflop, Postflop, Showdown, Winrate & Rake, Tournaments. For each one it gives:
- the full name and the abbreviation the HUD uses,
- what it means,
- the formula, including what is excluded from the denominator,
- the database condition it is computed from.
It is in the application on purpose: it is generated from the same definitions the statistics engine uses, so it cannot drift out of date the way a wiki page would. Duplicating it here would guarantee that one of the two copies is wrong.
What this page is for
The things the in-app guide does not say.
Read the denominator, not just the number
Most of these statistics are "how often, given the chance". The interesting part is usually the given the chance, and it is what makes two statistics that sound alike behave differently.
VPIP, for instance, excludes walks, all-in blinds and folded blinds from its denominator. Hands where the player had no decision to make are not hands where they declined to play. The guide states each denominator; it is worth reading it for any statistic you plan to act on.
Read the sample first
Every percentage in fpdb is a percentage of something, and the something is often small. A 100% fold-to-3-bet is two hands about as often as it is a read.
This is why the HUD's default layout puts the hand count next to the name, why the Fast-Fold profiles put it in the first row, why every report has a minimum-hands filter, and why the leak detector and the player profiler both refuse to fire below a minimum sample. The design keeps pointing at the same thing.
The HUD and the reports use the same formulas
The HUD reads aggregated statistics; the reports compute from hands. Both use the same formulas, so they agree — and when they do not, the cause is a stale aggregate rather than a disagreement about the maths. Database → Rebuild HUD Cache is the fix.
The leak detector's formulas mirror the same definitions, deliberately, so a leak it reports is consistent with the number you saw at the table.
Adding a statistic
Statistics live in fpdb_3_legacy/Stats.py, with declarative descriptors under
fpdb_3_legacy/stats.d/. Two packs ship: pt4_standard.toml and
chipev_by_position.toml.
A statistic can be added declaratively when every column it needs already exists
in the database. When it does not, it needs new derived data — a change in
DerivedStats.py and a schema change — which is a larger piece of work.
That boundary is exactly what the PokerTracker 4 stat importer reports on: a
.pt4stat whose referenced columns all map onto existing fpdb columns is
plug-and-play, and one that does not is reported as unsupported rather than
mistranslated. See
HUD — importing a PokerTracker 4 layout.
Statistics are evaluated without eval, by design — descriptors are data, not
code to execute.