This document introduces two nonparametric hypothesis tests using the chi-square statistic: the chi-square test for goodness of fit and the chi-square test for independence. These tests do not require assumptions about population parameters. The chi-square test for goodness of fit uses frequency data to test hypotheses about the shape or proportions of a population. The chi-square test for independence can test hypotheses about the relationship between two variables or differences between proportions of two or more populations. Both tests calculate a chi-square statistic to measure discrepancy between expected and observed frequencies under the null hypothesis.
Related topics: