Code Monkey home page Code Monkey logo

nfl_gamba_and_power_rankings's Introduction

NFL_Gamba_And_Power_Rankings

Elo Based Rankings System for the NFL. Risk Aware Wager Algorithm.

The Model

This project creates Elo power rankings system for every team in the NFL using data dating back to 1970. The algorithm scans odds from Vegas (Currently read of spreadsheet format) and compares them to the elo ranking’s predictions. The use of 'odds' is neccessary for a more complete picture of the accuracy of the model. For example, predicting a NFL team to beat a high school team is hardly a feat, predictions are most valuable when the outcome is unclear. This model factors in the NFL Draft by regressing teams towords the mean after every season proportionaly to their standings in order to mimick the advantage of early draft picks. The final weights for the model where found by regressive search through the Elo Model's learning parameters (MAX_GAIN, SEASON_ADJ, DELTA) as well as optimizing the betting model's variables (mu and max_edge). This search was accelerated by the use of Numba.

Results

This model demonstrates predictive capabilities in a backtest from the 2020 season, however the availbility and changing nature of sports betting odds limits curretn back testing capabilities. This model also allows us to quantify team performance over their existence and visualize it, either as they compare to the rest of the league or relative to themself in the past.

Elo Insights

20 Years Model's Teams Visualized

image

New York Jets Isolated

image

Betting Performance

Stats, season starts with $1

Screenshot (948)

Profit by Time

image

Distribution of Wins and Loses

image

Optimization Search Snapshots

3D plot

image

2D Slice

image

Areas for Further Development

This project uses webscraping for data gathering for the Elo Model, however there has not yet been an implmentation for on deman historical betting data. Another constant impediement for accurate results is injury in the NFL as the model remains oblivoious to these crucial changes within teams. Furthermore there are two main shortcomings of an Elo approach:

1. Elo is Score Indiscriminant

This means that the Elo model cannot differentiate between a blowout win and a narrow victory: each are weighed equally.

2. Teams Consist of Many Players

The elo ranking applies to the team as a whole. This makes it impossible to account for player transfers and trades as well as injuries as the indivdual impact of the player is not known.

Looking Ahead

In the future I will add web-scraping for adding betting data. This will allow me to perform backtesting across a wider range of years. Additionaly I plan to innovate on a more inclusive multivariable model using Trust Regions or attaching an indivdualised score to each active player on an NFL team. This will allow me more accurately asses the impact of injuries, trades, and other line-up changes.

nfl_gamba_and_power_rankings's People

Contributors

kyrylo-bakumenko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.