In model training and evaluation, what does the term data leakage mean?
Show the answer and explanation
Correct answer: C, Information that is unavailable at prediction time, or that comes from the test set, getting into training.
Explanation Data Leakage
Data leakage happens when information that would not be available when the model is used for real (at prediction time), or information from the held-out test data, gets into training. The model then looks better in evaluation than it will be in production.
Why the other descriptions are different concepts:
- Learning noise so that training scores beat test scores is overfitting; it can happen with perfectly clean splits.
- A shift in the input distribution after deployment is data drift, a monitoring problem rather than an evaluation bug.
- Rows dropped in an ETL job are a data quality issue; they shrink the data but do not leak future or test information.
The two classic forms are target leakage (a feature that is only known after, or because of, the outcome) and train–test contamination (test data influencing fitting, e.g. a scaler fitted on all rows).
Interview tip: the typical symptom is a validation score that looks too good to be true; the check is to ask, for every feature and preprocessing step, "would I have this at prediction time?"