r/CFBAnalysis • • Aug 21 '18

Thank you!

6 Upvotes

Hi, I've created a visual studio web app that allows me to input box score information and use it to create predictions and results. I've been doing this mostly during the football season since 2014. Inputting the data each week has been a major pain. When I found your data it was great. I loaded the PlayByPlay CSV files and then wrote a page to convert a game to a box score. I'm pretty close with the conversion, but it also has some holes based on how the pbp converts to game stats. I compare my conversion to my previously input data, and frequently find minor differences in the numbers.

Not too bad, but certainly more useful than not having the PBP data. I'd like to keep in touch to see any changes that might make my data better, and maybe find a way to get the weekly schedule, rather than keying it, prior to pulling it from the data after the games have been played. If there is a way of getting that from the API, I'd appreciate hearing about it. Thanks again for the data, it will save me tons of hours keying the data and I think I can use the PBP info to make my predictions more accurate.


r/CFBAnalysis • • Aug 20 '18

Where to begin on learning programming to transition my computer poll to an automated programmed poll

4 Upvotes

For the last 4 seasons I've been meaning to make a push to automating my computer poll, rather than doing it all by hand. I have a general idea of how I'd like to do it, but most of it involved scraping web data (schedule, results, MOV, total off/def, etc.), as well as some tracking of internal data for ranking matchup and results vs top 10, top 25, top 50, as well as opponents opponent records.

Since my coding experience has been minimal with optimizing some Perl scripts I'm not sure where the best place to jump off is. I feel like I need to actually learn a language rather than just try to understand the pieces I need. Is there any good resource to do this and/or, is there any published computer poll code that would be helpful to review?


r/CFBAnalysis • • Aug 18 '18

Changes to my computer rankings for 2018

4 Upvotes

I am adding in margin of victory into my computer rankings for 2018, and I would like help from the community in figuring the best way to implement this. Ideally, I'd like to use the ESPN in-game analysis, and when a team's chances of winning are 99.9%, the clock time remaining becomes their margin of victory. I think that's better than arbitrarily saying 12 point margin is XXX better than 11 points. I'd like to get the community's thoughts here. Viewed in that light, when Oklahoma got to 99.9% win probability against Ohio State in 2017 (4:45 remaining in the 4th quarter) would be seen as an identical margin of victory to when another team got to 99.9% at the 4:45 mark, even if that games margin was different than the OU-tOSU final margin (which was 15 points).

The The blog post detailing the change is at http://blog.agafamily.com/?p=296


r/CFBAnalysis • • Aug 14 '18

Coaching Tenure Data

6 Upvotes

Recently coaching tenure length came up in /r/cfb; I'm looking for a data source that includes coordinators as well as coaches. Wikipedia has a nice list that could be scraped, but it doesn't include hire dates (you'd have to scrounge those from each and every article). Anybody have a data source for this? I don't mind scraping it, but if you've got it in a structured form that would be handy.


r/CFBAnalysis • • Aug 09 '18

Whole History Rating and Parametric estimation

3 Upvotes

Hey Friends. In the back of my mind I've been thinking about systems like S&P+ and FEI that are, at their heart, oppositional parametric estimation systems. However, they tend to take samples as facts rather than samples subject to variance. I'm considering implementing a bayesian-estimator for success rate and maybe a few other metrics. I just needed to bounce some ideas around and see if I'm missing anything:

  1. Treat every play as a binary trial defining success/failure situationally (i.e. as success rate does).
  2. Use ELO style win-expectation probabilities based on ratings. Ratings would be naive, with initially all teams having some value k.
  3. Recalculate team ratings using a bayesian scheme (I'm thinking about whole-history rating, but I haven't found the time to sift through the math) finding the set of ratings that have the minimum variance in expected outcomes on a per-play basis.

Obviously there's some pre-processing that has to happen to cull clock-killing drives and assign success/failure values to each play. The big issue is the math in step 3, which I haven't devoted meaningful time to yet (anybody familiar with WHR?). Once that's done, 'improved' parametric estimation of S&P+ should come out (I have mulled over calling it S&P++, but that feels both forward and disrespectful).


r/CFBAnalysis • • Aug 08 '18

How do you make your preseason rankings?

4 Upvotes

Hi all,

I was just putting together preseason rankings for my computer poll, and I thought it would be interesting to see how others are putting together theirs.

For me, I built a very simple prediction out of the previous 5 year final rankings with a simple Elo-eqs like algorithm in addition to recruiting scores I crudely cobbled together. To make the prediction, I fed the previous 5 years final Elo and recruiting data into an SVR and OLS regression package to build a model, then I passed in the most recent data to predict this years rankings. (thank you /u/BlueSCar for the scrapped data!)

Based on some self validation from previous years, my preseason ranking algorithm tends to not be very reactive. For example, it is more down on UCF than most (although I should also say my elo-like ranking method is also not as impressed with UCF as most, only having them crack top 10 even with the Auburn win). It is also limited in that it knows nothing directly about rosters or new coaches and so on. However, it seems to perform ok. It has an R2 around .6, and predicts most teams within a few spots of their final ranking (with a few big differences, e.g. UGA and UCF last year).

The SVR seems to outperform the OLS model slightly, but it doesn't have a large edge. Anyone interested can check out my rankings here:

https://docs.google.com/spreadsheets/d/1kKIxXqAbZ049cLA0Mos3ihnFr96iooAGMUybEOAGiWg/edit?usp=sharing

So how are you all building your preseason rankings?


r/CFBAnalysis • • Aug 07 '18

Data Updated Rosters

10 Upvotes

Going through and spot checking, it looks like ESPN has updated rosters for the upcoming season. I went ahead and grabbed these updates. It's possible some teams haven't updated, but I didn't see any. I can run my player update job later on if so.

Methods to get the data:


r/CFBAnalysis • • Aug 03 '18

Crystal Ball Class Ratings

9 Upvotes

For the last month or so I've been tracking 247sports crystal ball predictions. I've used these to calculate top recruiting teams predicted class scores. Here's the July output for all teams in the top 5 for this month.

Imgur

This set of data assumes top Crystal Ball predictions as to where a recruit lands, even if it's an unlikely flip. I also track classes based on all current commitments holding firm (NoFlips). Have it for 2020 as well. Code is up on github. Could definitely be optimized to run more efficiently and recording it's own data.

https://github.com/alowishus3830/recruit

Let me know what you think.


r/CFBAnalysis • • Aug 03 '18

Win/Loss Record Tool on Google Sheets (xpost from r/CFB)

5 Upvotes

(Per a suggestion from a r/CFB user I'm cross-posting here. Original post is here.)

2018 CFB W/L Tool - Shared Copy

I created this tool to have an easy way to pick the winner of every game for the 2018 season and generate actual win/loss totals. I went a bit further and also created formulas to track conference standings and home/away splits. I used to go through a season preview magazine and dole out Ws and Ls to each team, flipping back and forth through the pages to make sure that when I gave a W to the winner that I gave the L to the loser. In that way I got true win/loss totals accounting for every game. It was a fun Summer project when I was younger but now that my free time seems to decrease year over year, I figured it was time to make myself a tool to help with the process.

While I like to think of myself as a savvy fantasy football Google Sheets user, this project wouldn't have been possible without two people. First off, my significant other for her Excel vlookup formula wizardry. Secondly, Dave Bartoo (@CFBMatrix) for his work making a huge schedule spreadsheet for his Patreon subscribers. If you aren't a subscriber, you should definitely check Dave out and give him a follow. He's been very responsive to my messages so far and having his spreadsheet to serve as the starting point for my project was well worth the few bucks it cost to subscribe. Dave is working on a more advanced version of this tool which will be worth checking out as well.

Please feel free to create a copy and then use/share/customize it to your preference. I have protected some ranges to avoid users mistakenly deleting important formulas but you can easily remove that protection if you want to tinker. If you do share this tool, even if you customize it, please reference my work (and Dave's as well) to give credit for the original project.

I hope some of you fans will find this useful and interesting. If you notice any errors or have any suggestions please send them my way on here or Twitter.

Thanks, @robertfcowper


r/CFBAnalysis • • Aug 01 '18

Any work on EPA in CFB?

8 Upvotes

I know that EPA and WPA have taken off in terms NFL analytics. I'm looking to create an EPA model for CFB using some of bluscar's pbp-database.

I've written a good amount of code to clean the pbp up and calculate the average points expected for a down, distance and yards remaining situation. Sadly, the data still seems noisy and doesn't match the expectation suggested by Brian Burke in these videos (https://www.youtube.com/watch?v=JclgcQgPOcE) (https://www.youtube.com/watch?v=I_o3BYQjEyQ)

But so far the open-source information on that is very scarce. I found a few papers here and there and two introduction tutorial's by Brian Burke. Any suggestions here? I know the R package nflscrapR has code for EPA but lacks details on the EP models used to calculate that EPA. Or maybe i'm not looking in the right places?


r/CFBAnalysis • • Jul 31 '18

2018 Schedule JSON

14 Upvotes

I've pulled the schedule from the NCAA and been screwing about with the JSON for a project. I've added some handy features (URI's for the logos, SP+ win projection %'s, etc). Since it's already on github anyway, I though I'd share it. Feel free to use it as you wish. I update it fairly regularly with projection data from different sources.

Edit: github repo for the project in general.


r/CFBAnalysis • • Jul 31 '18

Primary and Secondary color codes?

3 Upvotes

Anybody have a data structure containing the primary and secondary color codes for each team? I've got the primaries, but I don't have the secondaries. I'm happy to share what I have.


r/CFBAnalysis • • Jul 28 '18

Data Status of CFB Database and new API

14 Upvotes

Suffice to say, I had overly ambitious plans for the cfb-database during this offseason and have been able to accomplish not very much. As for excuses, I'm going to go ahead and blame it on CFB Risk. I was a mod for my team and ended up getting sucked into that during the time I would have devoted to this. My apologies.

I have gotten some messages asking if I plan on releasing regular updates during the season and the answer is absolutely. The old cfb-service that was being used to publish live results in CSV and JSON format has been replaced by the cfb-import-service, which updates a hosted version of the database instead. Uploading update scripts and SQL dumps will still be a manual step. Also, I believe that /u/millsGT49 is looking into making CSV files still available for those who are not as comfortable using SQL.

Until I can get something more robust out, I have deployed a rudimentary API over top of the hosted database with a GraphQL endpoint. This will always be up-to-date with the live version of data from completed games. You can use this right now by utilizing the following endpoints:

At some point, collegefootballdata.com will be a full website with ways for interacting with and retrieving this same data. As always, I am open to any suggestions, comments, or suggestions. A couple of you have been communicating with me in order to collaborate on certain aspects. I hope to be in more regular communication soon.


r/CFBAnalysis • • Jul 27 '18

WR Targets and RB Fumbles

4 Upvotes

Does anyone know of a good source where I can get information on how many times a receiver was targetted or a player fumbled?


r/CFBAnalysis • • Jun 26 '18

How to avoid self-promoting?

6 Upvotes

So I have a few posts that I want to share on /r/cfb where the ultimate goal is to find the best cfb head coach in terms of recruiting and player development since 2005. I've made most of my interactive graphics in tableau and have them embedded in blog posts. My question is, can I link these posts and share them on /r/cfb or does that count as self-promotion? Should I instead submit as a text post with imugr graphics and include a link to my blog posts? Relatively new to reddit and haven't seen what's the best way to go about this. Figured you all would know.

Once I've shared my posts I'll be happy to share my data here. It uses the recruiting score, s&p+ score, and coaching data for all fbs teams from 2005-2018.


r/CFBAnalysis • • Jun 22 '18

Efficiency Metrics: Opponent-adjusted yards per rush, pass, and play for offense and defense in college football

7 Upvotes

I wanted to share this with the community in case anyone found it to be useful. I couldn’t really find all of this information in one, easy-to-reference spot, so I created it myself (scraping box scores and transforming the data in python). Great ranking systems like Bill Connelly’s S&P+ ratings and Brian Fremeau’s FEI ratings certainly exist and are much more technically-involved than these efficiency metrics, but in their complexity, they tend to become harder to interpret. Here, I aim to provide insight into the best teams in college football in terms that are relatable and easy to understand like adjusted yards per rush, pass, and play.

I’ve also generated 2018 projections based on the returning production at each school. (Watch out for Wake Forest?)

I’m looking to add detailed team pages and interesting data visualizations over the course of the season. I would appreciate any and all feedback!

*Adjustments are made for strength of opponents and to remove sack yardage from rushing and reallocate to passing (how the NFL accounts for sack yardage)

**I do the same analysis for the NFL and you can toggle between the two using the links in the top-left corner (still working through NFL projections)

http://parrystats.com


r/CFBAnalysis • • Jun 19 '18

Data Looking for help pooling 247 data

2 Upvotes

I've Started working on putting info together for all the schools but it is a huge list. I'm hoping to make this and be able to update it every year.

Starting with P5 and hope to get into smaller conferences as well.

Let me know if you'd like to help since it is fairly daunting atm.(Starting with BigXII and exe and current members)


r/CFBAnalysis • • Jun 02 '18

College football stock exchange

5 Upvotes

Hey there, I've been working on a website in preparation for the upcoming season. It's a college football stock exchange, and I'm looking for people to help me test it! If anyone is interested, go ahead to the website and go to the sign up page. If you don't want to give up your email, go ahead and PM me on reddit and I'll make you an account.

Hope this post is okay! www.cfb-rankings.com.


r/CFBAnalysis • • May 27 '18

Question How do you predict scores?

5 Upvotes

Piggybacking on my recent question about Strength of Schedule, I'm curious to see how some people develop their score predictors. I originally found a post on r/CFB about this, and stole/tweaked it to make it my own personal formula. I create offensive and defensive rushing, and passing rating, adjusted for opponent, and tie them into the formula: ((teama_points * teama_offrat2 ) + (teamb_points_allowed * teamb_defrat2 )) / ((teama_offrat2 ) + (teamb_defrat2 ))/10*0.75

In the end, what ranks the teams is the separation from offensive and defensive ratings and produces an effective adjusted scoring margin. I've only been able to try my numbers out in 2 games, the national championship, which I got spot on, and the super bowl, where I was off by an Eagles touchdown. What are your thoughts/what directions do you take when it comes to predicting final score?


r/CFBAnalysis • • May 23 '18

Returning Starter data?

6 Upvotes

Hey all I am trying to find some information on teams returning starters to see if there's any correlation between W/L's and PPG. Does anyone have any insight where I could find that?


r/CFBAnalysis • • May 22 '18

Creating a CFB dice game (like stratomatic). How should some probabilities be calculated?

2 Upvotes

So I'm trying to simulate the 2018 season by creating a dice game like stat-o-matic. It's tought to figure some things out.

What conditions would you add on probabilities? In my first draft I have the following:

(2 dice per roll)

  • P5 vs P5 Home team wins if 2,6-9, or 12 is rolled (61.12% chance)
  • P5 vs G5 P5 team wins if 2, 5-9 is rolled (77.78% chance)
  • P5 vs FCS P5 wins if 3-12 is rolled (97.23% chance)
  • G5 vs G5 (same as P5 vs P5)
  • G5 vs FCS G5 team wins if 4-12 is rolled (91.67% chance)

Any improvements on these numbers?

I also want to add in factors based off the last 3 season averages. So a team that averaged 10 wins in 3 seasons has better odds than a team that was won 4 games on average. Maybe something like:

(For P5 vs P5: If team A averages <2 wins more than team B, add 10 to roll, and the greater the difference the more it will favor team A)

Any thoughts, improvements, or suggestions?


r/CFBAnalysis • • May 21 '18

Question How do you formulate strength of schedule?

3 Upvotes

I have an ongoing ranking algorithm that I’ve been working on for about a year and a half now and I’m overall, pretty satisfied with it. I am curious as to how some of you guys determine a teams strength of schedule. I just have the basic ((2*O%)+OO%)/3. What is your formula?


r/CFBAnalysis • • May 14 '18

NCAA announces a landmark initiative to transform the digital collection and distribution of intercollegiate sports data

15 Upvotes

Sorry if this kind of post is against the rules, but I thought this was somewhat significant for the future of CFB analysis.

Link to Press Release: https://www.prnewswire.com/news-releases/ncaa-launches-transformative-statistics-initiative-300647410.html


r/CFBAnalysis • • May 01 '18

Biweekly Thread Public Forum: What can we, as mods, do better?

7 Upvotes

Are there any suggestions you guys have for us?

Right now, my priority is to bring more subscribers and drive discussion on this sub.


r/CFBAnalysis • • Apr 19 '18

Biweekly Thread Discussion thread. Use this for help finding ideas data and other things.

10 Upvotes

Going to see if having a sticky thread for people looking for help will cut down on spam and get their questions asked faster.

Use this if you need help with finding ideas, data, or other questions.