Code for Hypothesis Testing
Python notebooks for all the computational examples about Hypothesis Testing from Chapter 10 of the book. See here for the full code repository.
- Die rolls. Null hypothesis, test statistic, p value, parametric testing, power function
- Antetokounmpo’s free throws. Null hypothesis, test statistic, p value, two-sample test, z test, one-tailed test, two-tailed test, parametric testing, power function, permutation test, nonparametric testing
- Burger prices. Permutation test, nonparametric testing, p value
- Tom Brady and hurricanes. Permutation test, nonparametric testing
- Comparing school grades. Permutation test, nonparametric testing, median
- Clutch three-point shooting. Multiple testing, Bonferroni’s correction, p value
- Evaluating NBA players. Multiple testing, Bonferroni’s correction, p value, permutation test, average treatment effect
- Practical significance vs. statistical significance.
- P-hacking. p-hacking, publication bias