Avoiding unfair bias in advertising model training data

PMLE By islever Editorial Last updated

Short answer

DE Stratify production traffic so every subgroup is represented, and fairness-test the trained model across sensitive categories and demographics.

Question

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.)
  1. Include a comprehensive set of demographic features
  2. Include only the demographic groups that most frequently interact with advertisements
  3. Collect a random sample of production traffic to build the training dataset
  4. Collect a stratified sample of production traffic to build the training dataset Correct Answer
  5. Conduct fairness tests across sensitive categories and demographics on the trained model Correct Answer

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?

A random sample of production traffic reproduces existing interaction patterns, so groups that rarely engage with ads stay underrepresented. Stratified sampling ensures each demographic or sensitive subgroup contributes enough examples, preventing the model from learning to ignore them.

Does fairness testing on the trained model count as dataset preparation?

The question asks to avoid creating or reinforcing bias, so post-training fairness testing across sensitive categories is in scope. Even a representative dataset can produce a biased model, and E is the only option that detects that.

Why not include all demographic features to reduce bias?

Option A adds features but does not fix underrepresentation; comprehensive demographics can instead let the model exploit sensitive attributes. Representation comes from sampling (D), and bias detection from fairness tests (E).

More PMLE FAQ →

Community Votes

D
77%
E
15%
C
8%

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

  1. AB_C 👍 6 Answered E
    D&E - right
  2. omermahgoub 👍 4 Answered D
    D. 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.
  3. b1a8fae 👍 3 Answered D
    D 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.
  4. AzureDP900 👍 3
    D 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.
  5. wences 👍 3 Answered D
    From my statistical point of view, D and E will mitigate the effect of bias.
Show 10 more comments
  1. pikachu007 👍 2 Answered D
    D. 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.
  2. MultiCloudIronMan 👍 2 Answered D
    D and E is the two answers. Two selections are required
  3. pinimichele01 👍 2
    why not D and A?
  4. CHARLIE2108 👍 2 Answered D
    I went D, E
  5. taylz876 👍 1
    Why 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.
  6. guilhermebutzke 👍 1 Answered D
    DE 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.
  7. daidai75 👍 1 Answered D
    I 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.
  8. shadz10 👍 1 Answered C
    C, 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
  9. tavva_prudhvi 👍 1
    Check b1a8fae comment on why D is better than C!
  10. dija123 👍 1 Answered D
    Agree with D and E

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All PMLE Questions

Access 65 questions with complete answers and detailed explanations.

View Full PMLE Practice Test →

← Back to PMLE Study Guide