From what a model is to how supervised learning turns this season's table into predictions, with a football example for every idea.
Estimated time: 20 minutes
What is machine learning?
Say you want to guess how many points Arsenal will finish with. The old way is to write the rules yourself, something like “a win is worth 3, they win about half their games, so somewhere around 60”. Then somebody has to keep those rules up to date. Every week.
Machine learning flips that. You hand the computer lots of examples, say every team's goals and points from this season, and it works out on its own how the two numbers relate. That relationship is called the model, and finding it is called training. Show the model a team it has never seen, a promoted side for instance, and the number it gives back is a prediction.
Rules are written by a person. A model is found by training on examples.
Check yourself
Four kinds of ML system
One system can be more than one kind.
Supervised learning learns from data that comes with the right answers, a bit like revising with last year's exam and the answer sheet. Past matches with their final scores are that kind of data. A model that predicts a number, points per game or goals in a match, is a regression model. Classification models pick a category. Over 2.5 goals or not is a binary question, while home win, draw or away win has three answers, so a model for it does multiclass classification.
Regression gives a number on a scale. Classification picks one of a few answers.
Unsupervised learning gets the data and nothing else. No answers. It hunts for patterns, usually by clustering, which means putting similar things in the same group. Feed it every team's possession, shots and passes and it might come back with three groups it can't name, because it has no idea what football is. Naming them is your job, possession sides and counter-attackers for example.
The model finds the groups. The names come from you, after you look at them.
Reinforcement learning learns by doing. The model acts, and whatever happens next earns it a reward or a penalty. Picture a simulated penalty taker. Every goal earns a reward and every save a penalty, and thousands of kicks later it has a policy, its own plan for where to aim against which keeper. Google DeepMind did something close to this for real in 2023, training small humanoid robots to play one-on-one football until they could walk, turn, shoot and get back up after a fall.
Nobody tells the model the right answer. It only finds out how each kick went.
Generative AI makes new things. People name these models after what goes in and what comes out, so a model that reads articles and writes short summaries, like the one behind the news items on this site, is text-to-text. Models like that start by imitating enormous amounts of text and only later get tuned for one job, with supervised or reinforcement learning.
Check yourself
Supervised learning
Supervised learning has five parts, and the board walks through each of them with this season's real table: data, a model, training, evaluating and inference.
Data
Data sits in a dataset, which you can picture as a spreadsheet where every row is one example (here, one team) and the columns the model predicts from are its features, such as goal difference, shots, xG and possession. The column it should predict is the label. Points, in our case. Training needs labelled examples, rows with the label filled in. A row without one, say a season nobody has played yet, is an unlabelled example, and filling in that gap is what the model is for.
A good dataset is large and diverse. Twenty years of title winners make a big dataset that still knows nothing about a relegation fight, while every kind of team over just three matchdays gives you range with far too few games to trust. Extra features help only if they go with the label. Shirt colour won't predict points.
Model and training
In supervised learning the model is a set of numbers that turns features into a label, and training is how those numbers get found. It takes one labelled example and guesses. Say it predicts 2.1 points per game for a team that really got 1.6. That gap is the loss, so the model nudges its numbers toward 1.6 and moves on to the next team, often going through the whole table many times. Chapter 2 does exactly this, first by hand and then with gradient descent.
One turn of training. The error tells the model how far off it was and which way to move.
Check yourself
Evaluating
Before you trust a model, test it on labelled examples it never trained on. It sees only their features, and you compare what it predicts with the real labels. Far off? Train again with other features or more data, then test again.
Inference
Once it's good enough you use it on unlabelled examples, a promoted team or next season. Each of those predictions is called an inference.