Advanced level · Module 3: Bias Mitigation and Model Improvement · Lesson 2 of 3
Validating Mitigation Properly
Learners avoid the trap of tuning to the test set, validate the chosen model on held-out and shifted data and check that the mitigation helps the people it is meant to help.
In this lesson you will
- Use separate data for selection and final testing
- Test mitigation robustness under data shift
Key concepts
validation setheld-out test setoverfitting to metricsdistribution shiftsubgroup robustness
The lesson
If the same test data is used to choose the mitigation and to report results, the reported fairness will be too optimistic. Use three splits: training, validation (for choosing) and a final test set used once.
Check robustness by testing on data from a different county or year, if available, or by simulating shift, for example by changing the share of rural cases. A mitigation that only works on the original mix may fail after deployment.
Finally, check the effect on people. Who changes from not selected to selected, and from selected to not selected? Are the newly selected people actually in the group the mitigation intended to help?
Step by step
- Re-split the data into training, validation and test sets.
- Re-run the selection on the validation set only.
- Evaluate the chosen model once on the test set and on a shifted sample.
- Analyse who changed decision under the mitigation.
Practice activity
Validate the chosen mitigated model on held-out and shifted data and analyse decision changes.
Expected result: An honest validation report with robustness results and a decision-change analysis.
Check your understanding
-
Why use a separate validation set for choosing a mitigation?
Show answer
To avoid overly optimistic results from tuning to the test set.
-
What is a decision-change analysis?
Show answer
Checking who gains or loses a positive decision because of the mitigation.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.