Statistics / Testing and modelling
Chi-Square Tests
Compare observed counts with expected ones to test fairness, fit and independence.
Contents 2 sections
By the end you can
- Compute the chi-square statistic
- Test goodness of fit
- Test independence in a two-way table
Helps to know: Hypothesis Tests and p-values
§1Observed versus expected
Example 1Is the die fair?
60 rolls give counts 5, 8, 9, 8, 10, 20.
- Expected: 10 each.
Check yourself
- Q1Observed counts equal expected counts in every cell. Then