Skip to content

A Quantitative Approach to DraftKings Daily Fantasy Sports

Notifications You must be signed in to change notification settings

camandrewz/DraftKingsMoneyball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages