The chi-square test is a non-parametric test that compares the observed frequencies of events to the expected frequencies under the null hypothesis. The test helps determine whether any observed differences between the data sets are due to chance or if they are statistically significant.