The Chi-square test is a statistical tool used to analyze the correlation between two or more categorical variables. This determines whether there is a substantial difference between the observed and expected frequencies in a dataset. The test depends on the concept of chi-square, which represents the sum of squared differences between the observed