AI Foundations for Students | 023. Bias, Representation and Fair Comparisons
AI Foundations for Students · Lesson 23 of 36
Module 4: Checking Information and Media
In this lesson
Learning goal: Examine sample coverage, stereotypes and uneven errors without labeling people.
Bias can enter at several stages
A model’s output reflects choices about the task, data, labels, measurements and evaluation. Bias can arise when the examples do not cover the intended conditions, when measurements work differently across situations or when labels reflect inconsistent judgements. A model does not become fair simply because its calculation is automated. People decide what counts as success and who bears the cost of errors.
This lesson uses fictional photographs of geometric cards under bright and dim lighting. We do not collect sensitive information about students or label people’s abilities. The harmless setting makes an important pattern visible: an overall score can hide different performance across conditions. Studying this pattern is a first step in fairness reasoning, not a complete formula for social fairness.
Coverage changes what a model learns
Suppose a training collection contains ninety bright-light card photos and ten dim-light photos. A model may have much more opportunity to learn bright-light appearances. That imbalance does not prove exactly what it will do, but it gives a reason to check both conditions carefully. A representative dataset should reflect relevant variation in the intended setting.
More examples of the already common condition may not address the missing coverage. If dim images are blurry, collecting clear dim examples and checking the capture process may help. If the labels themselves are wrong, adding more similarly mislabeled data can reinforce the problem. Investigate the mechanism rather than assuming that a larger file solves every issue.
Compare rates with explicit denominators
Our complete fictional evaluation summary has ten bright-light examples with nine correct predictions and ten dim-light examples with six correct predictions. Bright-light accuracy is 9/10 = 90%. Dim-light accuracy is 6/10 = 60%. Overall accuracy is (9 + 6)/(10 + 10) = 15/20 = 75%. The overall score alone hides a thirty-percentage-point gap.
This evidence shows different measured performance in this small test. It does not prove why the difference occurred. Lighting, camera position, card selection or random variation could contribute. We need the underlying records and more appropriate evidence to investigate. Avoid turning a detected gap into a confident story about cause without checking alternatives.
Fairness is more than equal percentages
Equal overall accuracy can still hide different types of errors. One condition might produce more missed circles while another produces more false circle labels. If those errors have different consequences, equal accuracy would not settle whether the workflow is acceptable. Inspect task-specific error patterns and the experience of affected users.
In real human settings, fairness also involves rights, access, context, respectful treatment and who can challenge a decision. Different goals can conflict, and a single metric cannot resolve every value judgement. Students should not use this lesson to build consequential rankings of classmates. Instead, use the card example to learn how to ask questions and recognize when responsible adults and domain experts are needed.
Stereotypes are not a shortcut for missing evidence
A generated explanation may assign interests, skills or roles based on a person’s name, accent, gender or background. Such assumptions can be unfair and unsupported. For a fictional club guide, describe the activity and let learners express preferences; do not infer who belongs in which club from identity cues. Missing individual information should remain missing.
Accessibility is also part of inclusion. If a practice task only accepts spoken answers, a learner who needs a written option may be excluded even when the factual model is accurate. Examine the whole workflow: who can use it, whose needs were tested, how errors can be corrected and whether a simpler alternative is available. Fairness review should improve participation rather than merely produce a flattering score.
Worked practice
Worked exercise 1: Calculate the gap
Task: Using nine correct of ten bright examples and six correct of ten dim examples, calculate the two rates, overall rate and percentage-point gap.
Worked solution: Bright accuracy is 90%; dim accuracy is 60%. Overall, fifteen correct out of twenty gives 75%. The gap is 90 − 60 = 30 percentage points. Equal test-group sizes make the overall rate the average of these two rates here. If sizes differed, combine counts rather than averaging percentages without weights.
Worked exercise 2: Choose a useful investigation
Task: A team sees the dim-light gap and proposes deleting dim examples from the report. Suggest a better next step.
Worked solution: Keep the gap visible. Inspect dim cases for blur, label errors and missing variation, then improve the relevant data or workflow and test on fresh examples. If dim inputs cannot be handled reliably, state that limit and provide a usable alternative. Deleting the difficult condition hides a problem for the people who encounter it.
Worked exercise 3: Remove a stereotype from a suggestion
Task: An illustrative club assistant says a learner should choose engineering because of their gender. Rewrite the interaction without identity-based assumptions.
Worked solution: Ask about interests or offer neutral descriptions: “Engineering club involves designing and testing simple structures. Art club involves visual projects. Which activities interest you?” Do not assume preferences or ability from gender. Provide options without ranking the learner’s potential, and keep any optional preference sharing minimal and relevant.
Check your understanding
MCQ 1: What does the 90% versus 60% result establish?
- The exact cause of the difference
- A measured performance gap in this test
- That dim images should be excluded
- That one condition has no errors
Check the answer and explanation
Answer: B. The gap is observed evidence; its cause requires further investigation.
MCQ 2: What is the overall accuracy here?
- 60%
- 90%
- 75%
- 150%
Check the answer and explanation
Answer: C. Fifteen correct predictions divided by twenty examples equals 75%.
MCQ 3: Why inspect the type of errors as well as accuracy?
- Equal accuracy can hide different mistakes and consequences
- Accuracy already describes every harm
- Error types only matter for large models
- Every error has the same effect
Check the answer and explanation
Answer: A. Misses and false alarms may affect users differently despite matching overall scores.
MCQ 4: Which response addresses coverage responsibly?
- Remove the lower-scoring condition
- Report only the best result
- Copy more bright-light examples
- Investigate and test underrepresented relevant conditions
Check the answer and explanation
Answer: D. The goal is better evidence and performance where gaps exist.
MCQ 5: What is the appropriate basis for a club suggestion?
- An inferred stereotype from identity
- The learner’s voluntarily expressed activity interests
- A prediction of future ability from a name
- A ranking of classmates’ backgrounds
Check the answer and explanation
Answer: B. Relevant preferences support respectful suggestions without unsupported identity-based inference.
Sources and further reading
- Google: Fairness, types of bias: Sampling, labeling and measurement biases in machine-learning systems. Verified 11 October 2026.