Analysis & metrics

Data snooping

Bias arising from repeatedly searching or reusing the same data to select appealing rules. A model may fit accidental historical features rather than a repeatable mechanism. The problem includes repeatedly modifying a strategy after seeing its results on a supposedly independent evaluation set. It differs from look-ahead bias, although both can occur together.
Example. For 50 independent tests of true null hypotheses at α = 0.05, the expected number of false rejections is 2.5. The probability of at least one is 1−0.95⁵⁰ ≈ 92.3%. Actual strategy variants are usually not independent.

How it works

Log the complete family of attempts: parameters, filters, instruments and rejected versions. Separate development from final evaluation. Repeated inspection of a holdout makes it part of model selection and compromises its original role as an independent check.

Common mistake

The model’s 92.3% does not mean a particular selected strategy has that probability of being false. Multiple-testing adjustment can help, but does not remove information leakage or an inaccurate execution model.

Further learning

In the course: 5.12 Automation and screening in technical analysis — tools, workflow and pitfalls; 15.4 Backtesting and forward testing — methods, evidence and pitfalls. Sources: ASA: p-value statement.

A research decision log

Record discarded filters, instruments and manual changes as well as saved files. If a condition was chosen after inspecting a holdout, that set joined development. A final test needs data independent of those selection decisions.

Primary source checked 11 October 2026: stat.ethz.ch.

FAQ

Does one good out-of-sample result remove the problem?
Not automatically. Selection procedures, earlier trials and independence of the evaluation data from design decisions all matter.
Does naming a dataset OOS make it independent?

No. Its actual influence on rule selection matters, not its folder label.

← Back to the full glossary

Jarosław Wasiński

Editor-in-chief, ForexMechanics.com • Macro & FX analyst

Independent analyst and practitioner with over 20 years of experience in financial markets. Actively involved in Forex since 2007, with a focus on fundamental analysis, OTC market structure, and disciplined capital risk management.

  • Creator and editor-in-chief of MyBank.pl, providing reliable financial education since 2004.
  • Author of hundreds of in-depth market commentaries, structural analyses, and educational materials for traders and investors.
  • Advocate for market transparency, promoting education grounded in hard data and institutional reports (BIS, ESMA, CFTC).

Full author profile, credentials & published research →

All content is educational and informational only – it does not constitute investment advice or a recommendation. Remember: leveraged trading (Forex/CFD) carries a high risk of rapid capital loss.