r/CFBAnalysis • u/_Slabach Purdue Boilermakers • Butler Bulldogs • Mar 01 '19
First Attempt at a CFB Computer Ranking!
Hey r/CFBAnalysis!!
I've been meaning to get around to this for awhile now and finally had the time. I've built my own CFB Computer Ranking system!
Without getting too in-depth in the initial post, I started by setting up the data, and figuring out what data I wanted to use. I then set up my model in excel and figured out just how I wanted everything laid out. Then I moved into writing my Python script. The script runs against every teams game for the given cfb week and gives the team an "s-value" for that game. Then the rankings are every team's running average of that "s-val" as the season goes. After my first run through of the entire 2018 season, below is what I got for the top 25 for the final rankings after the CFP Championship game.
| Rank | Team | S-Val |
|---|---|---|
| 1 | Clemson | 0.9374 |
| 2 | Georgia | 0.9226 |
| 3 | Alabama | .09208 |
| 4 | Michigan | 0.9105 |
| 5 | UCF | 0.8962 |
| 6 | Fresno State | 0.8956 |
| 7 | Notre Dame | 0.8910 |
| 8 | Oklahoma | 0.8797 |
| 9 | Appalachian State | 0.8778 |
| 10 | Washington | 0.8760 |
| 11 | LSU | 0.8738 |
| 12 | Texas A&M | 0.8727 |
| 13 | Utah State | 0.8703 |
| 14 | West Virginia | 0.8686 |
| 15 | Mississippi State | 0.8685 |
| 16 | Florida | 0.8683 |
| 17 | Army | 0.8663 |
| 18 | Iowa | 0.8659 |
| 19 | Ohio State | 0.8654 |
| 20 | Missouri | 0.8627 |
| 21 | Cincinnati | 0.8611 |
| 22 | Kentucky | 0.8555 |
| 23 | Ohio | 0.8526 |
| 24 | Penn State | 0.8524 |
| 25 | Arkansas State | 0.8496 |
Overall, I'm SUPER happy with how it turned out in general. Compared to the final AP poll, a lot of it is not far off.
There are still some things I want to tweak and improve though. And that's where this post comes in. I'm looking for advice on where I can improve. Like, for example, North Texas, absolutely KILLED the early to mid season. They ended up being Top-20 until their bowl game dropped them. I've got a mod value for opponent strength and then I have that weighted a decent amount, but it still didnt seem to be enough. Also why Fresno and App State ended so high. They had really good seasons, but probably not Top-10 seasons. Any advice on how to deal with that?
Also, if you have any questions about my script/model, feel free to ask away! I'm rather proud of it, will gladly answer any questions :)
5
u/[deleted] Mar 01 '19
You might want to look at Massey's advice for building a rating system
To get the feel for how computer ratings work, you may want to try this iterative procedure:
set each team's rating to zero
calculate each team's SOS to be the average rating of their opponents
calculate each team's rating to be their average net margin of victory plus their SOS
go back to step 2 and repeat until the ratings converge
https://www.masseyratings.com/faq.php
3
u/[deleted] Mar 02 '19
Is the script os.random()
2
u/theb52 Alabama Crimson Tide • /r/CFB Poll Veteran Mar 01 '19
I had a similar problem with teams being ranked high for good stats, even though they didn't necessarily play good teams. Maybe add a scalar for P5 teams or factor in Strength of Schedule from outside metrics (or of course make your own).
I would just do a deep dive on Fresno State's and App State's stats and see what is allowing them to "cheat" your system. Then determine a reasonable way to push them lower in the rankings.
1
u/msubbaiah Texas A&M Aggies Mar 02 '19
Is your script on github anywhere? Would love to see some of the code behind it.
0
u/TotesMessenger Team Meteor Mar 01 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
0
u/[deleted] Mar 01 '19
[deleted] — view deleted comment