Pearson chi-squared statistic for contingency tables

ID: pearson-chi-squared-statistic-for-contingency-tables

For observed counts and positive expected counts in a contingency table, the statistic is . Under common category probabilities or statistical independence, estimate by the product of the row and column totals divided by the grand total. With large expected counts, this gives the test statistic for the Pearson chi-squared test of homogeneity or the Pearson chi-squared test of independence, with asymptotic chi-squared distribution on degrees of freedom.

New to topics? Read the docs here!