8000 GitHub - zachmayer/kaggleNCAA: Simulate the NCAA tournament based on a kaggle-format bracket (with predictions for every possible matchup)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simulate the NCAA tournament based on a kaggle-format bracket (with predictions for every possible matchup)

License

Notifications You must be signed in to change notification settings

zachmayer/kaggleNCAA

Repository files navigation

Travis-CI Build Status Coverage Status

Kaggle NCAA Bracket Simulator

Simulate the NCAA tournament based on a kaggle-format bracket (with predictions for every possible matchup).

First, re-install the package:

devtools::install_github('zachmayer/kaggleNCAA')

Now load the tournment from a csv

seed_benchmark_men.csv is a simple seed-based benchmark I made. Turn it into a bracket with 4 functions:

  • parseBracket to load the data from a .csv
  • simTourney to simulate the tourney (you can also use walkTourney). Use at least 1000 simulations (more is better). One day I will parallelize this =D
  • extractBracket to extract a bracket from the simulation results
  • printableBracket to actually print the bracket

(Load my data with data(sample_submission_men, package='kaggleNCAA') if you want to just use the seeds)

set.seed(1)
library('kaggleNCAA')
dat <- parseBracket('seed_benchmark_men.csv', w=0)  # w=0 for men
sim <- simTourney(dat, 100, progress=TRUE, w=0)  # w=0 for men
bracket <- extractBracket(sim)
printableBracket(bracket)
#> assuming women = 0

If simulation's not your thing (e.g. your predicted probabilities are transitive), you can also "walk" forward through the tournament, which is much faster:

bracket <- walkTourney(dat)
printableBracket(bracket)
#> assuming women = 0

Note in this case that the probabilities associated with the team making it to a given round will be incorrect

About

Simulate the NCAA tournament based on a kaggle-format bracket (with predictions for every possible matchup)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0