Next section: Assumptions

- Create a table of cell frequencies.

- Compute row and column totals.

- Compute expected cell frequencies using the formula:

where E_{ij}is the expected frequency for the cell in the ith row and the jth column, T_{i}is the total number of subjects in the ith row, T_{j }is the total number of subjects in the jth column, and N is the total number of subjects in the whole table.

- Compute Chi Square using the formula:

- Compute the degrees of freedom using the formula: df =
(R-1)(C-1) where R is the number of rows and C is the number of
columns.

- Use a chi square table to look up the probability value.

Note that the correction for continuity is not used in the chi square test of independence.

Next section: Assumptions