# Chi-Square Test of a Frequency Distribution

From Q

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

where:

- are the observed values,
- are the expected values,