Giter Site home page Giter Site logo

cravies / nfl_draft_simulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.67 MB

Monte carlo simulation of 2023 NFL draft based on PFF big board rankings and team needs

C++ 85.79% Makefile 1.32% Python 12.89%
cpp monte-carlo-simulation nfl nfl-draft

nfl_draft_simulator's Introduction

nfl_draft_simulator

Monte carlo simulation of 2023 NFL draft first round based on PFF big board rankings and team needs.

Each player is defined by a struct

// Player struct
struct player {
    string name; // player name
    string pos; // position
    int num; // PFF big board ranking
};

And each team is defined by a struct

// Team struct
// Note that for teams with multiple picks there will be multiple of these in the array
struct team {
    string name;
    // array of csv positional team needs (per PFF)
    // i.e [G,C,WR]
    vector<string> needs;
    // what percentage of the time will the team 
    // reach for a play who plays the position of need
    float reach_prob; 
};

Teams will sometimes (based on probabilities you set with reach_prob) randomly reach for a player at a position of need. Quarterback needy teams will do this way more often. Python file outputs probability distribution of each player landing at each team. Example output for my team (Jaguars) with pick 23

Jaguars_23 :  {'Zay Flowers': 0.348, 'Joey Porter Jr': 0.318, 'Deonte Banks': 0.159, 'Jaxon Smith-Njigba': 0.115, 'Andre Carter II': 0.029, 'Broderick Jones': 0.022, 'Myles Murphy': 0.005, 'Bryan Bresee': 0.004}

nfl_draft_simulator's People

Contributors

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