Avoiding unfair bias in advertising model training data
Short answer
DE Stratify production traffic so every subgroup is represented, and fairness-test the trained model across sensitive categories and demographics.
Question
Key Takeaways
The trap is choosing a random production sample (C) or more demographic features (A); bias is avoided by stratified sampling plus post-training fairness testing, not by feature count.
This PMLE question tests how to build an unbiased training dataset for targeted advertising. The correct choices are D (stratified sampling of production traffic) and E (fairness tests across sensitive categories on the trained model).
Common mistake: Option C — a random sample of production traffic — mirrors who already interacts with ads, so underrepresented groups stay underrepresented and the model reinforces the bias.
Expert Analysis
The adjacent decision: sampling strategy. Option D is correct because stratified sampling deliberately preserves the representation of each demographic or sensitive subgroup that exists in production traffic. Option C is the trap: a simple random sample of production traffic reflects who currently interacts with ads, so groups that rarely click or convert are underrepresented, and the model learns to serve only the majority. That is exactly the mechanism that creates unfair bias in targeted advertising, so C is wrong.
A and B: adding demographics does not fix imbalance. Option A is wrong because including a comprehensive set of demographic features does nothing if some groups are missing from the data — it can even expose sensitive attributes the model will exploit. Option B is explicitly the biased choice: it excludes minority groups from the dataset rather than representing them.
The change in scenario that flips the answer. If the question asked only about dataset construction, C/D/A would compete on sampling alone; the requirement to "avoid creating or reinforcing" bias adds a second requirement — verification after training. That is why option E is correct: fairness tests across sensitive categories and demographics catch bias introduced by the model even when the dataset looks representative. The comments converge on D and E, but one dissent argues E is "post-training" and therefore out of scope — that reading is too narrow, because reinforcing bias in the trained model is precisely what E tests for.
Operational consequence of getting it wrong. Shipping a model built on an unstratified sample systematically under-serves minority groups, producing discriminatory ad targeting and regulatory exposure, while undetected post-training disparity goes to production unmeasured.
Exam Strategy
When a bias question asks you to choose two, look for one answer that fixes the data (sampling) and one that verifies the result (testing) — a two-stage control pattern. Reject options that only add features or only sample the majority, since neither changes representation. This split between prevention and detection appears across fairness, monitoring, and data-balancing questions.
Frequently Asked Questions
Why is stratified sampling better than a random sample for advertising data?
Does fairness testing on the trained model count as dataset preparation?
Why not include all demographic features to reduce bias?
Community Votes
77% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 15 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 15
-
AB_C 👍 6 Answered ED&E - right
-
omermahgoub 👍 4 Answered DD. Stratified sampling to ensure the different demographic groups or categories are proportionally represented in the training data. This helps mitigate bias that might arise if certain groups are under-represented. E. Fairness tests can reveal disparities in how the model treats different populations, allowing you to identify and address potential biases.
-
b1a8fae 👍 3 Answered DD E. ChatGPT explanation below (but I think makes quite a lot of sense) Collect a Stratified Sample (Option D): Stratified sampling involves dividing the population into subgroups (strata) and then randomly sampling from each subgroup. This ensures that the training dataset represents the diversity of the population, helping to avoid biases. By collecting a stratified sample of production traffic, you are more likely to have a balanced representation of different demographic groups, reducing the risk of biased model outcomes. Conduct Fairness Tests (Option E): After training the model, it's crucial to conduct fairness tests to evaluate its performance across different sensitive categories and demographics. This involves measuring the model's predictions and outcomes for various groups to identify any disparities. Fairness tests help you assess and address biases that may have been inadvertently introduced during the training process.
-
AzureDP900 👍 3D and E is right answer, question asks us to select 2 right answers • To avoid creating or reinforcing unfair bias in the model, you should collect a representative and diverse dataset (option D) that includes a stratified sample of production traffic. This ensures that your training data is inclusive and accurately represents the diversity of your target audience. • Once you have collected your training dataset, you should conduct fairness tests across sensitive categories and demographics on the trained model (option E). This involves evaluating whether the model treats different demographic groups fairly and without bias. If biases are detected, you can take steps to mitigate them and ensure that your model is fair and accurate.
-
wences 👍 3 Answered DFrom my statistical point of view, D and E will mitigate the effect of bias.
Show 10 more comments
-
pikachu007 👍 2 Answered DD. Stratified Sampling: Randomly sampling your data might not accurately represent the diversity of your target audience, potentially introducing bias by over- or under-representing certain demographics. Stratified sampling ensures your training dataset reflects the distribution of sensitive features (e.g., age, gender, income) observed in your production traffic, helping mitigate bias during model training. E. Fairness Testing: Simply collecting unbiased data isn't enough. Regularly testing your trained model for fairness across sensitive categories is crucial. This involves measuring and analyzing metrics like accuracy, precision, recall, and F1 score for different demographic groups. Identifying disparities in performance can trigger further investigation and potential re-training to address bias.
-
MultiCloudIronMan 👍 2 Answered DD and E is the two answers. Two selections are required
-
pinimichele01 👍 2why not D and A?
-
CHARLIE2108 👍 2 Answered DI went D, E
-
taylz876 👍 1Why D and E are right • D, stratified sample: random production traffic mirrors who already interacts with ads, so groups that interact less are underrepresented, and the model then learns less about them. A stratified sample deliberately includes enough examples from each group, so the dataset doesn't carry that imbalance into the model. • E, fairness tests: even with a good dataset, you only know whether the model treats groups fairly by measuring it. Comparing metrics (such as accuracy and recall) across sensitive categories and demographics shows whether the model performs worse for some groups. This is the same method as in Q225 (Agent Platform fairness evaluation, formerly Vertex AI). Why the others are wrong • A: Including a comprehensive set of demographic features can make bias worse, because the model can use those features directly, or use features that stand in for them (proxies). • B: Including only the groups that interact with ads most often leaves out everyone else, which builds the unfairness into the dataset. • C: A random sample of production traffic copies whatever bias is already in how people interact with ads, so it can reinforce the existing bias.
-
guilhermebutzke 👍 1 Answered DDE D. Collect a stratified sample of production traffic to build the training dataset: This ensures that the training data represents the diverse demographics that will be targeted by the advertising campaigns. Random sampling might unintentionally underrepresent certain groups, leading to biased model outputs. E. Conduct fairness tests across sensitive categories and demographics on the trained model: This allows you to identify and address any potential biases that may have emerged during the training process. Evaluating the model's performance on different groups helps ensure fair and responsible deployment.
-
daidai75 👍 1 Answered DI go for D & E: A stratified sample ensures that the training data represents the distribution of the target population across relevant demographics or other sensitive categories. This helps mitigate bias arising from underrepresented groups in the data. Regularly testing the model for fairness across sensitive categories helps identify and address potential bias issues before deploying the model in production. This can involve metrics like precision, recall, and F1 score for different demographic groups.
-
shadz10 👍 1 Answered CC, D - Conducting fairness tests across sensitive categories and demographics on the trained model is indeed important. However, this option focuses on post-training analysis rather than dataset creation. While it's a crucial step for ensuring fairness, it doesn't directly address how to create a training dataset to avoid bias. Hence C,D
-
tavva_prudhvi 👍 1Check b1a8fae comment on why D is better than C!
-
dija123 👍 1 Answered DAgree with D and E
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All PMLE Questions
Access 65 questions with complete answers and detailed explanations.
View Full PMLE Practice Test →