Cross-validation is the standard way to measure how well a model predicts data it hasn't seen: split the data into folds, train on some, test on the rest, repeat. Applied naively to financial time series, it reports skill that doesn't exist, and machine learning tools apply it naively by default. This lesson builds a dataset with nothing to predict, shows standard cross-validation finding a strong "signal" in it, and fixes it with walk-forward validation.
| Term | Meaning |
|---|---|
| fold | One of the parts the data is split into for cross-validation |
| k-fold (shuffled) | Random folds; train on k − 1, test on the remaining one, in turn |
| leakage | Information about the test data reaching the model through the training data |
| overlapping labels | Targets that share data, like 20-day returns measured every day |
| walk-forward | Train only on the past, test on the period after it, then roll forward |
| purging / embargo | Removing training days whose targets overlap or sit next to the test period |
The rest of this lesson needs lifetime access
It will be part of lifetime access, which is coming soon: every lesson in all four tracks, including lessons added later, for one payment.
Already have access? Sign in

