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(okjekj)2ekj

where:

ok are the observed values,
ek= are the expected values,
pPr(χ(s1)2X2)

See also