This course has been archived. The College Board updated AP Statistics for the 2026–27 school year, and the units and topics changed.
Go to the new AP® Statistics
7m left·0%
Reading Time: 7 min
Last Updated: January 30, 2026
Main Ideas: 5
Reading Time: 7 min
Last Updated: January 30, 2026
Main Ideas: 5

Topic 1.4 Notes – Representing a Categorical Variable with Graphs

Read aloud
You’re taking raw category data and turning it into something visual that shows patterns clearly. Then you learn how to compare groups using those same tools.

1. Bar Graphs for One Categorical Variable

What a bar graph shows

A bar graph displays the distribution of one categorical variable.

Each bar represents a category, and the height (or length) of the bar equals:

  • The frequency (count)
  • Or the relative frequency (proportion or percent)

Key features you’re expected to recognize:

  • Bars are separated by gaps (this is how you know it’s categorical).
  • All bars have equal width.
  • The vertical axis shows counts or proportions.

Here’s a simple example showing students’ favorite school subject.

Bar graph of favorite school subject

You should immediately be able to see that Math has the highest count and History the lowest, just by comparing bar heights.

How to construct a bar graph

When you build one (calculator, software, or by hand), the logic is always:

  1. Identify the categories.
  2. Make a frequency or relative frequency table.
  3. Label axes:
    • Horizontal → categories
    • Vertical → counts or proportions
  4. Use a consistent scale, usually starting at 0.
  5. Draw equal-width bars with correct heights.
  6. Add a clear, contextual title.

On a quiz, missing labels or unclear scale absolutely costs points.

Counts vs. proportions

This matters when comparing groups later.

  • Use counts when you care about number of individuals and group sizes are the same.
  • Use relative frequencies (percents) when:
    • Group sizes differ.
    • You want to emphasize parts of a whole.

Students often compare raw counts from unequal groups. That leads to wrong conclusions.

Common mistakes

  • Using a bar graph for quantitative data (that’s a histogram).
  • Bars touching each other.
  • Y-axis not starting at 0, exaggerating differences.
  • No context in title or axes.

2. Pie Charts and Other Displays of Categorical Data

Pie charts

A pie chart shows how categories make up a whole.

Each slice represents a relative frequency. In this example, the whole is 100 households and each slice shows the percent of households with that type of pet.

Pie chart of pet ownership among 100 households

They work best when:

  • There are few categories.
  • Differences in proportions are clear.
  • You care about percentage of the whole.

They struggle when:

  • There are many tiny slices.
  • Proportions are similar.
  • You need precise comparisons. A bar graph is usually better.

Frequency and relative frequency tables

Before graphing, you often create a table:

CategoryCountPercent
Dogs4545%
Cats3030%
Fish1515%
Other1010%

These help you check that percentages add to 100%. On the AP exam, small arithmetic mistakes here can carry through the whole question.

3. Describing a Distribution of Categorical Data

When you describe a graph, always write in context.

A strong description includes:

  • The population or sample
  • The variable
  • The most common category
  • The least common category
  • Notable differences in proportions

Example phrasing:

Among the surveyed households, the most common type of pet was dogs at about 45%, while fish were least common at about 15%. Dog ownership was substantially more common than any other category.

Avoid:

  • Listing numbers with no context.
  • Claiming cause and effect.
  • Ignoring obvious patterns.

AP readers look for full sentences tied to the real situation, not just “Dogs = highest.”

4. Comparing Multiple Sets of Categorical Data

When comparing groups on the same categorical variable, you’ll use:

  • Side-by-side bar graphs
  • Segmented (stacked) bar graphs
  • Two-way tables

Side-by-side bar graphs

Best for comparing proportions across groups.

In a side-by-side bar graph like the one below, each letter grade (A through F) appears on the horizontal axis, and each cohort has its own colored bar within each grade. That setup lets you compare how the proportions differ across groups for the same category.

Study guide illustration

You look for:

  • Which group has higher or lower proportion in each category.
  • Whether differences are noticeable.

Again, use percents if group sizes differ.

Two-way tables

A two-way (contingency) table shows two categorical variables together.

PassedFailedTotal
Took Prep401050
No Prep302050
Total7030100

To compare groups, compute conditional relative frequencies.

Example:
Among students who took prep, 40/50=80%40/50 = 80\% passed.
Among students who did not, 30/50=60%30/50 = 60\% passed.

If conditional distributions differ, there may be an association between variables. If they’re similar, the variables may be independent.

Students lose points by comparing raw counts instead of conditional percents.

5. Choosing the Right Graph and Avoiding Misleading Displays

Use bar or pie charts only for categorical data.

Do not use them for:

  • Continuous quantitative data
  • Trends over time
  • Relationships between two quantitative variables

Watch for:

  • Truncated axes exaggerating differences.
  • 3D effects distorting area.
  • Comparing groups on different scales.

Always apply the area principle. The visual area must represent the actual data value. If something looks dramatic, check the scale before believing it.

Key Takeaways

Bar graphs are for one categorical variable and must have equal-width, separated bars.
Use relative frequencies when comparing groups of different sizes.
Descriptions must name the variable and population in context.
In two-way tables, compare groups using conditional percents, not raw counts.
If a bar graph’s y-axis does not start at 0, the visual difference may be misleading.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining