Where Leakage Hides
Impute before splitting, select features on all the data, or split a time series at random — and watch validation lie.
Controls
Dataset
More repeats per subject means more to leak if folds ignore grouping.
0 = no real relationship exists at all; the honest score should sit at chance.
Per-subject random offset shared by all of that subject's rows.
Per-block random offset shared by all rows collected in that block.
Pipeline / leakage toggles
On = leaky: features are screened using rows that include the test fold.
On = leaky: mean/sd for scaling come from rows including the test fold.
On = honest: a subject's repeated rows all stay in one fold. Ignored when forward-chaining is on.
On = honest: train only on the past, test only on the future block.
Estimation
Every result on this page is a deterministic function of the seed and the controls.
Reported CV vs. honest held-out score
Reported = k-fold CV on the training pool, with whatever leakage the toggles allow. Honest = the same fitted pipeline scored on freshly simulated, unrelated subjects.
Optimism climbs with the number of noise features
Averaged over 6 quick simulations per point, current toggles held fixed. Watch what happens when selection or scaling happens before the split.
Distribution of the gap across repeated simulations
Reported − honest accuracy, over 60 independent simulations from fresh seeds.
