by Samy (Kondasamy Jayaraman)

Module 49 · Bias and fairness

Intermediate

Right on average, wrong for a group

A credit check can be right most of the time and still turn down one group’s good applicants far more often. Here you slide the bar on a two-lane gate, measure each group, and choose which fairness you are buying.

Read as
OK

The whole idea in one example

One check, two regions

Overall

one number

75%

of the check’s decisions right, at one bar for everyone.

Eastmere

group by group

32%

of its builders who would have repaid are turned down, against 10% in Northvale.

Made-up applicants: invented builders from two made-up regions, generated once by a seeded script. Not real people or real data. Every rate is measured on the same applicants the check learned from.

How it works

Four ideas carry the module

  1. OK

    1 Right on average

    75% right overall, close in both regions

  2. OK

    2 Wrong for a group

    Eastmere’s repayers are turned down about 3 times as often

  3. OK

    3 The stand-in field

    Drop the region field and the postcode carries it back in

    Barocas, Hardt and Narayanan’s Fairness and Machine Learning (MIT Press, 2023) warns that removing the group field can be ineffective and even harmful: other fields often encode it, and the model finds that encoding instead.

    Source, checked 29 October 2026

  4. OK

    4 Choose your fairness

    A bar per region evens one kind of error, never all

    Chouldechova (2017) showed that when two groups’ base rates differ, a score with equal precision in both cannot also have equal false-positive and false-negative rates in both.

    Source, checked 29 October 2026

The story

Larkspur checks its credit check

Larkspur Supply Co.’s trade-account check approves builders for credit terms, and applicants from Eastmere are turned down more often than those from Northvale. You’re on the team that finds out why, and decides what fair should mean.

400
hand-made applicants from two made-up regions, Northvale and Eastmere
25%
of the check’s decisions wrong, at one shared bar
32% · 10%
of repayers turned down, Eastmere · Northvale
0
bar pairs that make every kind of error equal

Your path

The chapters

  1. Chapter 1

    Right on average

    Is a check that is right on average right for everyone?

  2. Chapter 2

    Errors group by group

    Who is wrongly turned down, region by region?

  3. Chapter 3

    Where the skew comes from

    Why does the check turn down Eastmere’s repayers more often?

  4. Chapter 4

    Dropping the column

    Does dropping the region field close the gap?

  5. Chapter 5

    One bar or two

    Can a bar per region even out who is wrongly turned down?

  6. Chapter 6

    You can’t have every kind

    Can one pair of bars make every kind equal at once?

  7. Chapter 7

    Workbench: a fair enough check

    Which fields, fix and bars keep the rule with the fewest wrong decisions?

Who it’s for

  • Product managers
  • Engineers
  • Analysts
  • No code needed

Anyone shipping a model that says yes or no to people, who needs to know who it gets wrong and what a fix costs. The Calibration module first helps, but no maths is needed.