Bias and fairness checks
Compare how a model treats each group of people with the same measures, read the gaps with care, and accept that fairness has no single pass or fail.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a referee who calls every team the same way. A good referee calls the same foul the same way for every team. If one team is whistled twice as often for the same kind of play, fans ask why. To check a referee, you do not ask how he feels. You count calls for each team and compare.
Daily List is a to-do list app. Leo builds a model that decides who sees an offer: a free month of the paid plan. Nina asks Tom to check that the model treats people fairly. Tom does what a league would do. He splits the results by group and counts, group by group.
One group is people aged under 30. The other is people aged 30 and over. Age is a , a personal trait that a decision should not unfairly depend on. Tom compares how often each group sees the offer. That check is .
Leo says, "The model never sees age." That is not enough. Another input, such as the type of phone, can move together with age. The model can then treat groups differently without ever reading age. Tom checks results by group anyway.
The picture has limits. A referee judges one game, and a model judges thousands of people. A foul is clear on the video, but a fair outcome is a matter on which people can disagree. Tom reports gaps, denominators, uncertainty and any result against agreed metric-specific criteria, without treating it as universal fairness certification.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 1 in this section
- denominators
- the totals that rates are measured against
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Checking that a model treats each group of people the same way, by counting results group by group.
- Split by group
- Count each outcome
- Compare the gaps
- Report, do not rule
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A referee calling fouls | The model deciding who gets the offer |
| Counting calls for each team | Splitting results by group |
| Two teams | Two groups of users |
| A player who looks like another | A proxy input |
WHERE THIS PICTURE STOPS
- A referee judges one game. A model judges thousands of people.
- A foul is clear on video. A fair outcome is open to debate.
- A league can change the rules. A tester reports and others decide.
- A tester can report pass/fail against agreed metric criteria; that does not certify fairness in every sense.
HOOK
Count the calls for every team.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Split the results by group, count each group, then compare the counts.
| In the trick | What it stands for |
|---|---|
| Split | split the results by group |
| Count | count the results group by group |
| Compare | compare the counts for the groups |
TELL A FRIEND
A fair referee calls the same foul the same way for every team. You check by counting calls for each team.
OFTEN MIXED UP WITH Testing AI and machine-learning features. The overview lesson shows how to judge a learned feature in general. This lesson judges it group by group.
PRACTISE AND KEEP
Sources for this topic — 7 sources
- Market practice
Towards a Standard for Identifying and Managing Bias in Artificial Intelligence, NIST Special Publication 1270 (National Institute of Standards and Technology) ↗ — National Institute of Standards and Technology (NIST) · Names systemic, statistical and computational, and human bias; gives preliminary guidance on datasets, testing and evaluation, human factors and governance; says zero bias risk is impossible (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: March 2022, 86 pages. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Fairness: Demographic parity (Google Machine Learning Crash Course) ↗ — Google · Demographic parity compares acceptance rates across groups without regard to individual qualifications, and can overlook differences in qualifications inside each group (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Fairness: Equality of opportunity (Google Machine Learning Crash Course) ↗ — Google · Equality of opportunity looks only at qualified people in each group; it needs a clear preferred label; both checks can hold at once only under specific conditions (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester Artificial Intelligence Testing Syllabus v1.0 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-AI v1.0, 1 October 2021), version checked against the document's own front matter, read in full text: section 1.8.3 lists risks of pre-trained models, among them reduced transparency and inherited bias that may not be apparent without documentation of the training data
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-AI v1.0, 1 October 2021), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it. Superseded by version 2.0.
- Market practice
Upstream Mitigation Is Not All You Need: Testing the Bias Transfer Hypothesis in Pre-Trained Language Models (Steed and others, ACL 2022) ↗ — Association for Computational Linguistics · Reducing bias in a language model before fine-tuning did little to reduce discriminatory behaviour after fine-tuning; disparities were better explained by the fine-tuning data (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: ACL 2022 paper. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
What to Test in Artificial Intelligence Based Systems (micro-credential document) ↗ — AT*SQA · A micro-credential document (not the syllabus of the International Software Testing Qualifications Board) asks learners to explain the causes and symptoms of hallucinations, reasoning errors and bias, how to test for them, and the testing problems of non-deterministic systems (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
ISTQB announces minor update to Certified Tester Testing with Generative AI (CT-GenAI) ↗ — International Software Testing Qualifications Board (ISTQB) · Announcement of version 1.1: the syllabus covers hallucinations, reasoning errors, bias, data privacy and security risks, and adds practical advice on adopting generative AI, including its environmental impact (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.