Basic Prerequisites: Statistics & Inference (bias-variance, model selection) and Econometrics & Time Series (stationarity). (these are the folder-level prerequisites for pages 02–06; page 01 states its own, smaller, entry requirements)


1. Intuition & Practical Objective

In computer vision a cat is a cat: the physical generator of a cat image does not change from 2010 to 2024, so the Signal-to-Noise Ratio (SNR) is enormous and a model that memorizes structure generalizes. In finance the situation is inverted: the signal is microscopic and the noise dominates. A real quantitative edge on daily data is an Information Coefficient (IC) of roughly , which means the best possible out-of-sample a model can achieve is of variance. Everything else a backtest shows is, by construction, overfitting, leakage, or selection bias.

This folder is the cornerstone of Pillar 7 and the hub for everything else in the pillar. Its job: (a) give you the fast signal/hygiene lookup below (job #1), and (b) route you through six sub-pages that build the intuition from zero, prove why finance is different, quantify the low-SNR ceiling, expose non-stationarity and non-IID samples, name the failure modes, and hand you the advanced toolkit (Deflated Sharpe, fractional differentiation, purged CV).

The one-sentence essence. “Finance is not normal ML: the signal-to-noise ratio is microscopic, the data-generating process is non-stationary, the samples are non-IID and overlap in time, and the market actively adapts to destroy your edge the moment you deploy it - so almost every impressive in-sample result is a false positive produced by overfitting, look-ahead, or selection bias.”


2. Mathematical Ground Truth & Lookup

All numbers in the check column were re-executed and reproduced exactly from the verified code in §3 (stdlib/numpy only).

Notation: return, signal, noise, signal/noise std, number of observations, lag-1 autocorrelation, number of trials/strategies tried, observations per year.

QuantityFormulaVerified check
Return decomposition, -
Signal-to-noise ratio-
from SNR (Gaussian)
IC ceiling on OOS
Effective sample size (AR(1))
Expected max of luck strategies (std Normals)
Bias–variance (ESL eq. 7.9)-
Minimum backtest length years

The critical scaling caveat. The IC ceiling () is why any model claiming an out-of-sample on daily asset returns is mathematically guaranteed to be contaminated by look-ahead or leakage - no legitimate model of daily cross-sections can get there.


3. Computational Implementation - the signal & selection-bias engine

This runs on the standard library only. It reproduces every verified number above and is the mental template for the whole folder: SNR↔ bookkeeping, and the selection-bias floor on any backtest.


4. Failure Modes & First-Principles Breakdowns

Hub signposts - the full treatment lives in 05 · Failure Modes & Practice. In one line each:

  1. Overfitting with few effective samples - flexible models memorize noise; (not the raw row count) is what a complex model can actually “use.”
  2. Random K-fold CV on financial data - shuffling non-IID, overlapping-label series leaks the future across folds (spurious on pure noise, see 02/05).
  3. Look-ahead & point-in-time leakage - using information not yet available at the timestamp (reported earnings, survivorship-filtered universes).
  4. Selection bias / multiple testing - the best of tried strategies has expected Sharpe , not ; that “edge” is luck.
  5. Non-stationarity - a model fit in one regime dies in the next (sign flips, vol breaks, structural shifts).

5. References

  • López de Prado, Marcos: Advances in Financial Machine Learning (Wiley, 2018)
  • López de Prado, Marcos: Machine Learning for Asset Managers (Cambridge Elements, 2020)
  • Hastie, Tibshirani & Friedman: The Elements of Statistical Learning (2nd ed., 2009)
  • Bailey, David H. & López de Prado, Marcos: “Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance,” Notices of the AMS 61(5), 2014
  • Gu, Shihao; Kelly, Bryan; Xiu, Dacheng: “Empirical Asset Pricing via Machine Learning,” RFS 33(5), 2020

6. Connected Graph Bridges

Beginner: start at 01 · Practitioner: start at 05