City beat Arsenal 4-1 this week, bringing them to within 2 points of the top with 7 games to go compared to Arsenal’s 5. This gave me the itch to simulate the rest of the season, which is one of those projects that’s easy to start but would take a while to make really good. So what we’ve got here is a basic start, but there are better models out there.
We’ll start by creating a function that simply uses R’s pbinom function (using each teams’ goals per 90 minutes so far this season) to simulate 10000 games. It’s technically doing so for both teams playing, then checking how many points City or Arsenal would walk away with. This doesn’t consider opponent strength, home away, games played in the last week, expected goals, etc., so it’s overly simplistic.
We’ll save all of our simulations and check the results of each. For example:
So in sim 1, City gained 15 points and Arsenal only 8. With the gap currently at 2 points, that gives City 5 point advantage and the title. Chelsea loses to both clubs in this sim, so it checks out from a realistic results perspective.
Now that we have our bearings on individual sims, let’s aggregate things at the points level - i.e what are the different remaining combinations of points for each club and how likely are the different permutations?
So we’d say there’s a 0.11% chance that Arsenal gets 15 more points and City gets 7. The most likely outcome is City with 16 points and Arsenal with 10, occurring in 2.97% of our sims. But as interesting as this may or may not be*, we can do better and just aggregate everything up to who has the most points.
City wins in 73.9% of our sims. And we may as well give them the ties - they currently have a 13 goal lead in differential, which is going to be hard to make up in the time remaining, and anyway it didn’t happen in any of our sims. As high as 80% odds are, that’s actually under the 90% odds 538 is giving City*.
*They’ve spent years perfecting their model, while I just threw this together in an hour, so we’ll cut some slack here.
So if you’re a City fan, you can mostly relax. And if you’re an Arsenal fan, 10% to 20% might seem low, but…