camandrewz / DraftKingsMoneyball

A Quantitative Approach to DraftKings Daily Fantasy Sports

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DraftKingsMoneyball

A Quantitative Approach to DraftKings Daily Fantasy Sports

Approach:

  • Calculate the expected values of a variety of individual player statistics using their last 10 games. (Pts, Steals, Assists, Rebounds, etc.)
  • Brute force the best 250 lineups that maximize projected fantasy points while remaining under the $50,000 DraftKings budget.
  • Run a Monte Carlo simulation by randomly selected individual player statistics from the normal distribution of their past performance in each category.
  • Display the best performing teams after the simulation ends.

How to Use: (Currently only works for NBA contests)

  • Download the CSV of your respective contest on DraftKings (Should be an "Export to CSV" button on the page to draft your team)
  • Place the CSV file in the "Basketball\data" folder.
  • Input the path of the file at the top of the "showdown.py" file where the previous path is.
  • Run the script and wait for it to output player projections as well as the most optimized lineups.
  • Enjoy!

About

A Quantitative Approach to DraftKings Daily Fantasy Sports


Languages

Language:Python 100.0%