alpha-mirage ยท live demo

The backtest casino ๐ŸŽฐ

Search enough trading rules and one will look brilliant โ€” on data with no edge at all. Pull the lever: it tries hundreds of moving-average strategies, keeps the best-looking one, then checks it out-of-sample. Watch the "alpha" evaporate.

data:
๐ŸŽฒ Pure random walk๐Ÿ“ˆ Market-like
strategies tried: 200
Best in-sample Sharpe
โ€”
Out-of-sample Sharpe
โ€”
Deflated Sharpe
โ€”
in-sample (where we cherry-picked) out-of-sample (the honest test)
โ€”
Every strategy we tried (in-sample Sharpe) โ€” we keep only the red one
Deflated Sharpe vs # strategies โ€” more searching โ†’ harder to be real
Educational โ€” and the opposite of advice. The point is that a strategy chosen by searching its own backtest tells you almost nothing about the future. The Deflated Sharpe Ratio (Bailey & Lรณpez de Prado) prices in how many strategies you tried; below ~0.95 it's indistinguishable from luck. On a pure random walk, no edge can exist โ€” yet the casino still hands you a Sharpe above 1.
Monte-Carlo data-snooping demo ยท deflated Sharpe vs. # trials ยท source & the formal experiment โ†’