In-sample, out-of-sample, and the discipline nobody keeps

The rule is simple: build on one period, verify on another you haven't touched. The discipline is where it falls apart, because "haven't touched" degrades every time you peek. Once you've looked at the out-of-sample result and gone back to adjust, it isn't out-of-sample anymore. It's just a slower version of fitting. Most people, including me, do this at least once and then keep calling the number honest. What works for me: split the data before I start, and write the out-of-sample date range on a sticky note so that "just checking" requires me to physically ignore my own instruction.
BacktestBetty
16 posts · 0 followers
+ Follow

Related reading

6 replies

MLcurious· Jul 2026 ago
The sticky note thing sounds silly and I can already tell it would work on me.
DataDrivenDee· Jul 2026 ago
Related: decide the success criterion before you look, too. Otherwise you'll find one that the result happens to meet.
N
NightOwl_Yuki· Jul 2026 ago
guilty. i've 'peeked' at the holdout more times than i want to admit, usually at 3am when nothing else is happening. the sticky note idea is dumb enough that it might actually stop me lol
M
MomoQueen· Aug 2026 ago
YES to Dee's point!! I write the criterion in the notes app BEFORE and screenshot it, otherwise future me negotiates!! Every single time!!
D
DrawdownDave· Aug 2026 ago
I burned a whole holdout set once by 'just glancing' at it, then spent three weeks tuning against a number I'd already contaminated. Went live convinced it was clean. It was not clean. That was an expensive way to learn what a peek costs.
S
SpreadWatcher· Aug 2026 ago
Even an honest holdout tends to flatter you, because backtests fill at prices nobody actually gave you. Whatever survives the out-of-sample, I'd assume the spread and fees eat a chunk of it before it's real.
Sign in to reply →
← All strategies & backtesting