Advances in Financial Machine Learning

An advanced, practical book on applying machine learning to investing, and on avoiding the backtest overfitting that ruins most strategies.

Cover of Advances in Financial Machine Learning by Marcos López de Prado
BookFirst published 2018Advanced

By Marcos López de Prado

Edition we link to: Wiley, 2018 (hardcover)

Key ideas
  • Most backtested strategies are false discoveries caused by overfitting.
  • Financial data needs special care: standard cross-validation leaks information.
  • Focus on understanding which features matter, not just on prediction accuracy.
Buy on Amazon About the book

Affiliate link: as an Amazon Associate we earn from qualifying purchases, at no extra cost to you.

What it is

Marcos López de Prado, a leading quantitative researcher, explains why standard machine-learning methods often fail on financial data and how to fix them: better data structures, labelling, cross-validation that avoids leakage, feature importance and honest backtesting. It includes Python code snippets.

In more depth

The book is organised around the full research process: data analysis (bars, labelling, sample weights), modelling (cross-validation with purging and embargo, feature importance), backtesting (and its dangers) and useful financial features.

Its central warning, that backtest overfitting produces false strategies, applies to anyone using AI to build investment strategies, including retail investors trying AI-generated trading rules.

Who it is for

Quants, data scientists and developers building AI investing strategies.

How to get the most out of it

  1. Read the chapters on backtest overfitting even if you skip the maths.
  2. Use purged cross-validation in any ML trading project.
  3. Be sceptical of strategies that look great only in backtests.
Keep in mind: Mathematically demanding: you need programming and statistics knowledge.

Advances in Financial Machine Learning: FAQ

Is Advances in Financial Machine Learning suitable for beginners?

No. It assumes programming, statistics and machine learning knowledge.

What is backtest overfitting?

Tuning a strategy so closely to past data that it captures noise rather than a real, repeatable effect.

New free resources, in your inbox Limited-time deals, new tools and free resources by email. No spam.

Summary written by the InvestAITools team. The Amazon links on this page are affiliate links: as an Amazon Associate we earn from qualifying purchases, at no extra cost to you. This never affects what we write. Nothing here is financial advice. Affiliate disclosure.