Quantitative Methods

Overfitting, Cross-validation, and the Honest Holdout

Produce a model performance number you would be willing to sign your name to in a business case — which is almost never the number the modelling team reports, and is reliably lower.

  • Advanced
  • 12 min total
  • 13 chapters

What decision this helps you make: Which accuracy figure goes into the business case, how much to discount the one you were handed, and whether the model is fit to deploy at all.

What this topic is

Overfitting is a model learning the accidents of the rows it was trained on rather than the pattern that will repeat. Cross-validation is the standard defence: split the data into folds, train on all but one, score on the one held out, rotate, and average. The honest holdout is the stricter and rarer discipline — a slice of data set aside at the start, never used for training, never used for tuning, and looked at exactly once, at the end, to produce the number you report.

Why it matters

Every predictive project ends with a number attached to money: this model will save $61,000 a month, so approve the programme. That number is almost always an accuracy figure multiplied by a volume. If the accuracy figure is optimistic by a fifth — which is entirely ordinary once a team has tuned thirty configurations against the same validation set — the business case is optimistic by a fifth, and the programme is staffed, budgeted, and reported against a target it was never going to reach. Nobody in that chain lied. The measurement protocol was simply wrong.

Who should learn it

Anyone approving a model deployment, anyone whose plan contains a number produced by a model, and analysts who want their reported figures to survive contact with production.

What you will understand

  • How k-fold cross-validation works, what its fold-to-fold spread does and does not tell you, and why its standard error is optimistic
  • The winner's curse of model selection: why the best of thirty tuning runs is systematically too high, and roughly by how much
  • The full leakage catalogue — target, temporal, group, and preprocessing — and how each one manufactures a number that cannot be reproduced
  • How to convert an honest holdout figure into the business-case number, and where to put the discount

Prerequisites

Common misconception

"We cross-validated it, so the number is safe." Cross-validation protects against one thing: reporting your training error as if it were performance. It does nothing at all about the other two ways the number gets inflated. If you used the same folds to choose between thirty candidate models, the winning score contains selection noise and is biased upward by construction. And if information from the future, or from the label itself, is sitting inside a feature, cross-validation will faithfully and confidently report an excellent score for a model that cannot work. Cross-validation is a floor, not a guarantee.