Zahra B. answered 08/07/24
Associate Professor of Biostatistics with 10+ years of Experience
Chi-square test is the best solution for this problem. However, this test needs large sample size in each cell. So if equal or less than 20% of cells has expected count less than 5, you can use Chi-square test, if the percentage is greater than 20%, the sample size is low and you can use Fisher exact test. The percentage of cells is automatically calculated by statistical software and you do not need to manually calculate it.