Concept

Model Overfitting

Model Overfitting is a Machine Learning concept. A reference entry: the Library explains it rather than implements it.

What is model overfitting?

Model overfitting occurs when a model learns the noise in its training data rather than the repeatable structure, so it scores well on the data it was fitted to and poorly on anything new. Every flexible model does this to some degree; the question is how much. In machine learning terms it is the variance side of the bias-variance tradeoff: more parameters, deeper trees, or more features let a model track the training set ever more closely while its out-of-sample error rises.

Financial data makes overfitting unusually easy and unusually expensive. The signal-to-noise ratio of returns is very low, histories are short relative to the number of plausible features, observations are autocorrelated so the effective sample size is smaller than it looks, and the underlying process drifts over time. A model that fits one regime tightly can be worse than useless in the next. The same failure appears outside machine learning whenever a strategy's parameters are tuned until the backtest looks good, which is why overfitting and curve-fitting are largely the same disease.

The defenses are structural rather than heroic: honest train/validation discipline, fewer and better inputs via feature selection, regularization and early stopping during training, and skepticism proportional to how many variants were tried. Formal tools such as the probability of backtest overfitting and the deflated Sharpe ratio exist precisely because the intuitive checks are so easy to fool.

How traders use it

  • Diagnosing with a train/test gap: a large spread between training accuracy and held-out accuracy is the classic symptom; a model that is near-perfect in sample and near-chance out of sample has memorized, not learned.
  • Controlling capacity: limiting tree depth, adding L1/L2 penalties, dropout in neural networks, and early stopping all trade a little training fit for better generalization; on market data practitioners typically err toward the simpler end.
  • Counting the trials: overfitting is not only inside one model; testing fifty configurations and keeping the best overfits the selection process itself, which is what multiple testing correction addresses.
  • Checking parameter neighborhoods: a result that collapses when a parameter shifts slightly was likely fitted to noise, so parameter stability checks are a cheap first screen.
  • Accepting the residual risk: no procedure eliminates overfitting; position sizing and expectations should assume live performance will be worse than the backtest, often substantially.

Model overfitting vs. related failure modes

Probability of Backtest Overfitting: Overfitting is the failure itself; PBO is a formal estimate of how likely a strategy selected as best in sample would underperform out of sample. One is the disease, the other a diagnostic for it.

Train/Validation Discipline: Discipline in splitting data is the main preventive practice. Overfitting can still occur with clean splits, but leaky splits make it undetectable, which is worse than the overfitting itself.

Concept family

Machine Learning

32 concepts mapped · 32 in the Library

Model Overfitting FAQ

Turn Model Overfitting into a trading strategy.

Describe your Model Overfitting idea to Quant. It builds the strategy with you and backtests it on real data.