Machine learning with football · Chapter 4 · Classification

Prediction bias

A quick sanity check: on average, does the model predict as many home wins as really happen?

Estimated time: 5 minutes · page 5 of 7

Does the average add up?

Here is a check that takes ten seconds. Average the model's predicted chances over all matches, and compare that with how often the home side really won. If 44% of matches were home wins, the predictions should average about 44% too. The gap between the two is the prediction bias.

On the board it's close to zero. That is no accident, because logistic regression with a bias term matches the average by construction once it's trained. Now push b with the slider, as if something had gone wrong, and watch the gap open.

A clear gap means something is off. The usual suspects:

  • skewed or noisy data, such as training only on the big clubs' matches
  • regularization so strong that the model can't fit anything
  • a bug in the training pipeline
  • features that can't describe the problem at all

Zero prediction bias doesn't prove the model is good. A model that gives every match exactly 44% has none.

Check yourself

Home sides win 44% of the matches. The model's predictions average 60%. What is wrong?
Which of these can cause prediction bias? Pick all of them.

Leagues