This gist collects some ipython notebooks to compute baseball prospectus’ CSAA and DRA using retrosheet data. The database queries are in Python and the model fitting in R.