Test statistic

The test statistic is defined as:

X2=mi=1(ni,obsni,exp)2ni,exp

It follows a Chi-square distribution under the null hypothesis, i.e. under CSR.

X2CSRχ2m1