AP® Statistics · Unit 1 · Topic 1.4

Comparing Categorical Displays

Comparing categorical data across groups of different sizes requires converting counts to conditional percentages within each group, not comparing raw bar heights, since the group sizes themselves can mislead you.

A bar chart of raw counts tells you how many people fall into each category, but if two groups have different total sizes, taller bars just mean more people, not a stronger preference. Imagine City has 200 students and Rural has 150. Even if City has more students who pick 'chips' as their favorite snack, that could simply be because City has more students overall. The fix is to convert each group's counts into percentages of that group's own total, called conditional percentages, so each group is judged against its own size.

A side-by-side bar chart puts two groups' bars next to each other for every category, letting you eyeball differences category by category. A segmented bar chart stacks each group's categories into a single bar that sums to 100%, which is better for seeing the full distribution shape and comparing proportions at a glance. To compare city and rural snack choices fairly, find each category's percentage within each group, then build one segmented bar per group. If chips take up 40% of the City bar and 25% of the Rural bar, that is a real difference in preference, independent of how many students are in each group.

This sets up the rest of Unit 1: once you can trust a comparison between groups, you can start asking whether an observed difference is large enough to matter, or whether it is just how the data happened to fall. Segmented bar charts and two-way tables are the same idea in different clothes, and both depend on this same instinct: always compare rates, never raw totals, when group sizes differ.

Key terms

Conditional percentage
A category's count divided by its own group's total, turning raw counts into a fair rate for comparison.
Side-by-side bar chart
A chart placing each group's bars next to each other within every category for direct visual comparison.
Segmented bar chart
A single stacked bar per group where segments show each category's share, summing to 100% of that group.
Marginal distribution
The distribution of one variable alone, ignoring the other, often shown as row or column totals in a table.

Watch it explained

  1. How it worksWalk me through comparing two groups with a side-by-side bar chart and a segmented one.
  2. Worked exampleCompare snack choices for 200 city and 150 rural students using segmented bar charts.
  3. Common mistakeWhy isn't a taller bar in one group evidence that the group prefers that category more?
  4. Going furtherWhat changes when a segmented bar chart switches from counts to percentages?

Check yourself

Your turn1 of 2
Out of 254 people in Group A, 108 say yes. Out of 136 people in Group B, 34 say yes. Find the difference in the percentage saying yes, Group A minus Group B, in percentage points.

End of topic.