Bias, transparency and accountability
83% accurate — for everyone? Split the results by orchard and a different model appears.
- Evaluate a model group by group
- Write a model card
- Say who answers when a model is wrong
Bias, transparency and accountability
83% accurate — for everyone? Split the results by orchard and a different model appears.
- Evaluate a model group by group
- Write a model card
- Say who answers when a model is wrong
Story
Learn it
An evaluation can be accurate and still unfair. The leaf model's 83% was true overall and hid a different model on the hill, where it was wrong far more often, because most of its training photos came from sunny valley orchards. Honest evaluation means checking group by group, being transparent about how a model was tested, and naming who is accountable when it goes wrong. A model card puts all of that on one page.
Words to know
a model working better for some groups than others. An overall score can hide it completely.
splitting the test results by any group that might matter (place, season, language, device) and comparing.
people affected by a model can see how it was tested, on what, and how well it works for people like them.
a named person or organisation answers for the model's mistakes, and there is a way to report one.
a one-page report that travels with a model: what it's for, what it learned from, how it was tested, results by group, known weaknesses, who is accountable, and how to report a mistake.
Step by step: splitting a fever checker's results
40 children tested, 20 from a city school, 20 from a hill school:
| Group | Tested | Right | Accuracy | Fevers caught (recall) |
|---|---|---|---|---|
| city | 20 | 19 | 95% | 3 of 3 |
| hill | 20 | 14 | 70% | 1 of 3 |
| all | 40 | 33 | 83% | 4 of 6 |
- The overall score: 83%. Fine, on its own.
- Split by group: 95% in the city, 70% on the hill.
- Look at recall: on the hill it caught only 1 of 3 fevers.
- Find the cause: it was trained mostly on city children. Hill children, coming in from the cold, had different readings it never learned.
- Report it honestly in a model card: "Works well in city schools. Misses most fevers in hill schools; do not rely on it there until it is retrained."
Careful: "83% accurate" was not a lie, and it still misled every hill family. The question to ask of any score is not only how good? but for whom?
Your missions
datasets/leaf-predictions.csv · model-card.odtSplit it
12 minin pairs- 1
Open
leaf-predictions.csv. Column B says which orchard each photo came from. - 2
Predict: will the model be more accurate on Valley or Hill photos — and by how much? Write it down.
Only you can see this - 3
For Valley only, build the confusion matrix with
COUNTIFSand three conditions, for example=COUNTIFS(B2:B61;"Hill";C2:C61;"scab";D2:D61;"scab")with"Valley"in place of"Hill". Work out accuracy and recall. - 4
Do the same for Hill. Put the two side by side with the overall results.
The model card
13 min- 5
Open
model-card.odt. Fill each heading in one or two lines:- What it does — and what it must not be used for
- What it learned from — say where the photos came from
- How it was tested — how many photos, which orchards
- Results — overall and by orchard: accuracy and recall
- Known weaknesses
- Who is accountable — and how a farmer reports a wrong answer
- 6
Under Known weaknesses, write the sentence a hill farmer most needs to read.
Name two other groups this model might fail for, that the file can't tell you about. How would you collect the data to check?
No laptop today?
Your teacher writes the two small matrices on the board (Valley and Hill). Pairs work out accuracy for each, then write the model card on paper, one heading per pair, and read the headings aloud in order.
Debate it
The makers could fix the hill problem by collecting shade photos from hill orchards and retraining.
- Until then, should the app be used on the hill at all? Who should decide?
- The sign still says 83% accurate. What should it say now?
Check yourself · practice, not a test
In the app, students answer these one at a time and each answer is checked straight away. It's practice, never a mark — anything they miss comes back later for another go.
1.An overall accuracy of 83% can hide:
- ANothing, if the test was done on unseen data
- BA group the model fails
- CThe number of training photos
- DThe positive class
2.Match each ethical concern to what it asks:
- Does it work equally well for every group?
- Can people see how it was tested?
- Who answers for its mistakes?
- Accountability
- Bias
- Transparency
3.To find hidden bias, you can split the test results by group and compare.
TrueFalse4.A one-page report that travels with a model, giving its purpose, data, results and weaknesses, is called a model ______.
5.Why did the leaf model do worse on hill photos?
- AHill leaves never get scab
- BThe hill photos were taken at night
- CMost of its training photos came from sunny valley orchards
- DThe model was not tested
A score for everyone can hide a failure for someone. Split it.
Typing practice
Skill: a count with three conditions (5 min)
-
On typing.com: the symbols lessons.
-
Type three times, eyes on the screen:
=COUNTIFS(B2:B61;"Hill";C2:C61;"scab";D2:D61;"scab") -
Goal this term: 38–44 WPM at 95%.
Written and designed by Faizan Ayoub. © 2026 Faizan Ayoub. All rights reserved.