Machine learning with football · Chapter 13 · Fairness

Identifying bias

Missing values, odd values and skew: red flags to look for before training.

Estimated time: 10 minutes · page 3 of 9

Red flags in the data

Before training, look for three warning signs, and look at them group by group.

  • Missing values. If one group is missing data more often, it's underrepresented. On the board, more top-half players have no rating at all. They're mostly squad players who only came on for a few minutes, so a model trained on rated players sees fewer of them.
  • Unexpected values. A value that can't be right points at the collection. The board lists the highest ratings from under 90 minutes, real numbers that rest on almost nothing. Google's example is a 35-year-old dog.
  • Skew. Is a group over- or underrepresented compared with the real world? Check how many regulars each group has here. Then judge the model by subgroup, never only overall.

Missing data that looks random often isn't. When a column has gaps, ask who is in them.

Check yourself

More top-half players than bottom-half players have no rating. Why does that matter?
A dataset lists a 35-year-old player with 30,000 minutes this season. What do you suspect?

Leagues