Data leakage
Definition
Information enters model training or preprocessing that would not have been available when the prediction was made. This can make evaluation look better than real forecasting.
Explanation
Fit transformations using the training data only. For time series, also check whether a rolling statistic or a revised historical dataset exposes information from the future.
Examples
- Hypothetical: scaling a training series with a mean calculated using the held-out test year leaks test information.