2 August 2026 · Mathematics and society · 3 min

The Ethics of Algorithms

In 2016 a group of journalists looked at a computer program used in American courts. It gave each defendant a score for how likely they were to commit another crime. Judges could see the score. The journalists found that Black defendants who did not reoffend were wrongly marked high risk far more often than white defendants. The company replied that its scores were fair. A given score meant the same risk for everyone, whatever their race.

Both sides had checked their numbers. Both were right. That is the strange part.

They were using two different meanings of fair. The company meant calibration. If the program says 60 percent, then about 60 percent of those people should reoffend, in every group. The journalists meant equal mistakes. People who would not reoffend should be wrongly flagged at the same rate in each group.

Soon after, a few researchers proved something uncomfortable. You usually cannot have both. If two groups have different underlying rates, no score can be calibrated and also make the same mistakes for both groups. The only exceptions are a perfect predictor, or groups that are already identical. Neither happens in real life.

I like impossibility proofs, so my first reaction was almost happiness. It is a clean theorem. Then the second reaction came. Real people are on both sides of it.

What the theorem does is move the argument. Before it, people could say the program was just badly built. Fix the code and it becomes fair. After it, that is not true. Even a perfect engineer has to choose which kind of fairness to give up. That choice is not a maths question. It is a question about what we owe people.

Maths can tell you that the choice exists. It can tell you exactly what each option costs. It cannot make the choice. I think a lot of trust in algorithms comes from forgetting this. A number feels neutral. But the number came from a definition, and somebody picked the definition.

There is a version of this in places I know better. Exam cutoffs, scholarships, which school gets a new lab. Any rule that sorts people has a definition of fair hidden inside it. Usually nobody says which one.

I do not think the answer is to stop using models. Humans are biased too, and less consistent. The answer is to say out loud which definition you chose, and why. Then people can argue with the choice instead of the code.

What I keep coming back to is how short the proof is. A few lines of algebra settle an argument that people were having in courtrooms. That is the power of a theorem. It is also its limit. It tells you where the walls are. It does not tell you which room to live in.

All writing