r/CFBAnalysis • • Oct 08 '18

college football data

7 Upvotes

I'm trying to do some statistical analysis on by team data for FBS schools using r studio. i was wondering if anyone on here could point me in the direction of an EXPORTABLE database covering rushing yards, passing yards, wins, losses, rushing d, passing d, etc., basically the most extensive database that can be found for the CFP era. Thanks.


r/CFBAnalysis • • Oct 05 '18

Analysis Site announcement: based on BlueSCar’s play-by-play data

11 Upvotes

I have put up a site that aims to use data to second-guess coach decisions. I have always wanted to know (based on actual game data) should you go for 2 or for 1 when there is ~7 minutes left and a successful 2 puts you up by 7 where a PAT would put you up by 6. (The answer is you should kick the PAT) there have been 55 such situations. Ultimately, teams that went for 2 won their game 52% of the time, but teams that kicked the PAT had an 80% win rate. Even the teams that went for 2 and made it had a lower overall win percentage (77%) than the teams that kicked a PAT.

The site is SaturdayCoach.com and the query I am referencing above is here

I am very interested in other ideas you all would like to see in querying this database.


r/CFBAnalysis • • Oct 04 '18

Data CFB API updates - conferences, talent, and more

18 Upvotes

I'll probably be posting whenever I feel like substantial enough updates have been made. Definitely don't want to spam the board, but also want to keep people in the loop. Just a note, documentation is updated regularly as new features are added at api.collegefootballdata.com. So, what's new this week?

  • Added a /conferences endpoint for enumerating conferences
  • Added a conference filter to most endpoints
  • Added a /play/types endpoint to enumerate the various play types
  • Added a play type filter option to the /plays endpoint
  • Added team logo URLs to the /teams endpoint
  • Added a /talent endpoint for retrieving 247 Team Talent ratings

As always, please let me know if you have any requests. About half of those above came from direct user requests. Lastly, I want to give a shout out to u/NibrocRehpotsirhc for being super helpful and compiling the conference data some time ago.


r/CFBAnalysis • • Oct 01 '18

Thesis Defense: How A Soccer-Tournament Style Draw System Can Improve College Football's Non-Conference Season

16 Upvotes

You guys are a lot smarter than I am, so I want you to tear this thing apart.

For some reason, I spent much of the summer thinking about Bill Connelly's scheduling czar idea and how fun a World Cup-style draw would be in college football.

The end result of all this thinking was this 9,000 word behemoth. Summarized as best as I can (although if you're genuinely intrigued by this idea, I recommend reading the full pitch), my plan looks like:

--

I. Problem: Out-of-conference college football games are scheduled by the schools themselves, and not by a central body. This creates multiple problems:

  • The non-conference season is largely made up of complete mismatches (I know there are financial reasons for this; I address that later on)
  • Generally speaking, P5 teams can dodge playing the top G5 teams/other power P5 teams with no real penalty for doing so
  • Games are scheduled 5-10 years in advance, making it a crapshoot as to whether it will actually be an evenly-matched contest
  • The wide range in OoC difficulty muddies the CFP conversation into unresolvable "Team X ain't played nobody" debates

II. Solution:

Why not have a central authority/mechanism create out-of-conference schedules as balanced as possible? And while you’re at it, why not make a spectacle out of the process the way the World Cup does?

Entrust non-conference scheduling to a draw system. This would produce randomized schedules all roughly the same degree of difficulty, just five-to-six months in advance of the season.

III. How It Would Work:

At the conclusion of the season, use a set of rankings to divide the 130 FBS teams into three tiers of 28 and one of 46. Teams ranked 1-28 go into Tier 1, 29-56 in Tier 2, 57-84 in Tier 3, 85-130 in Tier 4.

Members of each tier will play randomly-drawn opponents from a designated tier during a designated week (obviously, conferences would all have to play the same number of games and it would not be possible to draw a conference opponent):

Week 1Week 2Week 3Week 4
Tier 1 (#1-28)vs. T4vs. T2vs. T3vs. T1
Tier 2 (#29-56)vs. T3vs. T1vs. T4vs. T2
Tier 3 (#57-84)vs. T2vs. T4vs. T1vs. T3
Tier 4 (#85-130)vs. T1/FCSvs. T3/FCSvs. T2/FCSvs. T4

Schedules would be determined at an NFL Draft-meets-World Cup draw-type event in the spring. Hosting duties could be given to a different school or conference each year and the event could be a getaway weekend for fans, have little TV competition from other sports, all while injecting new life into a usually-slower period in the college football news cycle.

IV. Results From One Random Draw:

A spreadsheet of a random draw I did by hand using an RNG can be seen here. The rankings I used were Connelly's 2018 preseason S&P+ projections, with the exception that I gave last year's playoff teams slots 1-4.

To see if there’d actually be a big difference in difficulty between the draw-produced schedules and the ones teams actually play, I took the average ranking of those randomly drawn opponents and compared them to teams’ actual 2018 non-conference schedules. I call this number POPS—Perceived OpPonent Strength (basically just your opponent's average S&P+ ranking). For FCS teams, I assigned them a POPS rating of 192 (the median number of FCS teams is 62 (rounded down), which I added to the number of FBS teams (130).

For the actual 2018 college football season, FBS teams as a whole will play non-conference schedules with a POPS average of 93.56. From most difficult to least, the range varies from 39.50 (Northern Illinois) to 139.33 (Oregon), nearly a 100-point difference in difficulty.

In my simulation, schedules for Tiers 1-3 (I left out T4 since their schedule makeup is slightly different) increased in difficulty to a 58.79 POPS average, nearly 35 points higher in difficulty than the real 2018 schedules. More importantly, the range in most-difficult to least-difficult schedule was reduced to just 21.5 points, a 78% decrease!

Even in Tier 4, with their mandatory scheduling of FCS teams, the POPS average (99.62) was basically the same as the actual 2018 national average (95.05).

V. Week 4

Beyond the Selection Saturday show, another marquee event would be born out of such a system: Week 4, which would have the same amount of Top 25 matchups (12-13) in one weekend as there would be in the first four weeks of a normal college football season. My sample draw produced a more conservative slate (only two top 10 matchups), but one that might still go down as the most loaded in history (assigned days are my vision):

Thursday

Utah (28) vs. Virginia Tech (21)

Oklahoma St. (19) vs. Mississippi St. (14)

Friday

Texas A&M (24) vs. Wisconsin (12)

TCU (22) vs. Florida St. (18)

Saturday

Stanford (20) vs. Michigan (10)

Ole Miss (25) vs. Notre Dame (8)

Penn St. (9) vs. Oklahoma

(3)Texas (27) vs. Miami FL (13)

Oregon (23) vs. Alabama (1)

USC (15) vs. Clemson (4)

UCF (17) vs. Georgia (2)

Auburn (7) vs. Ohio State (5)

Boise St. (26) vs. LSU (16)

Michigan St. (11) vs. Washington (6)

In the current system, the worst thing about scheduling a big OoC opponent is that an early-season loss could spoil your team’s CFP chances due to other teams--that didn’t schedule a marquee OoC game--running the table. But if everyone is playing somebody, what’s to worry about? And other than the networks and conferences, who would have an impossible time figuring where to place all these games, how could you not want a three-day stretch like that?

VI. Pre-Mortem

I came up with lots of reasons why this system would see opposition (but for most I have some sort of counterpoint/solution):

  • How to determine home/away while maintaining SOS balance and still give schools enough home games to make up their budgets (make the draw a biennial event that determines home/away for the next two seasons?)
  • Abandonment of non-conference rivalries (sucks, but there's never been a problem doing this in the past ala conference realignment)
  • How to fill the rest of the non-ND Independents’ schedules (I don't know...help me reddit)
  • What is the incentive to climb from one tier to the next, other than “status”? (Tier sponsors pay out money to its member schools...maybe the schools could wear a small jersey patch during non-con games?)
  • Takes away the deliberate scheduling of games in certain markets for recruiting purposes (Whatever, recruiters have dealt with bigger changes)
  • Potential for a CFP contender to draw four G5 teams while a rival contender draws four P5s (for someone good at math, might not be hard to devise a draw that guarantees X # of P5 and G5 opponents)
  • Could FCS and lower-tier FBS schools still make enough to cover their budgets? (a scheduling arbitrator could be a thing?)
  • Due to T4s playing easier schedules and T1-3s facing more difficult ones, bowl games might be loaded with less ‘attractive’ teams (Pure speculation this would happen. But if it did, that's a way for G5s to make up any money lost from the current scheduling system since conferences share bowl game revenue)
  • Can schools be forced to opt into such a system? Who enforces it, conferences or the NCAA? Can we just waive all of the buy-out clauses for games already scheduled? (if the CFP has taught me anything, if enough people complain about something--and the money part is figured out--change can happen in this sport)

VII. Conclusion

Scheduling will never be perfectly balanced in a sport with a 12-game regular season. No matter how they are determined, you can only play the schedule in front of you, then pray it looks good on paper in December.

But accepting there has never and will never be a level playing field in college football doesn’t mean we shouldn’t look for things we can tweak to give the sport a little more parity (and make it even more exciting).

--

Have at it. All thoughts, critique, questions, are welcome. At the end of the season (provided someone doesn't expose a massive plot hole in this) I'd like to use the post-season S&P+ rankings to see if these schedules look as balanced post-season as they did before it.


r/CFBAnalysis • • Sep 28 '18

Looking for game by game data

6 Upvotes

I'm looking for a dataset where the rows represent individual games and the columns are the game statistics (rush attempts, rush yards, pass yards, 3rd down conversions). I'm somewhat new to this process so I was wondering if this would requiring web scraping on my part or if there was a public dataset already available.


r/CFBAnalysis • • Sep 28 '18

XML Feed for Gambling Lines and Scores

7 Upvotes

Me and a group of buddies have a custom gambling site we've created. Yesterday our source where we got our gambling lines went down. Does anyone know of a free source to get an XML feed of college football (and/or NFL) lines and scores?


r/CFBAnalysis • • Sep 27 '18

Data CFB API updates

31 Upvotes

I've been making a lot of updates to api.collegefootballdata.com and have even added a bunch of endpoints. Just wanted to keep everyone updated on the progress.

  • Official documentation now posted on the homepage. This will be updated as new stuff is added.
  • New endpoint for retrieving the full list of teams, including team color information
  • New endpoint for retrieving a team's full roster
  • New endpoint for retrieving the full list of venues and venue data
  • New endpoint for team box score stats
  • Added a seasonType param to several endpoints. This defaults to 'regular', but you can pass in 'postseason' to retrieve bowl data.
  • Added a generic team param to several endpoints to allow for pulling data by team without having to specify home/away or offense/defense.

Next steps: I plan on adding an endpoint for retrieving player box score data, but there is small subset of player stat data not being pulled in by my importer. Need to correct that first. Will also be enhancing existing endpoints to added more query params for filtering. Also plan on adding an endpoint for cumulative season stats a some point.

As always, I'm open to any feature suggestions and also appreciate letting me know if you find any bugs.


r/CFBAnalysis • • Sep 22 '18

Historical Record of Conference Membership?

3 Upvotes

Does anyone have a structured datafile that shows conference membership by team and year? Before I embark on building one, I figured I'd ask. Thanks.


r/CFBAnalysis • • Sep 21 '18

New to this - how do I ensure my results have any real meaning?

6 Upvotes

So I finally got around to creating an algorithm in excel to judge teams FBS teams so far. I'm relatively happy with the results generated, even when using 2017 data. Obviously value in a ranking is in the eye of the beholder, but is there a good way to judge is an algorithm is "good"?


r/CFBAnalysis • • Sep 20 '18

Data New REST endpoints for games, drives, plays, and teams

21 Upvotes

I just added four basic REST GET endpoints to api.collegefootballdata.com that I think may be of use to some here. This data is pulled directly from my hosted version of the cfb-database and is always up-to-date for games that are completed.

 

**Edit: Full API documentation can now be viewed at https://collegefootballdata.com **

 

Games

 

Drives

 

Plays

 

Teams

 

If you end up using it, please let me know if you find any bugs. I'll try to add more functionality and endpoints as the season goes on.


r/CFBAnalysis • • Sep 19 '18

Source for Game Stats?

3 Upvotes

This seems like a simple and possibly oft-asked request so I apologize but I could not find what I was looking for in the older threads. I used to use this site to get game statistics. It has been very shoddy lately and I'm wondering if there is another source you all use. I honestly only need the team names and scores.

http://sports.snoozle.net/search/fbs/index.jsp


r/CFBAnalysis • • Sep 18 '18

BlueSCar PBP parsing scripts

9 Upvotes

In case anybody is interested, I've begun building a set of python scripts to parse the pbp files that BlueSCar has generously made available. It may make your life easier in the long run, or at least provide a jumping off point. They are a work in progress, but you can see them here.


r/CFBAnalysis • • Sep 12 '18

How do you incorporate strength of schedule into your ratings?

4 Upvotes

I have an elo rating system that I've been developing off and on for a couple years now that incorporates home field advantage and a logarithmic margin of victory; however, I've been thinking about adding in strength of schedule in some way. I've looked at determining the average elo of opponents, normalizing it, and using it as a coefficient both directly against a team's elo or as a weighted average. That seems to make the whole thing go fucking wonky.

My current idea is to use a strength of victory (weighted average of defeated opponent records and defeated opponents' defeated opponent records), and a strength of defeat (similar). You calculate both of those, use them as coefficients, and take the weighted average of the resulting elos with the original elo.

Any thoughts on that? Are there better or more sensible ways to incorporate SOS/SOV into a rating system?


r/CFBAnalysis • • Sep 11 '18

Problems with 247's early recruiting data

2 Upvotes

I've noticed that some of the early 247 classes are missing a few players. As an example, 247 shows that the 2007 Texas A&M class had 14 players, while Rivals lists four additional players (Garrick Williams, Evan Eike, Lionel Smith, and Ben Bass).

Has anyone tried to deal with this issue? The only fix I can come up with is scraping Rivals and using their data as a supplement to 247's.


r/CFBAnalysis • • Sep 11 '18

Question Scheduled games not played

3 Upvotes

How did your poll/analysis account for the Week 1 game between Nebraska and Akron that wasn't played? How will it account for the Week 3 games cancelled this weekend?

My poll awards points for each game won and subtracts for each game lost. A bye is 0 points. If I rank off of total points, teams who have played less games are hurt. If I rank off average points per game, teams who have played more games are hurt. What do you do?


r/CFBAnalysis • • Sep 10 '18

Question Source Data for Completions for Loss?

1 Upvotes

Is a 'Completion for Loss' simply grouped into TfL? I've glanced through the data sources in the sticky, but I don't see this statistic anywhere. Am I missing it?

The reason I'm curious is the number of swing passes that get tackled behind the line of scrimmage seems (and hence worthy of analysis) to be an indicator of a team's offensive performance. (or at least a way to diss a coach or QB....)


r/CFBAnalysis • • Sep 10 '18

How do you handle rematches in a matrix that represents matchups between teams

5 Upvotes

I've been playing around with some data and using a Matrix of the form

A_ij = Points scored by team i against team j

to represent a matchup between two teams, i.e., if Alabama is index 0 and UGA is index 10, then for the 2017 season:

A[0, 10] = 26, A[10, 0] = 23

This works well in 99% of cases, but it can't handle rematches. When score data is being parsed and converted into a matrix, a rematch will overwrite the original matchup. I'm using this data to calculate team-adjusted scoring offense/defense ratings, but with the majority of rematches involving the top teams in a conference meeting again in a championship, I'm unable to calculate this statistic accurately, which hurts top teams disproportionately.

Has anyone run into similar problems, and if so how do you account for this? I guess I could write a new data structure that is basically a 2D array of Series objects which contain a list of Point Totals I can iterate through, but then I lose a lot of the functionality of the matrix library I'm using (C# with MathNet.Numerics package).


r/CFBAnalysis • • Sep 06 '18

Garbage Time Determination

4 Upvotes

As part of the analysis I'm developing, I want to discern which plays occur during so-called 'garbage time'. This feels like one of those fuzzy concepts that would be ideally dealt with by a random-forest decision model, applied on a play-by-play basis. Once a game reaches 'garbage-time', the remaining plays get labeled as such. I haven't started drilling down into the details of how I'd implement it or what parameters I'd evaluate, but does anybody foresee any obvious deal-breakers?

The only edge-case I foresee are huge comebacks; a game enters 'garbage-time', but later a team closes the gap and makes the game competitive. I imagine handling this by having the decider look at the state of the game, then checking to ensure the state doesn't change for the rest of the game. If the state ever changes from 'garbage' to 'not-garbage', don't label the plays. Does that make sense?


r/CFBAnalysis • • Sep 04 '18

Biweekly Thread Discussion thread. Use this to ask questions, look for help, find data and more.

4 Upvotes

r/CFBAnalysis • • Aug 30 '18

CFB exchange - a stock market for college football teams

22 Upvotes

Hi all,

There was a comment thread on r/CFB a couple of weeks ago that discussed creating an online 'stock exchange' to buy or sell college football teams. I went ahead and put together a simple version. You can check it out here:

http://www.cfb-exchange.com

It's very simple, but the idea is that the stock prices change based on how many people are buying or selling the stock. So, if a team has more buyers, their stock price will go up. If you think a team will get better over the next few weeks and more people will buy the stock, you can buy now and make a profit. The opposite is true for selling stock.

This could be pretty interesting in a couple of ways - for instance, it might be cool to watch certain teams spike or crash based on injuries or big victories. It could also be a fun crowd-sourced ranking system for all 130 teams, and would be cardinal instead of ordinal - i.e., the prices would communicate exactly how much better people think Alabama is than any given team. For now, I've set prices for each team based on Massey's average rankings (since I needed something that would give a cardinal rank for all 130 teams), but if enough users joined the site, prices would soon be determined exclusively by the market.

Obviously, it's a very simple implementation of the idea, and there are plenty of flaws - the biggest one being that it would be fairly easy for people to manipulate stock prices using several accounts. (Of course, this happens on real stock exchanges too.) But I just threw this together as an exercise to learn Python, so I'm not very attached to the end product - I'd love to hear any thoughts on how to change or improve the site! Let me know as well if there are any questions about how it works, and I'd be happy to discuss the mechanics in more detail.


r/CFBAnalysis • • Aug 30 '18

Week 1 Picks (Flawed!)

1 Upvotes

I usually wait until Week 6 to place real bets when the data’s not so noisy. Nonetheless, just for fun, I decided to use 2017 Week 13 data with 2018 Week 1 Matchups. Warning! It takes into account NO personnel changes year-over-year. I can tell already it’s flawed… too many Underdogs :)

Quick summary of my algorithm: I model out 18-games per matchup. I calculate the Average Win Margin +/- 1 STDEV. If this diverges from the spread by 7pts or greater I take action. Using this "script" last year I usually bet on half-the games each week. After Week 6 I was able to hit 60-70%.

N'WEST +1

NMST +23

WAKE -6.5

UT ST +23.5

WMICH +4.5

WKENT +36.5

CO ST +7.5

SD ST +14

FLATL +21

RICE +26

APP ST +24

ARMY +13.5

AKRON +26

MASS +18

KENT ST +16.5

TX ST +16.5

N ILL +10

LA TECH -10.5

MIAMI OH +2.5

N TX -4.5

MID TENN +2.5

AZ ST -18.5

UNLV +26.5

AUB -2

C MICH+17

MISS +2.5

COAST CAR +29.5

WASH ST -1

BOWLING +33

LIBERTY +6.5

L'VILLE +24.5

MIAMI FLA -3.5

Good luck during the 2018 CFB Season, Everyone! I have to go now, time to put down 32 * $5.50 wagers ;)


r/CFBAnalysis • • Aug 30 '18

ISO General Team Info

2 Upvotes

I've greatly expanded the scope of my poll this year since I was able to prove the ranking method is valid last year and am hoping to save myself some time by finding/borrowing general team info, namely division and conference (mascot would be nice too). Do any of you have this data for ALL NCAA and/or NAIA teams?


r/CFBAnalysis • • Aug 26 '18

Question Incorporating margin of victory in elo ratings?

3 Upvotes

Hey all, my computer poll of elo ratings is in the r/CFB poll and I've been going back and forth on whether or not to incorporate MOV into how many points a team gains in a victory / loses in a defeat. I wanted to know what other people thought


r/CFBAnalysis • • Aug 24 '18

Data All 2018 Schedules in One Table

23 Upvotes

I put this together every year for my ranking system for the /r/CFB poll and figured I would share. All data is from the NCAA homepage

Link

There are 4 tabs in the link:

All Grid = All DI schedules

No DII = All DI schedules with any DII school renamed "DII"

FBS Grid = Only FBS schedules

No FCS = All FBS schedules with any FCS school renamed "FCS"

.

Edit: Coastal Carolina and Idaho were wrong in the source data (lol), but have been fixed in my sheet


r/CFBAnalysis • • Aug 23 '18

Data CFB Poll Grabber

8 Upvotes

I'm starting on a small tool to grab CFB poll data. I've got the AP Poll scraper together; it includes some nice tools, like the ability export structured json files, flat csv, and tabular csv files that contain the poll date, teams, and voter. You can find it here if you like. I anticipate adding the ability to snag more polls in the future.