Skip to content
Quantitative Research, Data and Backtesting / Labels and Validation Design

Time-Ordered Train, Validation and Test Design

A model can predict historical returns well because its fitting procedure has seen information unavailable at the forecast date. A valid simulation must reproduce the model's learning schedule as carefully as its trading schedule. This lesson turns label availability into training eligibility and separates parameter estimation, model selection and final confirmation.
Learning objectives. By the end of this note you should be able to:
  • assign training, validation and test data distinct roles;
  • implement an expanding or rolling walk-forward schedule;
  • exclude unfinished labels at each fit time;
  • keep preprocessing and hyperparameter selection inside their proper windows;
  • distinguish a historical replay from a nonchronological scenario evaluation.

In this lesson

  1. Three roles rather than three filenames
  2. Training eligibility follows information time
  3. Expanding and rolling windows
  4. Fit the whole pipeline inside the window
  5. Purging, embargoes and final tests
  6. What to freeze before opening the test

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or browse the Quantitative Research, Data and Backtesting syllabus.