Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Statistics / Testing and modelling

Chi-Square Tests

Compare observed counts with expected ones to test fairness, fit and independence.

3 min read · 1 sections · 1 checks

Contents 2 sections
  1. §1Observed versus expected
  2. ?Check yourself

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

χ2=∑(O−E)2E\chi^2 = \sum \frac{(O - E)^2}{E}

Example 1Is the die fair?

60 rolls give counts 5, 8, 9, 8, 10, 20.

  1. Expected: 10 each.

Check yourself

  1. Q1
    Observed counts equal expected counts in every cell. Then χ2=\chi^2 =