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 independent strata, each containing an contingency table, test independence of the two table variables within every stratum. Under adequate expected counts and the usual multinomial distribution sampling assumptions, each stratum's Pearson chi-squared statistic has asymptotic chi-squared distribution with statistical degrees of freedom. Their sum has asymptotic chi-squared distribution with statistical degrees of freedom, by the additivity of independent chi-squared distributions. This is a test of conditional independence, not of equality of a common effect across strata; the latter needs an interaction contrast or another specified homogeneity test.
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.