Applicant A
Job-relevant skills: 78 points
Deduction for group label: 0 points
AI BIAS & FAIRNESS LAB · A GUIDED INTRODUCTION
A system can make decisions that repeatedly disadvantage some people—even when nobody tells it to.
Imagine being qualified for a job, but getting filtered out because the scoring system favors people who resemble previous hires. Your skills did not change. The system used the wrong clue.
Automated decisions can affect who gets an interview, whose content gets recommended, or whose request gets extra scrutiny. An impressive average score can hide the people a system keeps getting wrong.
What you’re looking at: invented examples with visible arithmetic. This page does not run a trained AI model. The scores and groups below are teaching choices, not findings about real people or hiring products.
Start with two applicants →Two fictional applicants each earn 78 skill points out of 100. The only difference is a made-up group label: A or B. Our deliberately flawed rule takes points away just for being in Group B—not for having fewer skills. Should that change who gets an interview?
Job-relevant skills: 78 points
Deduction for group label: 0 points
Job-relevant skills: 78 points
Deduction for group label: 25 points
Group A and Group B are made-up labels, not actual demographic groups. In this exercise the label tells us nothing about job ability. The deduction is invented so you can see its effect; it is not a measurement of real-world discrimination.
Why try this? Both applicants have the same skill score. Removing the deduction for the group label should give them equal scores.
We chose 78 skill points, a starting 25-point deduction, and a starting interview cutoff of 70. They are round teaching values. A score is points on this toy scale, not a probability of being qualified. No applicant data was collected and no real model was audited.
In real systems, hiding a name may not remove other clues linked to group membership. This demonstration removes one explicit penalty; it does not prove that blind screening solves fairness generally.
Here, an “irrelevant clue” means a detail that tells us nothing about doing the job. In this example, that is the made-up group label. Giving Group B fewer points for that label can keep an equally skilled applicant out of an interview.
But could a high accuracy score hide that problem? Let’s check a whole group. →Now apply the same scoring rule to 1,000 fictional applicants. In each group, half are labeled qualified for this toy exercise. We know those labels because we created the example.
A score at or above this line earns an interview. This changes the decision rule, not anyone’s skills.
This changes who is counted in the overall average. It does not retrain a model or repair the group penalty.
Change one thing at a time. Watch the counts on the right. A nicer average does not necessarily mean fewer qualified people were missed.
| Decision | Group A | Group B |
|---|
These metric definitions follow Fairlearn’s assessment guide. No single number is a fairness certificate. Who is affected, what errors cost, and how qualification labels were created also matter.
Each group starts with the same 100-record template: 50 records labeled qualified and 50 labeled unqualified. Qualified skill scores are evenly spaced between 70 and 98; unqualified scores between 5 and 48. The Group B penalty is subtracted before comparing each score with the cutoff. We repeat the template to reach 1,000 applicants with the group mix you selected.
Those ranges deliberately make the original skill score highly predictive, so you can isolate the added penalty. Real qualification labels and model scores are much messier. This code does not train an AI, perform class weighting, or run SMOTE. Changing group mix changes the evaluation average, not training representation.
Inspect the calculation code →Try an answer. No score, no pressure.
First, the group label reduced an applicant’s score even though their skills were the same. Next, a group breakdown exposed what the overall average hid. A lower cutoff can change who passes, but it can also introduce other errors.
What about a chatbot that writes rather than ranks? Follow the pattern. →A word predictor can favor patterns that appear often in its examples. Here’s a deliberately tiny counting exercise: change how often three pronouns appear, then see their shares of the example text.
This is not an LLM benchmark. These are invented word counts, not measured probabilities from ChatGPT or any other model, and not statistics about any occupation.
Example sentence: “The engineer said that ___ would review it.”
Increase a word’s count and its share grows. Decrease it and its share shrinks. Changing one count also changes the total used to calculate every share.
A real language model uses learned relationships and context, not this three-word counting rule. Still, the exercise raises a useful question: is an output reflecting evidence about this person, or a familiar pattern? Word frequency alone cannot tell us someone’s gender, ability, or whether a system treats people fairly.
“Where did this result come from? Who does it work for? What changed when I moved that control?” Those questions are more useful than accepting a “fairness fixed” badge.
Keep going: what do the actual mitigation terms mean? →There isn’t a universal “make it fair” switch. Different approaches change different parts of a system. Start with what the method does, then ask whether it helps the people affected.
If relevant cases are missing or labels reflect past unfair decisions, review the data and how it was collected. More examples do not automatically mean better examples.
SMOTE creates synthetic training examples between nearby records in an underrepresented class. A class might mean “fraud,” not a demographic group. It can help some imbalanced classification tasks, but it can also make poor examples. It is not a fairness guarantee and is not implemented in this page.
See the imbalanced-learn explanation →During training, an error contributes to a model’s loss—a number it tries to reduce. Class weighting makes errors on selected classes count more. For example, missing a rare fraud case could cost more than another error.
No feelings, rewards, or money are involved. A weight changes the arithmetic used to fit the model. It may change which patterns the model learns, so engineers must test both the intended improvements and any new mistakes. Class weighting and demographic fairness are different questions.
A lower interview cutoff invites more people. Some are qualified people previously missed; some may not meet the example’s qualification label. Lesson 02 shows both counts instead of calling either direction automatically “fair.”
Check group results, incorrect acceptances, missed qualified applicants, and whether the labels themselves are justified. Keep human review and an appeal path appropriate to the real setting. One small metric gap does not settle every fairness concern.
AI bias is about patterns of outcomes and their consequences. Ask what was measured, inspect who gets missed, and test whether a change helps without hiding a new problem.
Return to the two-applicant example ↑