The UK football season is just over halfway through its year. The top four teams will qualify for the European Champions league, and that means a lot of money. So, what is the probability that any given team will actually qualify? We have a league table, giving positions and points of each team, so we have some knowledge of the season so far, current form of the teams and so on. So how can I calculate the probability that a team will qualify? For my Bayesian belief network I want some prior values – probabilities between 0 and 1 that this may occur.

My solution is this:

I work out the overall form of the team this season (I am not considering current form, recent form, changes in management or anything else at the moment).

Prob of winning = Games Won / Games Played

And the same for drawing and losing

I then simulate all remaining games (18 for each team on the 4th Jan)

Suppose I take Chelsea, currently top of the table:

Won 14, drawn 4, lost 2

Prob of winning = 14/20 = 0.7

Prob of drawing = 4/20 = 0.2

Prob of losing = 2/20 = 0.1

So for each game, I generate a random number between 0 and 1. If it is less than 0.1, I assume they lose, if it is between 0.1 and 0.3, they draw, if it is over 0.3, they win.

I do this for all 20 teams, then calculate their points (3 for each win, 1 for each draw). I then pick the highest four teams. As I am only interested in the top four teams, I am not worried if aspects of these calculations are not fully correct – for example, in this calculation, all the top teams could (although it is unlikely) win all their remaining games. In practice, this could not happen, as they will have to play each other and they can’t all win these games.

Since this is all highly stochastic, I run the simulation 10,000 times and calculate the percentage of times each team ends up in the top four – this gives me my probability.

So, for those of you interested, here are the probabilities – if your team isn’t here, then they have no chance, sorry….

Arsenal – 20.01%

Chelsea – 99.99%

Liverpool – 2.19%

Man City – 99.99%

Man United – 71.53%

Newcastle – 0.32%

Southampton – 59.54%

Stoke City – 0.19%

Swansea City – 2.12%

Tottenham – 31.12%

West Ham – 13.00%

The R code for the calculations may be horribly inefficient, but is available here (it took an hour to calculate, so if you want to play with it, then reduce the bootstrap size).

The league table as of the 4th Jan – formatted for the R code – is here.

Of course, there should be consideration of new players, current form, new managers and so on, and that is something which can be built on, now I have my probabilities. More to come on this in the next few days

Pingback: Probability of winning an election | Rick Stafford