9 Chi-square testing and more effect size testing

 

This chapter covers

  • Running and interpreting statistical tests of significance on categorical data
  • Running and interpreting effect size tests on categorical data
  • Computing permutations and differentiating permutations from combinations
  • Creating facet plots, balloon plots, and mosaic plots

Rest was once thought to be the antithesis of work and activity. Today, it’s considered a critical enabler for achieving the highest levels of productivity and performance. Our purpose here is to explore—first by visualizing and then by statistical testing—the effect that rest, defined herein as the number of days off prior to a regular season game, has on wins and losses in the NBA.

9.1 Loading packages

9.2 Importing data

9.3 Wrangling data

9.4 Computing permutations

9.5 Visualizing results

9.5.1 Creating a data source

9.5.2 Visualizing the results

9.5.3 Conclusions

9.6 Statistical test of significance

9.6.1 Creating a contingency table and a balloon plot

9.6.2 Running a chi-square test

9.6.3 Creating a mosaic plot