How to prevent unfair bias in ML datasets?
You are developing a model to help your company create more targeted online advertising campaigns. You need to create a dataset that you will use to train the model. You want to avoid creating or reinforcing unfair bias in the model. What should you do? (Choose two.)
Community Votes
84% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Stratified sampling ensures minority representation in data, while fairness tests validate model equity; the trap is choosing random sampling, which fails to fix skewed distributions.
To prevent unfair bias in advertising models, use a stratified sample for training data to ensure all groups are represented and conduct fairness tests on the model. Community consensus confirms options D and E are correct.
Choosing Option C (random sample) is incorrect because it does not guarantee the representation of minority groups in skewed production traffic, leading to potential model bias.
Community Discussion (13 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option D ensures that the training dataset reflects the actual diversity of the population, particularly minority groups that might be lost in a random sample. Option E is necessary to audit the model's performance across different demographics to detect and mitigate disparate impact. These two steps cover data preparation and model validation, which are critical for Responsible AI.Why the Other Options Are Wrong
Option A is incorrect because simply adding demographic features does not prevent bias; the data distribution matters more. Option B introduces selection bias by excluding less frequent groups. Option C is a common trap; while random sampling is a standard practice, it is insufficient for fairness goals because it often underrepresents minority classes in imbalanced real-world data.Community Comment Notes
The community strongly supports D and E, with multiple comments explaining that stratified sampling is statistically required for representation. One dissenting comment (Comment 9) suggested C and D, arguing E is post-training, but the majority and exam guidelines emphasize that fairness testing is a mandatory step in the bias mitigation workflow.Official Reference
Exam Strategy
Always pair 'stratified sampling' with 'fairness testing' in Responsible AI questions to cover both the data input and model output phases of the ML lifecycle.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →