Introduction
The Chi-squared test helps us check if two groups are related or independent by comparing counts in categories.
You want to see if a new medicine affects recovery rates differently between men and women.
You want to check if people prefer different ice cream flavors based on their age group.
You want to find out if a survey response depends on the city where people live.