Chi-squared test
= Chi-squared test
{wiki}
A <chi-squared test> rejects a null hypothesis for a statistic whose null distribution is a chi-squared law, exactly or asymptotically. Pearson tests compare observed and expected counts; both goodness-of-fit and <chi-squared tests of independence> are instances.