Chi-square test of independence (or Fisher’s exact test)
When to use it
It checks whether two categorical variables are associated, using a contingency table of counts.
It is a nonparametric test.
Assumptions
- Both variables are categorical
- Observations are independent