# Chi-Square Test for Compatibility of K Counts

From Q

Tests the null hypothesis that all categories of a categorical variable, , are the same size. The test statistic is

where:

- ,
- is the Calibrated Weight of the th of observations,

From Q

Tests the null hypothesis that all categories of a categorical variable, , are the same size. The test statistic is

where:

- ,
- is the Calibrated Weight of the th of observations,