Skip to content

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

Stockertim Dictionary · Technology · Artificial intelligence

Test set

Also called test data, holdout set, test sample

In short

Data kept aside and never used to build or tune a model, so it gives an honest estimate of how the model performs on cases it has not seen.

  • Advanced
  • Concept
  • Checked

In detail

Model development usually splits data into three roles. The training set is what the model learns from. A validation set, or cross-validation within the training data, is used to compare designs and tune settings. The test set is locked away until the end and used once to measure the chosen model's performance. Because the model and its designers have not seen it, the result approximates performance on new cases.

The value of a test set depends on discipline. Every time a team looks at test results and goes back to adjust the model, some information about the test data seeps into the design. After many rounds, the test set has effectively become part of training, and its score is no longer an honest estimate. This is why good practice limits test evaluations, records each one, and sometimes keeps a second, final holdout.

The test set must also resemble the data the model will face. For time series, it should come from a later period than the training data. For credit models, it should reflect the customer mix and economic conditions expected in use. A test set drawn from calm years tells little about a crisis, which is why validators also stress-test models and monitor them once live.

Worked example

Harbour Bank has 100,000 past loan applications and splits them for a new scoring model.

  1. Training: 100,000 × 70% = 70,000
  2. Validation: 100,000 × 15% = 15,000
  3. Test: 100,000 × 15% = 15,000

The 15,000 test applications are scored only once, after the model is final.

In practice

Regulators and model validators ask how test data was chosen and whether it was truly untouched. Competitions and benchmarks keep test labels hidden for the same reason. In trading research, the most recent period is often reserved as a final out-of-sample test.

Watch out

  • Reusing the test set to choose between models turns it into a validation set and inflates the score.
  • A test set from the wrong period or population gives a confident but misleading estimate.

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