The Chi-square test for goodness of fit is a statistical test used to determine whether the observed frequency distribution of a categorical variable matches an expected frequency distribution. This test helps evaluate how well a model fits the observed data by comparing the actual counts to the counts expected under a specific hypothesis.