Step 3 of 6· Investigate: Data leakage
AI Data and Decisions · Lesson 1 of 3 in this module
Investigate: Data leakage
Can a high score come from an unfair test?
Predict: What might happen if copied measurements appear in both the practice group and the checking group?
Start here: Use Reset controls, then Run comparison. Look for the overlap warning. Follow one measurement group across the split.
Experiment guide
- Keep measurement groups together. Choose training-only preprocessing and convert mm to cm. Run comparison again.
- Choose Stop and report missing values. Run comparison. A missing measurement is unknown; it is not a measured zero.
What to look for: Copies of a measurement are not new, independent examples. Also check which examples were used to calculate averages and scales.
Try these steps in the experiment.
Write a prediction · optional
Loading this browser experiment…
More things to try · optional
- Run the default teaching view and inspect the overlap warning and nearest neighbor of a validation row. Capture this baseline for your project.
- Keep measurement groups together. Fit on training only and convert mm to cm. Run again and capture the repaired pipeline. Inspect the mean and scale table.
- Switch missing values to Stop. Explain why a missing feature is not automatically zero. Return to mean filling, then inspect original measurements to distinguish source data from teaching alterations.
Notes, help and related ideas
My notes and reflection
Compare with your prediction
Compare your result with your prediction. Explain a mismatch, then change one condition and try a new case.
Loading your journal…
Your prediction, observation and next question
Prerequisites and related ideas
Key terms: Validation data Generalization Distribution shift