The Pearson chi-squared test compares observed categorical counts with null expected counts using the displayed statistic. Its applications include Pearson chi-squared goodness-of-fit test for specified probabilities and Pearson chi-squared test of independence for contingency tables; the fitted restrictions determine the limiting degrees of freedom.
For observed cell counts and null expected counts , the statistic isWith specified null cell probabilities and sufficiently large expected counts, its null limit is .
For independent groups each containing independent Bernoulli trials with common probability , the group count has a binomial distribution. If groups have count , the maximum-likelihood estimate is . Form the Pearson chi-squared statistic using . With all categories retained, an interior true parameter, and sufficiently large expected counts, its null limit is a chi-squared distribution with statistical degrees of freedom: one degree is removed by the fixed total and another by fitting . Small expected counts require care with this approximation. If categories are pooled, the fitted parameter and calibration should correspond to the pooled statistical model; simply pooling a statistic after fitting the unpooled model does not automatically give the usual chi-squared limit.
For an by contingency table, the statistichas asymptotically a chi-squared distribution with degrees of freedom under independence.
Articles by others on the same topic
There are currently no matching articles.