Why should future data not be used to predict the past?
Future data should not be used to predict the past because that information would not have been available at the time the prediction was supposed to be made.
Using future information gives the model an unfair advantage and creates an unrealistic evaluation.
Simple example
Suppose you want to predict on January 1 whether a customer will cancel their subscription during January.
The model may use information available up to January 1, such as:
- past login activity
- previous payments
- earlier support requests
- current subscription details
But it should not use:
- a cancellation request submitted on January 20
- February usage data
- a refund recorded after the customer already cancelled
Those events happen after the prediction point.
What goes wrong if future data is used?
The model may appear extremely accurate because some future variables directly or indirectly reveal what eventually happened.
This can cause:
- inflated validation or test scores
- misleading confidence in the model
- poor performance after deployment
- data leakage
Real predictions move forward in time
In production, a model normally uses information available now to predict something that happens later.
A realistic experiment should reproduce that same information boundary.
Past information → Prediction point → Future outcomeData to the right of the prediction point should not be used to construct features for a prediction made on the left.
This applies beyond the train-test split
Future information can leak into the model through:
- feature engineering
- preprocessing
- rolling statistics
- aggregations
- labels created with incorrect time windows
For example, a 30-day average used for a January 1 prediction must not include observations from dates after January 1.
In short, future data must not be used to predict the past because it would not exist at prediction time. Using it creates leakage and produces performance estimates that cannot be reproduced in the real world.
Learning Sequence
Machine Learning Curriculum
Explore Related Questions
Deepen your understanding across related Machine Learning topics.