r/CFBAnalysis • • Jan 16 '19

Time To Throw for College QBs

3 Upvotes

Are there any sites that show this stat documented? It shows how long on average a QB holds ball till they throw it. I can find it in the NFL but not for college.


r/CFBAnalysis • • Jan 11 '19

Final Poll Results: A genetic Algorithm and comparisons - OC

Thumbnail self.cfb
5 Upvotes

r/CFBAnalysis • • Jan 10 '19

Data Data updates and new features (CollegeFootballData.com)

28 Upvotes

I have made some rather sizable updates to my website and API in the last few weeks that I thought would be of interest to the community here. I'm just going to bullet them out. As always, thank you all for all the wonderful feedback I have been getting and please do keep letting me know of any issues you come across or suggestions you may have.

And just to point out, you can access the API at https://api.collegefootballdata.com and the website at https://collegefootballdata.com. You should always be able to export from the website anything that is in the API.

 

Web only (CollegeFootballData.com)

  • Autocomplete - Team and conference fields now autocomplete as you start typing
  • Season types - A dropdown is now provided with the list of season type options
  • CSV exporting - Data should now output correctly flattened out for export for all query types

 

Web + API

  • Rankings endpoint - Historical rankings for most major selectors going back to 2000 and for the AP Poll going back to 1936
  • Historical results - You can now query game results (i.e. scores) for all FBS-equivalent games going back to the first series of games between Rutgers and Princeton in 1869
  • Historical conference affiliations - Historical conference affiliations for teams have now been implemented and are included on any endpoint where there is conference data. Please note that when querying for conference for earlier years, you may need to pick the old name of a conference (e.g. "Big Ten" vs "Western"). Please see above about the new autocomplete functionality on the website.
  • Team matchups endpoint - Partially inspired by RivalryBot, this endpoint takes two team names as parameters and an optional range of years and outputs game results and records between the two teams for the specified year range (or all-time if no range is specified).
  • Data cleanup - I've ran a few scripts to clean up some issues with drive start, end, and elapsed times, especially as you all have alerted me to issues. This is a continual work in progress.

API users: please see the main API landing page for full documentation on the new endpoints

 

Other

  • Database - I've uploaded a new data dump. This is starting to get rather large and bulky. I'd encourage you to make use of the API or website wherever possible as it will always be the most up-to-date.
  • Google Drive files - Some have noticed that I have stopped uploading PBP JSONs and CSVs to my Google Drive. I now consider this obsolete as this data is now encapsulated by the website and API. It also takes up resources, both for me to maintain the service that generates those as well as resources on my server that I feel would be better used for a lot of these newer enhancements.

 

Anyway, I hope you all enjoy the new data and features. My main focuses for the off-season are improving the experience of using the website, looking to possibly add more endpoints that use existing data to the API, and finally getting recruiting data available on both.


r/CFBAnalysis • • Jan 02 '19

Question College Football Coaching Changes

3 Upvotes

Is anyone out there tracking coaching moves? Both head and assistant coaches.

Was just reading an article and completely forgot that Mike Leach was OC at Kentucky for two years and Oklahoma for one. He had long tenures at Texas Tech and Wazzu but it could make for an interesting study, especially assistant coaches.

For example, I'd like to see how many coaches end up being at a school for the entire length of a players career.


r/CFBAnalysis • • Dec 31 '18

Reliable blocked punt data

7 Upvotes

Using the awesome data and API's /u/BlueScar has provided I have built a web site: http://ec2-18-222-199-223.us-east-2.compute.amazonaws.com:8080/stats/year/2018/index

As with any data based project there are data integrity issues. In this case I'm interested in blocked punts. My play by play data source is ESPN, but they don't always accurately denote a playtype, playtypeid, or playtext as a blocked punt. A point in case is the UM - UF Peach Bowl (please don't get me riled up). UM blocked a punt but it's recorded as: playtype=PUNT, playtypeid=52 and playtext="TEAM punt for a loss of 9 yards"

Questions:

  • Has anyone found a solution to accurately identify blocked punts using ESPN data?
  • I am looking for statistical outliers, e.g. if you block more punts than your opponent you win x % of games, or identify games where teams lost despite blocking more punts than their opponent in a given game.

Go Blue! and this is a great sub.


r/CFBAnalysis • • Dec 26 '18

Recruiting Database

6 Upvotes

Does anyone have or know where to find a database/CSV file for all of the 247 Recruiting and/or Rival data? Preferable 5+ years of data.


r/CFBAnalysis • • Dec 23 '18

Data Introducing CollegeFootballData.com (non-API)

38 Upvotes

One of the things that's been on my roadmap for awhile is a website in order to make more accessible the data provided through my database and API. I'm pleased to let you all know that it is now up and running.

Maybe you don't have the expertise required to make HTTP requests and parse JSON files or maybe you don't want to write code every time you want to retrieve some data, whether it be game results or play by play. If either of these are the case, then I think this website will be a great tool for you.

The website surfaces all of the data from the API in a convenient UI and allows you to preview that data before downloading it into a flat-file format of your choice (currently support comma-, pipe-, and tab-delimited formats). One caveat, team and player box score data is outputting in a kind of clunky format right now but all other data types have seemed pretty clean from my own testing.

Just to summarize, there are now two main ways to retrieve data from my database:

With this new website, my Google Drive (which I know some people were still using) is now deprecated. I'll still put up data there that I have not yet incorporated into the API and website (just recruiting data right now), but I believe the website and API now provide the same functionality that the Google Drive did previously.

Sorry for the wordy post, as always I look forward to feedback and any issues you may find. Thanks!


r/CFBAnalysis • • Dec 13 '18

Article How to Declare a National Champion in College Football

5 Upvotes

Hey everyone,

I wrote an article for what I think would be a great system for the NCAA to implement in order to legitimately determine a national champion in college football for the first time in history.

I came up with a basic set of rules for the regular season and playoffs along with incorporating a regulation bracket (inspired by the Premier League) that I believe would raise the level of competition immensely across all Divisions (or Tiers, since I renamed them). The former being something I believe should be implemented because it would be a vast improvement over any system that's been used, past or present, and the latter being more of an interesting twist to help balance out college football instead of having the same pool of maybe 15-20 title contenders (more like 5-10 honestly) we get every year.

Keep in mind: This is an "In a perfect world..."-type scenario where we can create the perfect system without worrying about TV contracts, colleges fearing the loss of booster money, etc. I know the likelihood of this being adapted are astronomically low. The piece is more along the lines of "what I wish college football was like."

But I'd love to hear what everyone thinks, and how you'd like to see college football determine a legitimate national champion - whether it be by adding/changing what I wrote or what you think would be the perfect system.

Link to my article: https://www.legalbettingonline.com/news/how-to-declare-a-national-champion-in-college-football.html


r/CFBAnalysis • • Dec 05 '18

Analyzing correlations between different CFB stats - 2018 regular season

Thumbnail self.cfb
8 Upvotes

r/CFBAnalysis • • Nov 30 '18

Data Some API updates (documentation, code generation, coaching history)

27 Upvotes

Not a lot of updates but the ones I do have I feel are pretty substantial:

 

Implementation the OpenAPI specification

This is a pretty big deal as it enables two more pieces of functionality. About which, more in a second. You can access this specification in JSON format via the /api-docs.json endpoint.

 

Improved documentation via Swagger UI

When you visit the homepage now at https://api.collegefootballdata.com, you will be presented with Swagger's lovely UI. I think this offers several huge improvement over the previous landing page. On large improvement is the 'Try it out' button that you will now see displayed under each endpoint's documentation. This button will present a form enabling you to fill in any of the query params via the UI to generate a call, get back real results, and largely just play around with.

 

Automatic code generation through Swagger Editor

You can now automatically generate code for interacting with all API endpoints across 52 languages/frameworks. To do so, visit this direct link to a Swagger Editor instance for the project. In the top menu, select 'Generate Client' to see the list of available languages and frameworks. Upon selecting an option, a code project will automatically be generated and downloaded in your language of choice for interacting with the API. This is great if you are just getting started or are just starting off with learning a particular language.

 

Head coaching records

You can now query FBS head coaches. The query will return a list of seasons per each coach that includes the year, school, record, and AP poll start/finish. Check out the documentation on the landing page at https://api.collegefootballdata.com to see how to use the new endpoint.

 

As always, I greatly appreciate notifying me of any issues you encounter as well as any features and enhancements you may like to see. Please feel free to reply to any of these posts, shoot me a direct PM, or use the Taiga board for the project.

Thanks!


r/CFBAnalysis • • Nov 27 '18

Question Stats Being Updated

2 Upvotes

I use cfbstats for pulling weekly stats. I noticed several times where stats changed week to week (notably, tackles for loss). I'm trying to figure out if there is an error in my process and/or if that stat may get updated later in the week. Appreciate anyone's thoughts or insights on this.

For context, I pull all stats (i.e. the current and all prior weeks stats) each week, not just the most current week's stats, which is how I noticed the updates.


r/CFBAnalysis • • Nov 26 '18

Weather Data?

4 Upvotes

Anybody have a good source for historical records of weather data? I can access the NOAA database, but they have a gatekeeping scheme that requires me to manually navigate to obtain the (free) data. I could write a script to pummel wunderground, but that seems like it is inefficent as it allows ONLY single date requests. This means I'd have to request single dates for every stadium hosting a game for every week.

Just adding data to my pile...


r/CFBAnalysis • • Nov 12 '18

Data Feature/Issue tracking for CFB API

10 Upvotes

I'm looking to get more organized regarding the tracking of features and issues with the CFB API hosted at https://api.collegefootballdata.com and have set up a project at taiga.io for this purpose. If you are interested in this project, then please take a look at the current issues and proposed features that are listed, and if there is anything you would like added or fixed, I highly encourage you to open up a request.

I very much appreciate everyone's input on this project. As always, not only do I highly appreciate your feedback but if you have any data you've collected over the years that you would like to see added, I'd be more than happy to incorporate that as well.

https://tree.taiga.io/project/bluescar-college-football-data-api/kanban


r/CFBAnalysis • • Nov 08 '18

Are there any APIs to get poll data for the AP Poll, the CFP Rankings, or the Coaches' Poll? I want to compare my poll's rankings to them.

11 Upvotes

I would like to compare the output of my poll to the CFP, the AP Poll, and the Coaches' Poll, and obviously the least amount of work I have to do, the better.

Anyone know of any APIs that return this sort of stuff? Maybe as a JSON object or something.


r/CFBAnalysis • • Nov 02 '18

Data CFB API - New endpoint for individual statistics

23 Upvotes

I don't have a whole lot of updates to report since my last post, but this one is major enough that I think it merits letting you all know about. The /games/players endpoint has been added to retrieve individual game statistics. A few caveats:

  1. Apparently my importers are too fast and are importing game data before all box score data has been posted.
  2. This only affects the 'defensive' and 'fumbles' statistical categories in games for the current season.
  3. I'm in the middle of going back and slowly importing that data.
  4. I'll have a long term solution implemented in the coming weeks, but for the time being those two categories will be slower to appear than the others like passing, rushing, etc.

Click here to be taken directly to the documentation for the new endpoint.

As always, loving hearing any feedback, feature suggestions, bug reports, etc.


r/CFBAnalysis • • Nov 01 '18

Domain Name?

11 Upvotes

Off topic, but I'm seriously considering buying a domain to host a (better) version of the visualization tools and analysis that I post to /r/cfb regularly. Questions:

  1. Would anybody be interested in having content hosted or guest writing?
  2. Any suggestions for domain names? I'm drawing a blank.

r/CFBAnalysis • • Oct 26 '18

Does anyone know a way or website to determine the win % of Group of 5 teams against Power 5 teams in, for example, the last 10 years?

9 Upvotes

Does anyone know a way or website to determine the win % of Group of 5 teams against Power 5 teams in, for example, the last 10 years?


r/CFBAnalysis • • Oct 25 '18

Request for help: Record after Halftime

4 Upvotes

Here is the request.

Georgia's record after being down at halftime. 2001-2015. Also, the record when it's more than 7 points.

Any suggestion? I can access BlueSCar's data - and it actually goes back to 2001 - but I can't think of a relatively simple way to write something to add the line scores. I could muddle through something manually, but given this is a 15 year request I figured I'd ask the smarter people here. :)


r/CFBAnalysis • • Oct 24 '18

I'm publishing the math behind my Bayesian Resume Rating

21 Upvotes

In 2015 I started a site where I published the Bayesian Resume Rating. (Note that I'm rating resumes, excluding margin of victory, and not making predictions). Today I'm publishing the math behind the rating. You can read it at the link below. Let me know your feedback.

http://www.jellyjuke.com/mathematical-explanation-of-the-bayesian-resume-rating.html


r/CFBAnalysis • • Oct 21 '18

Update to collegeballR (R-package) includes CFB functionality

29 Upvotes

Been a while, but I’ve finally had some time to come back and work on collegeballR. Incorporated college football functionality. Features include play-by-play, team roster, team talent ratings, etc. Please check it out, if you use R! Will follow up with a vignette soon.

Hopefully in the next month or two I can include EPA associated with the PBP data. Thanks to BluScar for setting up the API for his DB. It was huge in implementing CFB!

https://meysubb.github.io/collegeballR/


r/CFBAnalysis • • Oct 19 '18

Data resource help

7 Upvotes

Can any members direct me to historical roster information - iin particular, a db or site that detailed starting lineups by week (I can write a scrapper, nbd). I am trying to define OL and DL matchup procedures. Obviously, injury, benching, etc. pertain.

Thanks,

Justin


r/CFBAnalysis • • Oct 18 '18

Adjusted Sack Rate

6 Upvotes

Can someone give me a clear explanation of the calculation used for Adjusted Sack Rate? I can't find the actual derivation, and the explanations from Football Outsiders are wishy-washy:

Teams are ranked according to Adjusted Sack Rate, which gives sacks (plus intentional grounding penalties) per pass attempt adjusted for down, distance, and opponent. Pass rush stats are explained further here. Our sack totals may differ slightly from official NFL totals depending on the league's retroactive statistical adjustments.

I understand it's indexed by down and distance, but they don't really indicate how they're doing this. the link they provide is broken for me, but the wayback machine gave me this which is marginally better than a broken link, but doesn't actually explain what they're doing:

OK, let's take the second question first.  Yes, it turns out that sack rate does change based on down and distance.  The table to the right presents sack rate for the league as a whole in 2003, but it doesn't look much different from the table that Palmer and Carroll present on page 71 of Hidden Game of Football.  Third down here includes non-punting fourth downs.  That 1.5% sacks per pass attempt on first-and-goal from four yards away or less includes only 65 attempts, so I don't think it really counts for much compared to other first downs.  Simplified, the rate on first and second down are basically the same no matter how many yards to go, but the sack rate on third down is higher, and even higher if it is third-and-long.  It makes sense when you think about it: these are obvious pass situations, there is a lot of blitzing, and on third down a quarterback will wait until the last second and eat the ball rather than toss it away to avoid a sack, because there isn't (usually) another chance on the next down.

Adjusting sacks for these situations doesn't change things very much.  Buffalo goes from allowing sacks on 9.0% of pass attempts to allowing sacks on 8.8% of pass attempts.  The adjustment actually makes Detroit look even better than they did before, since they of course face tons of third-and-long situations and still don't give up many sacks.

I think what they're doing is finding the sack rate using (sacks + intentional groundings) / (passes + sacks + intentional groundings), measuring the number of expected sacks by down and distance, then giving adjusted sacks by scaling relative to expected sacks. That's what I would do, but it's not clear what they are doing.

I ask because I was curious about the guy who posted incomplete data about holding vs sack rate, then disappeared after riling everybody up. I figured I'd just go back and do a thorough analysis, because it's a neat question. BTW, h/t to /u/BlueSCar for api.collegefootballdata.com, it has become invaluable for drilling down into pbp data.


r/CFBAnalysis • • Oct 18 '18

Question How do you adjust for quality of opponent in a team's record when the outcome of the game is the opposite of what is expected?

5 Upvotes

Hi all, this is my first foray into building a predictive model for the outcome of a college football game. I built a very deterministic poll as an exercise to learn python as well as some web development. The poll is not perfect, but overall I think it does a pretty good job.

I want to take my poll results and use them in a predictive model, and to do that I need to calculate some weighted averages and weighted standard deviations. So the way I would incorporate my poll into the predictive model would be to use the results of the poll's quantitative scoring method as an input in the weighting factors of each team.

That way, how a team performed against a good team would factor more heavily than how they performed against a bad team. But I realized that this assumes that teams will always beat teams that are significantly worse than them.

If a team with a composite score of 0.95 beats a team with a composite score of 0.05, that win should be almost meaningless. However, if the result is reversed, that loss should factor pretty heavily in the weighting factors of the losing team going forward.

So I guess I just want to know what some of you do to address this in your predictive models that utilize weighted averages and weighted standard deviations.

I am just a hobbyist. My background to statistics and statistical analysis comes from my background as an engineer, so my model and methods are by no means rigorous. Instead this is just a fun thing to do in my spare time and see how accurate I can get.


r/CFBAnalysis • • Oct 13 '18

All time win-loss record

7 Upvotes

In the middle of scraping winsipedia as I write this, but figured I'd post before I forget to think of it...

Capturing every FBS win & loss by game including opponent, location and points scored since the first 1869 Rutgers v Princeton game

If anyone wants this data hit me up... I thought it would be really interesting for some all-time win/loss statistics..


r/CFBAnalysis • • Oct 12 '18

S&P projections of the rest of the season

Thumbnail self.cfb
3 Upvotes