Chi-Square Test of a Frequency Distribution

From Q
Jump to navigation Jump to search

Tests the null hypothesis that the observed values of a categorical variable diff from the expected values. The test statistic is

X2=∑k=1s(okj−ekj)2ekj

where:

ok are the observed values,
ek= are the expected values,
p≈Pr⁡(χ(s−1)2≥X2)

See also