A chi-squared test is a statistical test used to determine if there is a significant difference between the observed frequencies and the expected frequencies in a contingency table. It is used to test hypotheses about categorical variables.