Model Madness 2019 - Introduction, Estimated Difference Metric
Every year, millions of brackets are digitally constructed, written and scribbled just to see every one fall short of the ultimate goal. Perfection. But the odds are not in the favor of those in such a pursuit. 1 in 9.2 quintillion. Which makes filling such a bracket virtually impossible. Seems like a challenge worthy of my time.
Before we move into the statistics and algorithm based part of this series of inevitable failures, one must ask why someone would waste their time either watching an excessive amount of college basketball or spending a lot of time reading through a bunch of statistics and composing different algorithms to squeeze as much information as we can get from the numbers that are recorded by statkeepers.
Well, I enjoy modeling and college basketball a lot. And since we'll never see a perfect bracket, this gives me a yearly source of subpar content that I can pollute this blockchain with. Perhaps, I might inspire some inspiring machine learning prodigy to waste their energy on pointless fun endeavors like this rather than using them to make a fleet of evil self-driving cars that will enslave the human race.
There's something that oddly appealing about certain failure and seeing how far through the gauntlet you can get before your hopes and dreams are dashed. May the odds never be in your favor.
Today, we'll go over the first metric that I have experimented with, the Expected Difference Metric (EDM) Rating. The EDM Rating is based on the idea that the margin of victory increases as the difference between the two teams increases. So, the greater the difference in EDM Rating, the greater expected margin of victory of the higher score team than lower score team.
Now of course such a model isn't perfect, but given a good sample size, it can give us a good idea of how teams match up against one another for a given match up. This metric also is tuned over time and thus has a higher bias towards more recent samples than older samples. In the case of college basketball, the bias is towards more recent games than older games.
To calculate this metric, we simply use scores of a particular game and compare the actual difference in scores against the expected difference in scores. Afterwards, we update the expected difference by a small amount to move the EDM Rating to reflect this discrepancy.
In terms of defining this idea mathematically, a difference of 100 EDM points corresponds to an expected difference of 1 point. This scales linearly. This means that if one team has a rating that is 100 EDM points higher than the other team, the model "expects" that team to win by one point. If one team has a rating 1000 EDM points lower than the other, the model "expects" that team to lose by 10 points.
Let's say Team A has an EDM rating of 1600 and Team B has an EDM rating 1200. The expected margin of victory is 4 for Team A. Let's say Team A wins by 4. Then the model makes no adjustment. Because the expected difference and actual difference are the same. The model has done it's job and no adjustments are necessary. This is unlikely as the college basketball universe isn't governed by universal laws, but in the rare case that the model is exactly correct, it doesn't adjust.
But let's say Team A wins by 14. The expected difference for Team A is smaller than the actual difference. So, we need to increase the distance between Team A and Team B. We calculate the delta value (the small change) by multiplying this difference in differences by some scaling coefficient. In my model, I'm using 5 for the coefficient. Since the difference of differences is 10, we multiply 5 and get 50. We add 50 to Team A and take away 50 from Team B.
Team A now has an EDM rating of 1650 and Team B has a EDM rating of 1150. If these teams met up again immediately, the model now expects Team A to have a 5 point advantage rather than a 4 point advantage.
But let's say Team A lost by 11 to Team B instead. The expected difference for Team A is now larger the actual difference (4 vs -11). So, we need to decrease the EDM score of Team A and increase the EDM score of Team B. The difference of differences here is 15. We multiply by 5 to get 75, the delta value. Team A loses 75 points and Team B gains 75 points.
Team A now has an EDM rating of 1525 and Team B has an EDM rating of 1275. Team A is still favored by 2.5 points by the model in an immediate match up, but this is because the model is conservative to individual samples and the hope is that over a larger sample size an accurate EDM rating is found.
Of course, this model is rather simplistic. It assumes a uniformity in margin across all teams which probably is not the case in real life. Depending on offensive and defensive styles, some teams might struggle against teams of lower EDM scores and excel against others of higher EDM scores.
Of course, such a model would be incomplete without a demonstration. So, by throwing thousands of Division 1 games into our model, we can see which teams this model thinks are the best and should be favored to go deep in the tournament. These games exclude games against non-D1 teams in order to keep the data more uniform and to avoid giving weaker teams too much credit. All teams start out with an EDM rating of 1500. This means the average EDM rating across the board is 1500.
Listed below are the Top 25 teams by EDM Score and their corresponding AP Ranking as a means of reference. All ratings are up to date as of the morning of February 26.
# | Team | Record | EDM Score | AP Ranking |
---|---|---|---|---|
1 | Gonzaga | 27-2 | 3738.680 | 1 |
2 | Duke | 24-3 | 3128.390 | 3 |
3 | North Carolina | 22-5 | 2984.681 | 5 |
4 | Virginia | 24-2 | 2980.363 | 4 |
5 | Kentucky | 23-4 | 2879.808 | 2 |
6 | Texas Tech | 22-5 | 2820.387 | 11 |
7 | Michigan State | 23-5 | 2807.630 | 6 |
8 | Houston | 26-1 | 2769.499 | 8 |
9 | Nevada | 25-2 | 2740.954 | 12 |
10 | Buffalo | 23-3 | 2678.649 | 21 |
11 | Tennessee | 23-3 | 2661.949 | 7 |
12 | Virginia Tech | 21-6 | 2556.351 | 20 |
13 | Michigan | 24-4 | 2538.785 | 9 |
14 | Marquette | 23-4 | 2507.822 | 10 |
15 | Wofford | 21-4 | 2495.222 | 24 |
16 | Iowa State | 20-8 | 2489.945 | NR (28) |
17 | VCU | 21-6 | 2474.160 | NR (32) |
18 | Cincinnati | 23-4 | 2445.556 | 23 |
19 | Purdue | 20-7 | 2444.000 | 14 |
20 | Auburn | 17-9 | 2438.612 | NR (30) |
21 | Florida State | 22-6 | 2433.983 | 18 |
22 | UCF | 20-6 | 2404.996 | NR (-) |
23 | Louisville | 18-10 | 2386.060 | NR (26) |
24 | NC State | 20-8 | 2380.733 | NR (-) |
25 | Maryland | 21-7 | 2379.908 | 17 |
This model lines up pretty nicely with the AP poll despite not watching a single second of basketball and only looking at the score of each game. One thing to note is that is tends to rate mid-major schools on winning streaks slightly higher than the AP poll. The AP poll tends to look more at the season as a whole while our model is looking more at recent data without any "big-school bias". Gonzaga probably exemplifies this trend the most. They haven't lost since mid-December and have dominated their mediocre competition. This may be a potential weakness in determining winners for the tournament, but may be useful in determining potential upsets for underrated mid-major teams. But it remains to be seen.
Next time we'll either visit another type of model or begin developing more complex variants of this model. My goal is to have five different algorithms and have overall composite algorithm before the deadline for brackets rolls around. Feel free to share your thoughts and feel free to play around with modeling ideas that you have. This model barely scratches the surface of potential methods to look at.
Pollute away 😄
While I care not about college basketball, using ML to beat the bookies is a passion of mine and this was an enjoyable reading.
Looking forward to your next post 🍻
Posted using Partiko Android
Hello @statsplit! This is a friendly reminder that a Partiko user has just followed you! Congratulations!
To get realtime push notification on your phone about new followers in the future, download and login Partiko using the link below. You will also get 3000 Partiko Points for free, and Partiko Points can be converted into Steem token!
https://partiko.app/referral/partiko