Fachwissen

Fachartikel zu Quantitative Finance, Trading, Backtesting, Machine Learning, Assetmanagement und QuantConnect. Die Beiträge vertiefen zentrale Methoden der Fachbücher und verbinden wissenschaftliche Grundlagen mit praktischer Anwendung.

Nach Thema lesen: Quant Engineering · Backtesting · Machine Learning · Portfolio und Risiko · Quantamentale Analyse · QuantConnect · Quantitative Finance · Trading und Systementwicklung

Walk-Forward Validation of Quantitative Models

The focus is the exact information cut-off for multi-day labels.

Why random splits are problematic

Financial data are time-ordered and frequently dependent. Random splitting may introduce future observations into the training of a historical model. Walk-forward validation instead simulates repeated model estimation followed by testing in the future.

Training and test windows

An expanding window uses all eligible history available at each cut-off. A rolling window uses a fixed historical period. Hyperparameters are selected exclusively within the training period through chronological inner validation. Scaling, imputation and feature selection must also be fitted within each training window. With overlapping target horizons, training examples whose target information extends into the test period must be excluded.

Worked example

Suppose there are 1,000 daily observations and a five-trading-day target horizon, with the first test period beginning on day 501. If the target at day t uses returns through t+5, strict separation permits only training targets satisfying t+5 ≤ 500. The latest eligible training features are therefore from day 495. Days 501–600 form the first test window; its final targets require data through day 605. The next model may use new target values only once they are actually known. To evaluate the strategy, assemble a chronological series of realised portfolio returns net of costs from the test windows. Overlapping five-day target returns cannot be treated as independent observations or simply compounded together.

Evaluation and limitations

Alongside net returns, consider drawdown, turnover, calibration and stability across subperiods. Window length itself can be overfitted. A final untouched test period reduces this risk provided it is not repeatedly used for model development. Dependent observations limit the validity of naive standard errors.

Conclusion

Walk-forward validation evaluates the entire chronological development process, not merely the algorithm. It reduces certain forms of leakage but does not guarantee future profitability.

References: Tashman, L. J. (2000), Out-of-sample tests of forecasting accuracy: an analysis and review, International Journal of Forecasting 16(4), 437–450. López de Prado, M. (2018), Advances in Financial Machine Learning, Wiley.

Tashman (2000) · López de Prado (2018)

Continue learning

Related article · Book and sample · Learning path

The examples use hypothetical data and serve an educational purpose.

Information icon

Wir benötigen Ihre Zustimmung zum Laden der Übersetzungen

Wir nutzen einen Drittanbieter-Service, um den Inhalt der Website zu übersetzen, der möglicherweise Daten über Ihre Aktivitäten sammelt. Bitte überprüfen Sie die Details in der Datenschutzerklärung und akzeptieren Sie den Dienst, um die Übersetzungen zu sehen.