Chi-squared test of independence (source code)

= Chi-squared test of independence

= Chi-squared tests of independence
{synonym}

For an $r$ by $c$ contingency table, Pearson's sum of squared observed-minus-fitted counts divided by fitted counts is asymptotically $\chi^2_{(r-1)(c-1)}$ under independence.