This github repo contains the code for "Analytics, have some humility: a statistical view of fourth-down decision making"
- run
d1_data_acquisition.R
- then run
d2_data_acquisition.R
- then run
d3_data_TeamQualityMetrics_epa0.R
- output
data7b.csv
- run
sim2.R
parallelized on a cluster viarun_sim_2_1_AJ.sh
andrun_sim_2_2_AJ.sh
- then run
sim_2_aggregate_results.R
(optionally on a cluster viarun_sim_2_aggregate_results.sh
)
- models
- tune the XGBoost first-down win probability models in
T2_param_tuning_xgb.R
on a cluster viaT2_run_param_tuning_xgb_WP_AJ.sh
- test the accuracy of the various first-down WP models in
T3_test_wp.R
- tune the baseline coach XGBoost model in
D2_coach_decision_model_tune.R
- bootstrap stability analysis to select
$B=100$ inD4_stability_analysis.R
andD4b_stability_analysis_results.R
- fit
$B=100$ bootstrapped first-down win probability models and the FG, Go, and Punt models inD5_fit_BootWPModels.R
- tune the XGBoost first-down win probability models in
- decision making
- make the fourth-down decision plots (exs. 1 thru 5 in the paper) in
D7_decision_making_makePlots.R
- compare traditional decision making to ours and evaluate coaches in
D8_humility.R
- make the fourth-down decision plots (exs. 1 thru 5 in the paper) in
- run
app.R
for an interactive fourth-down decision making Shiny app!