Skip to content
Free standard shipping to supported destinations
Delta-Xi LogoDelta Xi
ShopOur storyLearnHelp
Learn
OverviewConcepts
Back to Concepts
🤖
Machine Learningtheory

Backtest leakage

When a historical test uses information unavailable at the time.

Library note. Check the assumptions and further reading before applying a formula.

What Is This?

A backtest should replay what a decision-maker could actually have known. Leakage slips future information into that decision. It can enter through revised datasets, a price that was not yet tradable, or a scaling rule fitted to the whole history. The code may run correctly while the experiment answers an impossible question.

Try an example

You fit a scaler using every date, then train a model on the first half and test on the second. The training values now depend on the future test distribution. Fit the scaler on the training window and carry it forward unchanged.

Where it needs care

Removing leakage repairs the experiment; it does not establish a profitable strategy. Include fees, timing, instrument availability and a suitable passive benchmark. Record how many alternatives you tried.

Historical Context

Look-ahead and selection bias were known before machine learning. Automated pipelines create more places for these older experimental errors to hide.

Real-World Applications

  • Audit time-stamped feature pipelines.
  • Keep validation labels and future revisions out of training.

Further reading

  • Further reading: Backtest leakage
Difficulty:Intermediate
Delta-Xi LogoDelta Xi

A place for good ideas, on a shirt or off the page.

Say hello

Explore

  • Shop all
  • Mathematics T-shirts
  • Accessories
  • Learn
  • Our story

Here to help

  • Contact
  • Size & care questions
  • Shipping & returns
  • Your orders
  • Track an order

Keep in touch

  • Instagram
  • Discord
  • Telegram
  • Affiliate programme

© 2026 Delta Xi. Prices in USD.

PrivacyTerms

Your cookie choices

Essential cookies keep your basket and sign-in working. Optional cookies help us understand visits and measure ads. Privacy details.

Related Concepts

🤖

Attention Mechanism

Technique that allows models to focus on relevant

🤖

Backpropagation

Algorithm for training neural networks by computin

\theta := \theta - \alpha \nabla_\theta J(\theta)

Gradient Descent Update

How neural networks learn by following the slope