The Chi-square test acts as a statistical method used to examine the connection between two or more categorical variables. This measures whether there is a significant difference between the observed and expected frequencies in a dataset. The test depends on the concept of chi-square, which shows the sum of squared differences between the observed