Machine Learning, FoundationsLesson 50 of 92

Module 5 · Measuring a model honestly

Fairness as arithmetic: the definitions and what each one demands

In this lesson

  • 10 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 9 of 11 in this chapter

This chapter’s goalGiven a fitted classifier and a stated cost of each kind of error, compute the confusion matrix at a chosen threshold, defend that threshold by expected cost, say whether the model’s probabilities are calibrated, decide with an interval whether one model genuinely beats another, and report per-group performance with a defensible fairness criterion and its known trade-offs.

This chapter’s media

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

FormatEnglishहिंदी
Chapter filmWatch1:59Not available
Full audiobookNot availableNot available

A little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

Moving from principle to number

Everybody agrees a model should be fair. The agreement dissolves the moment you write down what that means numerically, and it dissolves in a specific, well-understood way that is worth knowing precisely.

Take a hiring screen with two groups, A and B. Here are three definitions, all reasonable, all in use.

Demographic parity

The model selects the same proportion of each group.
Text
P(predicted positive | group A) = P(predicted positive | group B)

This is the criterion behind the four-fifths rule used in US employment discrimination screening: if group B’s selection rate is under 80% of group A’s, that is treated as evidence of adverse impact worth investigating.

What it demands: equal outcomes at the group level, regardless of anything else.

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

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Fairness as arithmetic: the definitions and what each one demands’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/fairness-you-can-compute (Accessed: 27 November 2026).