What are the prerequisites that need to be fulfilled before conducting a chi-square test (Bivariate analysis)? For instance, before having a correlation matrix, we should first ensure linearity. What about the chi-square test? Are there any papers or resources that can be referenced for guidance on these prerequisites?
The chi-square test is a non-parametric statistical test that is used to determine if there is a significant association between two categorical variables in a sample.
Categorical Variables: Both variables should be categorical
Independence: The observations should be independent of each other.
Sample Size: The sample size should be sufficiently large.
Mutually Exclusive Categories: Categories must be mutually exclusive.