This document outlines how to perform a chi-square test of independence using a contingency table. It explains that a contingency table displays the observed frequencies of two variables arranged in rows and columns. Expected frequencies are calculated for each cell assuming independence by multiplying the corresponding row and column totals and dividing by the sample size. A chi-square test can then determine if the observed frequencies differ significantly from the expected frequencies under independence.