Machine learning with football · Chapter 7 · Datasets and overfitting

Generalization

What it takes for a model to work on matches it has never seen.

Estimated time: 5 minutes · page 7 of 12

Working on matches it hasn't seen

Generalization is the whole point: a model that does well on new data, not just on its training set. It relies on three assumptions, and in football all three are a little shaky.

  • Examples are independent and identically distributed: one doesn't influence another, and all come from the same source. Two matches of the same club in one week aren't quite independent, because fatigue links them.
  • The data is stationary: it doesn't change over time. A season isn't. Managers change, players get injured and form comes and goes. The board shows the home win share in four stretches of the season.
  • The training, validation and test sets come from the same distribution as the data the model will meet later.

None of this means football can't be modelled. It means the honest test is the one that copies real use: train on the past, test on what came after.

Check yourself

How do you make the three sets statistically alike?
Are football seasons stationary?

Leagues