AI, Safety and What Goes WrongLesson 11 of 73

Module 2 · Bias, and how to measure it

Counting the four ways to be right and wrong

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 2 of 8 in this chapter

This chapter’s goalCompute per-group error rates from a confusion matrix by hand, name which definition of fairness a system enforces and which it therefore gives up, and say whether a given gap can be fixed in the data at all.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch2:45Not available
Full audiobookNot availableNot available
Group B: 1,000 applicants, one loan modelApprovedRejectedWould have repaid350true positives150false negativesWould have defaulted50false positives450true negativesTrue positive rate 350 ÷ 500 = 70%, against 87.5% for Group A. Precision 350 ÷ 400 = 87.5%, against90%. The same four boxes support ‘an approval means the same thing for everyone’ and ‘a qualifiedGroup B applicant is nearly three times as likely to be refused’.
True positive rate 350 ÷ 500 = 70%, against 87.5% for Group A. Precision 350 ÷ 400 = 87.5%, against 90%. The same four boxes support 'an approval means the same thing for everyone' and 'a qualified Group B applicant is nearly three times as likely to be refused'.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

An accuracy figure hides the argument

“The model is 88% accurate” is the least informative sentence in applied machine learning. It combines two entirely different mistakes into one number, and it averages over groups of people who are experiencing the system very differently.

For a system that says yes or no, every case falls into one of four boxes. Using a loan model as the example, where “yes” means approved and the truth is whether the person would have repaid:

  • True positive: approved, and would have repaid. The system was right.
  • False positive: approved, and would have defaulted. The lender loses money.
  • False negative: rejected, and would have repaid. The applicant loses the loan they deserved. The lender never finds out.
  • True negative: rejected, and would have defaulted. Right again.

Now compute them separately for each group of people, and the argument becomes visible.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Stuck on something?Ask Rukmini, your AI tutor

How to cite: Addaly (2026) ‘Counting the four ways to be right and wrong’, in AI, Safety and What Goes Wrong. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-and-you/the-confusion-matrix-by-group (Accessed: 29 November 2026).