Giter Club home page Giter Club logo

fantasy-football's Introduction

This is a project which uses gamma distributions to model the expected draft order in a Fantasy Football draft for the 2017 NFL season (however by changing the data files this can be used for any normal style draft). The gamma distributions are created from the mean (i.e. average draft pick) and standard deviation of when a player is picked, in order to compute the likelihood a player is picked after x amount of rounds(i.e. CDF), this data can be found at https://fantasyfootballcalculator.com/adp.

Information about gamma distribution: (alpha or shape = mean/standard deviation) (beta or scale = standard deviation)

Based on the alpha and beta values this gamma distribution is actually a Erlang distribution (see wikipedia.org/wiki/Erlang_distribution). An Erlang distribution is used to compute waiting times between k occurrences of an event this is very similar to how a player is picked in a draft, so this seemed like the best distribution to use to model the data.

From this the program calculates the expected number of positions that will be drafted in the next t picks, where t is the number of picks the current player has till their next pick. After computing this data the program determines which position is best to pick by looking at the difference in projected points, from the top player in that position vs the expected top player after t picks (projected points can be found at http://games.espn.com/ffl/tools/projections?). After determining the best position to pick from the program chooses the highest projected player in that position.

To run the project from an IDE download project in an IDE and run Fantasy.java in the src file.

To run the project with jar file download FantasyFootball.jar and at command prompt use "java -cp FantasyFootball.jar Fantasy"

After running the project, you'll be prompted to input information about you league. Once you do this it will give the best option for which player to choose (note you don't have to put what order you are in, in the draft it will automatically output the best option during every turn). Keep track of the players chosen by typing their names in the command prompt (upper case, period, and apostrophes don't matter), once its your turn just pick the player most recently outputted. Also defensive names are as follows "(city) defense", however if a city has multiple teams the format is "(city abbreviation i.e. NY or LA) (team name) defense"

fantasy-football's People

Contributors

dbondi 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.