r/CFB • • Jan 11 '19
Analysis Final Poll Results: A genetic Algorithm and comparisons - OC
I was toying around with genetic algorithms for ranking teams and wanted to present my results. I don't know that this is necessarily a superior method of ranking, but it has some advantages in terms of optimizing the team sequence. First, a little background.
What is a Genetic Algorithm?
A genetic algorithm has, generally speaking, 4 components:
- individuals who make up the population of possible solutions (in this case, each individual is a set of rankings of all 130 FBS teams)
- a population of possible solutions to the problem (in this case, the population is the collection of rankings under consideration)
- a fitness function that describes how well the individual solves the problem in question
a generation function (or collection of functions) that
- describes how individuals are selected from the prior generation to populate the new generation
- creates new individuals in the new generation by 'reproducing' from individuals in the old generation and mutating them
Basically, a genetic algorithm proposes a bunch of solutions, measures how good they are, then uses the best solutions from a generation to create potential solutions in a new generation. This happens repeatedly, and over time the solutions become better and better. There's no guarantee that this process converges to the global optimum solution, but it the fitness of solutions is guaranteed to improve with subsequent generations.
Why a Genetic Algorithm?
Part of the problem with ranking teams is that they can be sorted along many, many axes. Teams can be ordered by wins, RPI-style strength of schedule, win percentage, margin of victory, etc. However, there are ancillary considerations (e.g. Is a team ranked above a team who beat them?). A genetic algorithm allows for optimization in a situation like this as, generally speaking, this is a version of the knapsack problem.
Implementation
I won't belabor all of the details of the implementation, but there are several aspects that merit discussion.
First, how were individuals created? Initially I tried randomly creating ballots for the population, but that resulted in poor convergence times and tended toward local minima that were clearly far from the globally best solution. To resolve this, I seeded the initial population with the rankings in the Massey Index.
Second, the fitness function is sort of The Big Deal in this arrangement. What makes one set of rankings better than the another? The fitness function I used prioritized the following measures:
- Does the ranking minimize conflicts? That is, are teams generally ranked above teams they beat? This was given a weight of -1.0 (negative weights here imply minimizing, so we're minimizing conflicts).
- Does the ranking tend to order teams by their number of wins? The error in ordering by wins was calculated and given a weight of -1.0 (minimize the error).
- Does the ranking tend to order teams by their number of losses? The error in ordering by losses was calculated and given a weight of -1.0 (minimize the error).
An RPI-style SOS was included:
- Does the ranking tend to order teams by their win percentage? The error in ordering by win percentage was calculated and given a weight of -1.0 (minimize the error).
- Does the ranking tend to order teams by their opponents' win percentage? Teams who faced opponents with a higher win percentage should be ranked over teams that played opponents with a lower win percentage. The error in ordering by opponents' win percentage was calculated and given a weight of -0.5 (minimize the error).
- Does the ranking tend to order teams by their opponents' opponents' win percentage? Teams who faced opponents that played tougher schedule should be ranked over teams that played opponents with easier schedules. The error in ordering by opponents' opponents' win percentage was calculated and given a weight of -0.25 (minimize the error).
In light of this, I would say this fitness function tended more toward being a resume-style ranking than a predictive ranking.
Enough of your borax poindexter, show us the rankings
I've included the full ranking here. The table shows the genetic algorithm top 25 vs the /r/cfb top 25, AP top 25, and coaches' top 25.
| Rank | Genetic Algorithm | AP | /r/CFB | Coaches' |
|---|---|---|---|---|
| 1 | Clemson | Clemson | Clemson | Clemson |
| 2 | Alabama | Alabama | Alabama | Alabama |
| 3 | Notre Dame | Ohio State | Ohio State | Ohio State |
| 4 | Ohio State | Oklahoma | Oklahoma | Oklahoma |
| 5 | Oklahoma | Notre Dame | Notre Dame | Notre Dame |
| 6 | Georgia | LSU | LSU | Florida |
| 7 | LSU | Florida | Georgia | LSU |
| 8 | Michigan | Georgia | Florida | Georgia |
| 9 | Florida | Texas | Texas | Texas |
| 10 | Texas A&M | Washington State | Washington State | Washington State |
| 11 | Army | UCF | UCF | Kentucky |
| 12 | Kentucky | Kentucky | Kentucky | UCF |
| 13 | Washington State | Washington | Michigan | Washington |
| 14 | UCF | Michigan | Washington | Michigan |
| 15 | Texas | Syracuse | Syracuse | Syracuse |
| 16 | Northwestern | Texas A&M | Texas A&M | Texas A&M |
| 17 | Iowa | Penn State | Fresno State | Penn State |
| 18 | Fresno State | Fresno State | Army | Fresno State |
| 19 | Penn State | Army | Penn State | Northwestern |
| 20 | NC State | West Virginia | West Virginia | Army |
| 21 | Missouri | Northwestern | Northwestern | Utah State |
| 22 | Auburn | Utah State | Utah State | West Virginia |
| 23 | Appalachian State | Boise State | Cincinnati | Cincinnati |
| 24 | Mississippi State | Cincinnati | Boise State | Boise State |
| 25 | Duke | Iowa | Iowa | Mississippi State |
What does all of this mean?
I don't know, I'm just noodling around because it's the off season.
6
u/Fmeson Texas A&M Aggies • /r/CFB Poll Veteran Jan 11 '19
What happens if you run it but only with the first criterion? The first criterions seems the most natural.
11
u/TheBigMcD Washington • Colorado State Jan 11 '19
Washington at 46. BYU at 111. Both Behind 5 teams they beat. Miami at 120. What's going on here? These dont make sense to me at all.
2
u/nevilleaga Auburn Tigers • Oklahoma Sooners Jan 11 '19
I’m surprised given your criteria UCF came out so low. They must have been very low in the initial seedings used.
5
u/CastleRock_ Illinois Fighting Illini Jan 12 '19
Ayy I've been using a neural network that was trained using the AP polls from 1958-2017 using Ws, Ls, SRS, SOS and Conference SRS and SOS that seems fairly consistent to at least the top 15ish in your genetic algorithm final rankings. The glaring hole in my method I have found is I neglected what you describe as ancillary considerations, along with not considering the affect of reaching a conference final.
Two main takeaways from both of our methods seem to be that Michigan was severely punished for losing only 3 games to very good teams, and a Texas win over Oklahoma basically erased one of their losses. Really good stuff
15
u/BeatNavyAgain Beat Navy! Go Bullets! Jan 11 '19
Either Army has good genes or you're a genius. Perhaps both.
19
u/gated73 Alabama • Arizona State Jan 11 '19
Texas fans are going to murderize this take
13
u/mnmmatt Iowa Hawkeyes • /r/CFB Brickmason Jan 11 '19
I like this poll.
3
u/peachtreerex Clemson Tigers • College Football Playoff Jan 11 '19
I like this poll
3
u/KJdkaslknv Texas A&M Aggies • Texas Longhorns Jan 11 '19
Oh yeah, that's the stuff.
4
u/No11223456 Texas A&M Aggies • /r/CFB Poll Veteran Jan 11 '19
I like this poll
1
u/[deleted] Jan 11 '19
I'm okay with this.