Skip to content

Mathematics and Statistics · Ch 13 — Bivariate Frequency Distribution and Chi-Square Statistic

The Chi-Square Statistic and Its Interpretation

4

The Chi-Square Statistic and Its Interpretation

Once every cell has an observed frequency OO and an expected-under-independence frequency EE, a single number is needed to summarise how far apart the whole observed table is from what independence would predict. Simply adding the differences O−EO - E is useless — they always cancel to zero, because EE reproduces the same totals as OO. Squaring each difference removes the cancellation, and dividing by EE scales each squared gap relative to how large that cell was expected to be. Adding these up over every cell gives the chi-square statistic.

Note

Chi-Square Statistic

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

the sum running over every cell of the contingency table, where OO is the observed frequency and E=RiCj/NE = R_i C_j / N is the expected frequency of that cell.

The symbol χ\chi is the Greek letter chi (pronounced 'kai'), and χ2\chi^2 is read 'chi-square'. Its value is interpreted by size:

  • χ2=0\chi^2 = 0 occurs only when every OO equals its EE. This is exact agreement with independence, so the two attributes are taken to be independent (unassociated).
  • χ2>0\chi^2 > 0, and the larger it is, the further the observed table lies from independence — that is, the stronger the association between the two attributes. A small positive χ2\chi^2 points to a weak association; a large χ2\chi^2 points to a strong one.

Because χ2\chi^2 is a sum of terms (O−E)2/E(O-E)^2/E each of which is zero or positive, the statistic can never be negative — a negative χ2\chi^2 is always an arithmetic error. Its size also grows with the size of the table (more cells means more non-negative terms added), which is why comparing a χ2\chi^2 value against a formal threshold to decide significance uses the table's degrees of freedom, (r−1)(c−1)(r-1)(c-1) for an r×cr \times c table.

Note

Scope of this chapter (an honest boundary) …

Definition 1Chi-Square Statistic

A single number measuring how far an observed contingency table departs from independence, χ2=∑(O−E)2/E\chi^2 = \sum (O-E)^2 / E summed over all cells; it is always ≥0\ge 0, equals 00 only when the attributes are independent, and grow …

Definition 2Degrees of Freedom

For an r×cr \times c contingency table, the quantity (r−1)(c−1)(r-1)(c-1); it governs how a chi-square value is compared against a threshold in a formal test of significance …