Skip to content

Non ancora disponibile in italiano. Vedi tutto ciò che è disponibile in italiano

Stockertim Dictionary · Technology

Training error

Also called in-sample error, training loss

In short

How badly a model fits the data it was built on; it shrinks as the model grows more complex, so by itself it says little about future performance.

  • Advanced
  • Concept
  • Checked

In detail

Training error measures the gap between a model's outputs and the actual values in the data used to fit it. For a regression it might be the average squared difference between predicted and actual returns; for a classifier, the share of training cases labelled wrongly. Because fitting deliberately pushes this number down, it is the most flattering figure a model ever produces.

Adding variables, layers or rules nearly always lowers training error, since a more flexible model can bend closer to each data point. Taken to the extreme, a model with as many parameters as observations reproduces its training data perfectly, reaching zero error while learning nothing that carries over. That is why the figure is read beside the error on held-back data. Low training error with much higher test error points to overfitting; high error on both suggests the model is too simple, known as underfitting.

The measure still earns its place. If it stays high, the model cannot even describe the past, so better inputs, more data or a different method may be needed. Watching it fall during fitting also shows whether the estimation process is converging.

Worked example

An analyst fits three models of rising complexity to 200 months of data and records the errors.

  1. Simple model: training error 6, test error 7
  2. Middle model: training error 4, test error 5
  3. Complex model: training error 1, test error 10
  4. Gap for the complex model: 10 − 1 = 9

The complex model describes the past best yet does worst on new months, so the middle model is the sounder choice.

In practice

Model documentation at banks and asset managers sets in-sample and out-of-sample error side by side. A strong in-sample fit or backtest on its own is usually read as an upper bound on what the model can deliver later.

Watch out

  • Zero training error is a warning sign, not an achievement.
  • Training and test error must use the same measure to be comparable.

Learn it properly

Official sources

Facts last checked on 4 November 2026.

Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.

English