The chi-square test is a statistical hypothesis testing method used to determine if observed frequencies in categories match expected frequencies, serving to assess relationships between variables. Two primary types are the chi-square goodness of fit test for single-variable analysis and the chi-square test of independence for examining relationships between two categorical variables. Each test has specific applications, hypotheses, and required data structures for valid analysis.