A better test statistic

The raw sum of squares on the previous page is a poor way to assess whether a contingency table has been sampled from a population with independence. We now describe a better test statistic.

Simulation

Shape of the chi-squared distribution