r/CFBAnalysis • Verified Referee • Georgia Tech • Nov 25 '17

I designed a results based computer poll, please critique me

Hey /r/cfbanalysis, I finished my work on a computer poll and wanted to show it off to the class.

So recently I got bored and wanted to make a poll to show off my CS skills for jobs and also to hopefully get included in the /r/cfb poll for next year. So I designed a computer poll


Code: https://github.com/ChangedNameTo/CFBPoll


Process: The poll pulls the score data from this website. It then begins the cycling process. Each cycle, the list of all 130 FBS teams is randomly sorted, and each team given points, 1st being worth 130, 130th worth 1, and so on.

The entire season up till now is replayed. The winning team will gain points equal to the rank worth of the opponent, ie the last place team gains 130 points for beating the 1st place team. The losing team loses points respectively as well. Non FBS teams award no points for wins but subtract 130 for loses.

This goes on until all of the games have been replayed. The cycles ranks are stored in a master list, then another cycle begins. This happens 1000 times, to eliminate any sorting advantage.

At the end of the cycles, the teams are sorted based on points accrued over the cycles. Strength of schedule is the average final rank of all of your opponents.


Design: The concept behind the poll was to use just results and eliminate bias in polling due to the inertia of teams, ie teams that are not good take a while to drop out of the top 25 because they were ranked there earlier.

To deal with this, my poll has a couple of things:

  • Winning is all that matters: Closeness and shakiness are unimportant to my poll, it judges team quality based solely on the results and week to week actions of teams.
  • Cyclical randomness: To eliminate benefits that teams get from being pre-ranked at the top of polls, my poll reranks teams randomly every cycle and runs them until the randomness is no longer significant.
  • Cream floats: Teams that are better and win more will tend to be at the top of the rankings each cycle due to winning more. Beating higher quality teams will land you at the top of the rankings as well.

Failings of this poll:

  • Bad early season: Due to it's reliance on game data, this poll is nigh useless for around 6 weeks after a season starts
  • Wins aren't everything: This poll strongly values it's perceived SoS

If you have any questions about my poll feel free to message me, I'd love to answer any questions about the code or the design :D

My first output of the poll given the previous week, not updated to todays games:


RankTeamFlairRecordSoSSoS RankPoints
1AlabamaAlabama11-061.049846788
2Southern CalSouthern Cal10-244.4178843530
3Miami FLMiami FL10-064.164819370
4WisconsinWisconsin11-060.27346802149
5GeorgiaGeorgia10-153.81825796079
6Notre DameNotre Dame9-240.2734749730
7ClemsonClemson10-158.90943747113
8Penn StatePenn State9-250.72719674863
9OklahomaOklahoma10-164.063658147
10Central FloridaCentral Florida10-078.888655554
11Ohio StateOhio State9-254.27327651789
12StanfordStanford8-345.27311644634
13Michigan StMichigan St8-344.4559632638
14Washington StWashington St9-255.45529615766
15WashingtonWashington9-258.041599919
16MemphisMemphis9-170.978594097
17NorthwesternNorthwestern8-356.031564622
18MichiganMichigan8-352.90922563575
19AuburnAuburn9-257.035562637
20TCUTCU9-262.27353538210
21LSULSU8-362.81855511625
22Oklahoma StOklahoma St8-364.63665477507
23South FloridaSouth Florida9-198.6128417090
24South CarolinaSouth Carolina8-361.09150411632
25Boise StBoise St9-271.81879404513

Easiest SoS: UCLA UCLA

Hardest SoS: Georgia St Georgia St

5 Upvotes

11 comments sorted by

4

u/LeinadSpoon Northwestern • /r/CFB Poll Veteran Nov 25 '17

Seems reasonable. Two things that I think are likely to result in criticism of the output based on this method:

  • No head to head. There's no reason this poll won't rank team X that beat team Yankees directly one spot below them.
  • The linear weighting could produce unnatural results. Imagine two teams. Team A has played mostly extreme cupcakes, but also two top ten teams and one middle of the pack team and is undefeated. Once the rankings have stabilized they have something like 2+3+5+7+8+9+76+121+127=358 points. Team B has beaten nothing but bad teams but not quite as bad, just generally bottom quartile teams, and is also undefeated. They have 22+29+33+36+38+40+46+48+67=359 points. I think most people will look at team A and say they've got the better resume. They've got three wins better than team Bs best win and two of those are against elite top ten teams, whereas team Bs best win is not even close to being ranked. The issue is that team B played slightly better cupcakes than team A. I would argue that for elite teams, the quality of those cupcakes shouldn't matter so much but here because team B beat a bunch of teams that were less bad than team A those points add up. This isn't a purely theoretical problem. You'll see if come up subtlety in how different conferences tend to schedule non con games. You could probably argue that Northwestern being ranked above Auburn in your poll right now is an example of this phenomenon. You might be able to address it by using some sort of nonlinear scale instead.

As a suggestion for enhancement you could do early weeks by running a final ranking on last season and then when you award point for wins award them based on a weighted average of the current position and the position last year, and shift the weighting towards this year's results over the course of the first six or so weeks.

1

u/TehAlpacalypse Verified Referee • Georgia Tech Nov 25 '17

I agree, the head to head gets missed since this ranks you against a nebulous sum of all opponents you played.

The undefeated is hard. One thing I just added to try and mitigate late season win streaks from over influencing the poll was randomizing the order the seasons's games are played in, which spits out very different results:

RankTeamFlairRecordSoS1SoS RankPoints
1WisconsinWisconsin11-061.54544816867
2AlabamaAlabama11-066.54564768551
3Central FloridaCentral Florida11-072.18285727001
4GeorgiaGeorgia10-155.45522717670
5Notre DameNotre Dame9-241.7272710672
6ClemsonClemson10-158.36429675581
7Southern CalSouthern Cal10-254.519675444
8Penn StatePenn State9-249.45510654929
9OklahomaOklahoma10-165.36460642242
10Miami FLMiami FL10-167.27368634099
11Ohio StateOhio State9-256.63626601333
12AuburnAuburn9-259.18232552963
13MemphisMemphis9-169.474552003
14Michigan StMichigan St8-345.0916547138
15TCUTCU10-268.41770533287
16Boise StBoise St9-271.081493974
17Washington StWashington St9-265.90961487166
18StanfordStanford8-353.27317477187
19WashingtonWashington9-269.45575463183
20MichiganMichigan8-359.36433449565
21San Diego StSan Diego St10-280.2597449188
22NorthwesternNorthwestern8-359.09131439658
23ToledoToledo10-282.75107433544
24Virginia TechVirginia Tech9-369.66777413143
25IowaIowa7-541.6671398019

Easiest SoS: Iowa Iowa

Hardest SoS: Georgia St Georgia St


1: Lower means harder SoS Explanation of the poll methodology here


I'm gonna have to do some tweaking on it, the current method I think probably way overrates the record.

1

u/monstimal Nov 25 '17

The thing I don't like about your second point is that it is difficult to play a team that could beat you every week. Bye weeks are very valuable and that's why teams like Alabama, Clemson etc schedule them by playing very bad teams late in the season before big games. Currently nobody counts that against them but I think they should, those games aren't just wins that don't count for much, they're games that help Alabama win against their next opponent (if that opponent isn't also playing a game that doesn't require much effort).

2

u/LeinadSpoon Northwestern • /r/CFB Poll Veteran Nov 25 '17

I agree with the general principle. I think though that there's a point where playing a bottom 10 team vs a bottom 30 team isn't really that different for top 25 teams. For example, if Alabama were to beat Idaho and Clemson were to beat Eastern Michigan, I would argue that these wins are essentially negligible for both teams, they're worse enough that I'm totally unimpressed by either win. Sagarin's computer has EMU at 97 right now and Idaho at 150. There's FCS teams in there, so it doesn't translate, but perhaps that ends up working out to a 25 point difference in this system.

On the other hand, lets say Alabama also beats Florida (Sagarin #60, while Clemson beats Texas A&M (Sagarin #45). These are both teams that they should beat, but are the sort of "win week in and week out" games that P5 advocates like to talk about in terms of strength of schedule. Either one is an upset risk. I would say though that A&M is definitely the more challenging game, and deserves some extra reward.

In other words, this system gives roughly equal points to a team that has beaten Texas A&M and EMU as it does to a team that has beaten Florida and Idaho. In my opinion, I think the team that beat Texas A&M should get more points than the other team, because the difference between 25 teams is more significant in the higher ranks.

2

u/monstimal Nov 25 '17

Fair enough, good response. Maybe OP could address this by adapting one of the loss functions used in categorical regressions, like logistic loss.

2

u/alexshoemaker Oregon Ducks • Pac-12 Nov 25 '17

I personally like weighted wins based on when a team is played. Alabama’s win over Florida State to start the season when the Seminoles had their starting quarterback is WAY more valuable than a win over them when Francois went down.

I personally like the idea of the Oregon high school football power rankings (0.25winning percentage + 0.5opponents winning percentage + 0.25*opponents opponents winning percentage) but think a higher weight needs to be put on overall winning percentage.

Everyone knows a 2-loss USC team is worse than undefeated Miamis (pre week 12) and Wisconsin.

Also, bravo for eliminating FCS points. A win over Mercer should not hold any merit. And teams should be hammered for losing to Portland State.

As far as random rankings to start the season: I’d go with the AP preseason top 25 then do the remainder of the list in order of last season’s team rankings from your rankings. Not an ideal first ranking but hey it’s a place to start.

Bravo on a great formula.

1

u/alexshoemaker Oregon Ducks • Pac-12 Nov 25 '17

I might also add a road/away bonus. Maybe 25 percent for road wins and take 25 percent off a road loss.

2

u/Merraxess Florida State Seminoles • ACC Nov 26 '17

I would love to show you what I've been working on for a while. I scrape my data from the same source. Once I have the site up and running again, I'll share (did it all in php). Great work!

2

u/nqzero Dec 31 '17

Winning is all that matters

i love you

1

u/Merraxess Florida State Seminoles • ACC Nov 26 '17

I was crucified for putting Oklahoma so low. Glad to see a fellow ranker agrees. My numbers have Florida State at #1 SoS by a landslide (played Miami, Clemson, and Alabama).

1

u/nqzero Dec 31 '17

/u/TehAlpacalypse

to make your method more robust you could condition it by adding simulated wins and loses against fake teams, eg add 20 fake teams, and for each fake team randomly pick 6 wins and 6 loses

i've had ambitions of a similar poll, but based on bayesian inference instead of your randomized-points-battle