The chi-square test statistic is a statistical measure used to assess the goodness of fit between observed and expected frequencies in a contingency table. It is a fundamental tool in hypothesis testing, particularly for evaluating the independence of two categorical variables.