Understanding the mathematics behind football rankings
The aim of this section is not to dive into the details of our calculations, but to provide a general overview for the reader. Note that none of the formulas below are necesarily the ones used in our implementation, but you can feel free to ask any question regarding our real system.
The Elo system is a widely used rating method for estimating team skill in football.
Before a match, the system computes the probability of winning for each team based on their current ratings. For Team A versus Team B, the expected score of A is:
Here, RA and RB are the current ratings of teams A and B, respectively. The constant 400 sets the scale of rating differences.
After the match, ratings are updated according to:
Where R′ is the new rating, K is the sensitivity factor, S is the actual score (1 for win, 0.5 for draw, 0 for loss), and E is the expected score. Higher K values make ratings more responsive to recent results.
Suppose Team A has RA = 1600 and Team B has RB = 1500.
Expected score of A:
If A wins the match (S = 1) with K = 20:
Conversely, if A loses the match (S = 0):
In football we incorporate some additional factors:
Enhanced Rating Formula with Weight Factor:
Where W is a weight factor. For a goal difference of zero, W is defined as 1, otherwise: