Chi-square test of homogeneity
Do several groups spread over the categories of a characteristic in the same way? The calculation is exactly the same as for the test of independence. The difference lies in the design: the group sizes are fixed in advance, and each group is sampled separately.
Example: 100 respondents from each of two districts: bike, bus, car inner 30, 40, 30; outer 20, 20, 60. χ² = 18.67, df = 2, p = 0.00009.
Caution: A significant result only shows that the distributions are not the same in all groups, not in which category.