Keep tomorrow out of today
How look-ahead leakage sneaks into sports backtests through revised ratings, closing lines, and full-season averages.
Worked game math
- 01
Leaky season average
Week 4 game scored with Week 1-18 EPA
Using full-season stats in Week 4 hands the model 14 future weeks of results.
- 02
Honest cutoff rule
fact recorded time < pregame cutoff < kickoff (n = 512)
Only Weeks 1 through 3 belong in a Week 4 pregame input.
- 03
Standardizer scope
Mean & SD computed on past training games only
Scaling inputs across the whole dataset leaks future distribution shifts.
Timed walkthrough & takeaways
- 0:00
Why leaky models look unbeatable in tests
Even tiny hints of postgame information inflate historical win rates.
- 1:08
Enforce the pre-kickoff boundary
Check both when a fact happened and when the data feed recorded it.
- 2:15
How Lab guards your recipe
Incompatible future inputs are ruled out with a plain-English reason.
Key takeaways
- If a historical test wins 68.0% against the spread, check for future leakage first.
- Lab automatically blocks closing lines as inputs for pregame targets.
- Every rolling stat and z-score must compute strictly inside the pre-game window.
Four-step visual diagram
A prediction starts with the facts available when you make it.
- 1A prediction starts with the facts available when you make it.
- 2Only inputs known in time belong in training.
- 3Block an update that arrives after the prediction.
Use the version available before the cutoff.
- Cutoff
- Kickoff 18:00 UTC
- Admitted pre-cutoff
- 424
- Blocked post-cutoff
- 88
Keeps 424 pre-kickoff records active and blocks 88 post-kickoff updates and score fields.
For quants
Point-in-time correctness requires both event timestamp and producer revision timestamp to precede the forecast cutoff.
Put this lesson to work
Inspect real numbers and recipes directly inside Shark Snip.
