Machine learning with football · Chapter 13 · Fairness

Counterfactual fairness

Change only the club, keep everything else. Does the decision change?

Estimated time: 10 minutes · page 8 of 9

Change only the club

The first two measures need group labels for everyone. Often you don't have them. Counterfactual fairness works one pair at a time. Two examples identical in everything except the group should get the same decision.

The board uses a model that predicts a player's rating from two things, his goals and assists per 90 and his club's points per game. That's a fair summary of how the real ratings behave. For any player it then builds a twin: the same goals, assists and minutes, but at an average club of the other half of the table. If the twin's decision differs, the model fails counterfactual fairness for that player.

The board counts how many players' decisions flip. Press Find a flip to see one. It catches individual cases the group rates can hide, but on its own it doesn't show how big the problem is overall. Use it together with the group measures where you can.

These three definitions aren't the only ones, and some can't all hold at once. Which one fits depends on what the decision is for. Equal representation points to parity, an equal chance for the deserving to equality of opportunity.

Check yourself

Two players have the same goals, assists and minutes. One plays for a top club, one for a bottom club. Only the top-club player is shortlisted. What does that violate?
Two top-club players with identical numbers get different decisions. Does that violate counterfactual fairness?

Leagues