Jump to content

Free Buffalo Bills Stats Tool - Version 1.0 - Suggestions welcome (Now Active)


Recommended Posts

Posted (edited)

Site is now active.

https://einsteinfootball.com (just registered the domain so not sure if its propagated in all areas yet) 

or http://34.205.139.226/index.html (this is direct to the server so it definitely works)

The site does NOT work on mobile. There is simply too many tools and features that dont work well on small devices. Access it from a desktop or laptop. 

 

---------------------

I am making available to everyone my free Bills statistical application that I built and use throughout the season. The backend is coded in R and runs on a plumber server with a CMD prompt server for the front end. 


For everyone else who wants an easier way, I bought a domain to host it on. I will have it loaded fairly soon. In the meantime, this is how it works:

 

overall.jpg

 

1) Play Finder

This is my favorite feature. You can:

 

  • Load all plays
  • Load only run plays
  • Load only pass plays
  • Load plays that feature a certain player (example: plays only involving Keion Coleman)
  • Load plays that are more than X yards (example: plays that are more than 10 yards in length)
  • Load plays that are less than X yards (example: players that are less than 10 yards in length)
  • Load plays between X and Y yards (example: plays between 8 and 35 yards in length)

 

Then, once those plays are loaded, you can filter them even further.

 

filters.jpg

 

 

The "additional filters" section allows you to drill down into exact situations. For example:

 

  • You can load all plays for a specific game and drive within that game (Game 3, Drive 4).

 

  • You can pull the stats for run plays depending on which run gap they exploited.

 

  • You can filter plays by air-yards.

 

  • You can filter plays to see how the team plays in various temperatures and wind and field types. For example, run plays in 52 degree temperatures and on astroturf.

 

  • You can examine Allen's stats when he gets hit. Or break down offensive performance when in Shotgun vs when Allen drops back.

 

  • Filter to plays between X and Y epa.

 

  • A lot more...

 

Not only that, but it will also show the stats for that particular filter/search.

 

 

ezgif-4-349b3b3d9e.gif

 

For example, if you search for Josh Allen passes in the 4th quarter, and only on plays when he gets hit - you will not only see all those plays listed in the table, but the stats widget will also show you the fully tabulated stats for when Allen gets hit in the 4th quarter (yards, INT’s, TD’s, etc).

 

stats.jpg

 

2) QB to WR connection data

 

Pretty simple. You can select any player who has caught a pass from Josh Allen this season and it will show you Allen's stats when throwing to that receiver. This gives insight into what player is most beneficial for Allen. 

 

Unsurprisingly, Shakir has the (far and away) best connection with Allen on an output basis.  Know whose second? You may never guess. It's Ray Davis. He has caught 14 of his 15 targets and has 2 TD's on those 15 targets.

Valdez-Scantling is on the opposite end of the spectrum.

And dont even get me started on what this tool has shown for Gabe Davis over the past few years.

ezgif-4-993a1d24fc.gif

 

 

3) Bills AI Chat

 

You can chat with a Bills artificial intelligence and ask historical questions. I'm making a few tweaks to this, as it tends to decide its own tiebreaker when the answers are close. For example, if the GIF below, the answer really should be AJ Klein with 5. But it awarded the honor to Hughes with 4.5 in some sort of small-differential tie-breaker scenario. 

ezgif-4-3c7a066e2b.gif

 

4) Lots of Charts

 

You can generate a lot of different charts. Some examples:

 

  • Where the Bills rank against other terms in EPA (offense/defense).
  • Quarterback EPA per play across the NFL
  • Win to INT plots
  • Win to QB rating plots
  • Plotting of teams against each per division
  • A lot more

 

This one requires patience. These are not pre-generated charts. When you click one, it generates in real-time, pulling NFL data, doing the calculations and creating the chart. A chart can take up to 3 seconds to load.

ezgif-4-5f281bf5de.gif

 

 

5) Suggestions/Requests
 

Its going to take a few days to get everything onto a hosted server. I need to change lots of little bits of code that run on my local computer to running on a host. In the meantime, if you have any suggestions or requests to make it better, drop them in a reply. I would like to add vector information (speed/direction) but have not found an API to pull this data. Next Gen stats doesn't seem to have an API.

 

 

Edited by Einstein
  • Like (+1) 7
  • Awesome! (+1) 22
  • Thank you (+1) 5
Posted

Total tease.  You can't post something like this before you have the hosting/links live!

 

Looks awesome though, can't wait.  What are your data sources?  I wasn't aware of some of this data being publicly available.

  • Like (+1) 1
  • Haha (+1) 1
Posted
Just now, Rew said:

Total tease.  You can't post something like this before you have the hosting/links live!


Haha I totally get that. I mainly wanted to ask for suggestions for any additional features before I get it all transferred.
 

Just now, Rew said:

Looks awesome though, can't wait.  What are your data sources?  I wasn't aware of some of this data being publicly available.


There is an NFL repository for data called NFLverse. Here check it out! https://github.com/nflverse/nflverse-pbp

ESPN also used to have an API. They pulled it though.

  • Awesome! (+1) 1
  • Thank you (+1) 2
Posted (edited)

Very cool!

 

As a software engineer I have dabbled with R in a few projects but never have really used it for anything at work.

Edited by Big Turk
  • Like (+1) 1
Posted
10 hours ago, Einstein said:

I am making available to everyone my free Bills statistical application that I built and use throughout the season. The backend is coded in R and runs on a plumber server with a CMD prompt server for the front end. 


For everyone else who wants an easier way, I bought a domain to host it on. I will have it loaded fairly soon. In the meantime, this is how it works:

 

overall.jpg

 

1) Play Finder

This is my favorite feature. You can:

 

  • Load all plays
  • Load only run plays
  • Load only pass plays
  • Load plays that feature a certain player (example: plays only involving Keion Coleman)
  • Load plays that are more than X yards (example: plays that are more than 10 yards in length)
  • Load plays that are less than X yards (example: players that are less than 10 yards in length)
  • Load plays between X and Y yards (example: plays between 8 and 35 yards in length)

 

Then, once those plays are loaded, you can filter them even further.

 

filters.jpg

 

 

The "additional filters" section allows you to drill down into exact situations. For example:

 

  • You can load all plays for a specific game and drive within that game (Game 3, Drive 4).

 

  • You can pull the stats for run plays depending on which run gap they exploited.

 

  • You can filter plays by air-yards.

 

  • You can filter plays to see how the team plays in various temperatures and wind and field types. For example, run plays in 52 degree temperatures and on astroturf.

 

  • You can examine Allen's stats when he gets hit. Or break down offensive performance when in Shotgun vs when Allen drops back.

 

  • Filter to plays between X and Y epa.

 

  • A lot more...

 

Not only that, but it will also show the stats for that particular filter/search.

 

 

ezgif-4-349b3b3d9e.gif

 

For example, if you search for Josh Allen passes in the 4th quarter, and only on plays when he gets hit - you will not only see all those plays listed in the table, but the stats widget will also show you the fully tabulated stats for when Allen gets hit in the 4th quarter (yards, INT’s, TD’s, etc).

 

stats.jpg

 

2) QB to WR connection data

 

Pretty simple. You can select any player who has caught a pass from Josh Allen this season and it will show you Allen's stats when throwing to that receiver. This gives insight into what player is most beneficial for Allen. 

 

Unsurprisingly, Shakir has the (far and away) best connection with Allen on an output basis.  Know whose second? You may never guess. It's Ray Davis. He has caught 14 of his 15 targets and has 2 TD's on those 15 targets.

Valdez-Scantling is on the opposite end of the spectrum.

And dont even get me started on what this tool has shown for Gabe Davis over the past few years.

ezgif-4-993a1d24fc.gif

 

 

3) Bills AI Chat

 

You can chat with a Bills artificial intelligence and ask historical questions. I'm making a few tweaks to this, as it tends to decide its own tiebreaker when the answers are close. For example, if the GIF below, the answer really should be AJ Klein with 5. But it awarded the honor to Hughes with 4.5 in some sort of small-differential tie-breaker scenario. 

ezgif-4-3c7a066e2b.gif

 

4) Lots of Charts

 

You can generate a lot of different charts. Some examples:

 

  • Where the Bills rank against other terms in EPA (offense/defense).
  • Quarterback EPA per play across the NFL
  • Win to INT plots
  • Win to QB rating plots
  • Plotting of teams against each per division
  • A lot more

 

This one requires patience. These are not pre-generated charts. When you click one, it generates in real-time, pulling NFL data, doing the calculations and creating the chart. A chart can take up to 3 seconds to load.

ezgif-4-5f281bf5de.gif

 

 

5) Suggestions/Requests
 

Its going to take a few days to get everything onto a hosted server. I need to change lots of little bits of code that run on my local computer to running on a host. In the meantime, if you have any suggestions or requests to make it better, drop them in a reply. I would like to add vector information (speed/direction) but have not found an API to pull this data. Next Gen stats doesn't seem to have an API.

 

 

 

Wow.

 

I don't really know what to say... thank you and I'm very impressed with your work.

 

👍

 

  • Agree 1
Posted
20 minutes ago, HardyBoy said:

Are you using shinyR for the interface?

 

Also, really freaking cool!!

 

Nope. Shiny is great but a bit less flexible. I prefer to have a seperate front-end that I can customize to my hearts content with javascript and HTML.

 

31 minutes ago, Charles Romes said:

I’d roll out a simplified version available as an option.  Seems like feature overload and too much of a time investment

 

I can add a “simplify” button that will change the page (remove features). But what are you thinking as far as simplified options?

  • Thank you (+1) 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...