Chi-square test of independence
Are two categorical characteristics related in a sample? The test compares the observed frequencies with those expected under independence. The larger the deviations, the larger χ².
Example: Expected per row: 25, 30 and 45. χ² = 18.67 with (2 - 1)(3 - 1) = 2 degrees of freedom, p = 0.00009.
Caution: The test shows whether an association can be detected, not how strong it is; a measure such as Cramér's V does that. If many expected frequencies are small (below 5 is often cited), the approximation is inaccurate.