All sections
§11.3Reference material onlyIn class Wed, Dec 2

Test of Independence

Introductory Statistics 2e, Chapter 11, p. 574

Reference notes. A concise summary for orientation — not yet a full NoviLearn lesson with practice and mastery tracking.

A test of independence uses a contingency table from one sample to decide whether two categorical variables are related.

Key ideas

  • H0H_0H0​: the variables are independent; HaH_aHa​: they are dependent.
  • Expected count for a cell =(row total)(column total)grand total= \frac{(\text{row total})(\text{column total})}{\text{grand total}}=grand total(row total)(column total)​.
  • df=(rows−1)(columns−1)df = (\text{rows} - 1)(\text{columns} - 1)df=(rows−1)(columns−1); statistic ∑(O−E)2E\sum \frac{(O-E)^2}{E}∑E(O−E)2​; right-tailed.
Chi-square test statistic (counts)
χ2=∑(O−E)2E\chi^2 = \sum \frac{(O - E)^2}{E}χ2=∑E(O−E)2​
Expected count in a contingency table
E=(row total)(column total)grand total,df=(r−1)(c−1)E = \frac{(\text{row total})(\text{column total})}{\text{grand total}}, \qquad df = (r-1)(c-1)E=grand total(row total)(column total)​,df=(r−1)(c−1)

Textbook: OpenStax Introductory Statistics 2e (CC BY-NC-SA 4.0). Access for free at openstax.org.