Calculate a chi-square statistic comparing observed values against expected values.
Calculate a chi-square statistic comparing observed values against expected values.
For each category, the squared difference between what you actually observed and what you expected is divided by the expected value, and all of those are added together — the further your observed data strays from what was expected, the larger the resulting chi-square value.