← Notes

Calibrated beats accurate

A model that ranks well can still be dangerous to bet on. If its probabilities aren't honest, every position it sizes is wrong.

Ask most people how good a classifier is and they’ll quote a ranking metric: accuracy, AUC, maybe precision at the top. Those measure whether the model puts better opportunities ahead of worse ones. That matters, but it is only half of what a trading system needs.

The other half is whether the numbers mean what they say.

Two models, same ranking

Imagine two models that order a thousand opportunities identically, so they have exactly the same AUC. The first says the top decile wins 60% of the time, and it does. The second says 85%, and those trades still win 60%.

If all you do is take the top decile, the two are interchangeable. But the moment you size positions from the probability, they are not. The second model will bet as if it had a large edge it doesn’t have. It isn’t ranking badly; it is lying about how sure it is, and position sizing turns that lie directly into risk.

That property is calibration: among all the times a model says 60%, about 60% should come true.

Checking it

The check is simple and humbling. Group past predictions by what the model said (0–10%, 10–20% and so on), then compare each bucket’s average prediction with how often it actually happened. A calibrated model lies close to the diagonal. Most raw models don’t. Gradient-boosted trees, for example, are often overconfident at the extremes or squashed into a narrow band.

Two things we have learned to take seriously:

  • Calibrate on outcomes you actually trade. A probability fitted on one population can be off for another. If part of the flow behaves differently, it may need its own calibration rather than borrowing one that was fitted elsewhere.
  • Re-check against live results, not just backtests. Markets drift. A calibration that was honest last month can quietly slide. We check predicted against realised win rates on live decisions, not just once at training time. That check is how we once found part of a model’s range running over-confident in production while it looked fine on historical data.

Fixing it

The usual fix is a second, small model that maps raw scores to probabilities, such as isotonic regression: a monotone step function fitted on held-out data. It keeps the ranking exactly as it was and only corrects what the numbers claim. It has to be fitted on data the main model didn’t train on, or it simply learns the model’s own overconfidence back.

Why it matters more than a point of AUC

Improving the ranking moves you to slightly better trades. Fixing calibration changes how much you put on every trade. For a system that sizes its bets, an honest 0.60 is worth more than a slightly sharper ranking with an inflated scale, and it fails more gracefully when the market changes under it.