# Graphical Representations for One Categorical Variable

> AP Statistics · AP Statistics 2024-2026 Curriculum
> Source: https://www.owlsprep.com/study/ap-statistics-u10-graphical-representations-for-one-categorical/

This module covers construction, interpretation, and validation of standard graphical displays for single categorical variables, aligned to AP exam free-response and multiple-choice requirements.

**Prerequisites:** [Categorical vs quantitative variable definitions](https://www.owlsprep.com/study/ap-statistics-u10-categorical-vs-quantitative-variables/); [Frequency and relative frequency calculation](https://www.owlsprep.com/study/ap-statistics-u10-frequency-distributions/)

## Learning objectives

- Identify appropriate graphical displays for single categorical data sets
- Construct and interpret bar charts, pie charts, and segmented bar graphs
- Compare relative frequency distributions across categorical groups
- Recognize and avoid misleading graphical practices for categorical data

## Bar Charts for Categorical Data

Bar charts are the most flexible and widely accepted graphical display for single categorical variables. The x-axis lists distinct categories, and the y-axis maps directly to count, frequency, or relative frequency values. Gaps between adjacent bars explicitly signal that the categories are discrete and not ordered along a continuous scale.

**Frequency Bar Chart** — Bar chart where the height of each bar equals the raw number of observations in that category

*Example:* A chart showing 120 students selecting math as their favorite subject, 90 selecting biology, etc.

**Worked example:** Construct a frequency bar chart for the following student major preference data: STEM (142), Humanities (98), Fine Arts (56), Undecided (74)

1. Step 1: List all 4 distinct categories on the x-axis, spaced evenly with gaps between each label
2. Step 2: Set the y-axis range from 0 to 150, with tick marks every 20 units to avoid distorting heights
3. Step 3: Draw each bar with height equal to the category count: 142 for STEM, 98 for Humanities, 56 for Fine Arts, 74 for Undecided
4. Step 4: Add clear axis labels: x-axis = "Major Preference", y-axis = "Number of Students"

**Check your understanding**

Test your understanding of bar chart rules

1. What is the minimum number of categories required to make a valid bar chart?

   - 2
   - 3
   - 1
   - 5

   *Why:* A single bar provides no comparative information, so you need at least 2 distinct categories for a meaningful display.

> **Exam tip:** AP graders will deduct points if bars are not separated by gaps, as unbroken bars imply a continuous quantitative scale

## Pie Charts and Their Limitations

Pie charts represent each category as a sector of a full 360-degree circle, where the sector angle is proportional to the relative frequency of that category. While intuitive for showing part-to-whole relationships, they have strict use constraints that are frequently tested on the AP exam.

$$\text{Sector angle for category } i = \frac{f_i}{n} \times 360^\circ$$

**Worked example:** Calculate the sector angle for the STEM category from the earlier major preference data, where total students n=370

1. Step 1: Identify the frequency of STEM students: f_i = 142
2. Step 2: Compute the relative frequency: 142 / 370 ≈ 0.384
3. Step 3: Multiply by 360 degrees: 0.384 × 360 ≈ 138 degrees

> **Pie Chart Warning**
>
> Never use a pie chart if you have an "other" category that makes up more than 15% of total observations, as it hides meaningful variation.

> **Exam tip:** You can only use a pie chart if your data set includes every possible category that sums to 100% of the total observations

## Segmented Bar Graphs for Relative Frequency

A 100% segmented bar graph uses a single bar of fixed total height (or length) to represent the full 100% of observations, divided into colored segments corresponding to the relative frequency of each category. Unlike pie charts, you can place multiple segmented bars side by side to compare distributions across groups.

**Worked example:** Create a segmented bar graph to compare major preferences for first-year vs second-year students, where first-year relative frequencies are 40% STEM, 25% Humanities, 20% Fine Arts, 15% Undecided, and second-year are 45% STEM, 30% Humanities, 15% Fine Arts, 10% Undecided

1. Step 1: Draw two adjacent bars of equal total height, labeled "First-Year" and "Second-Year" on the x-axis
2. Step 2: Mark the y-axis from 0% to 100% with 20% interval ticks
3. Step 3: For the first bar, draw segment boundaries at 40%, 65%, 85%, and 100% to separate the four categories
4. Step 4: Repeat for the second bar, drawing boundaries at 45%, 75%, 90%, and 100%
5. Step 5: Add a consistent color legend for all four major categories

**Exam command terms**

AP exam questions use specific command terms for categorical graphs:

- **Describe the distribution** — For categorical data, you only need to name the modal category and note any outliers (categories with very low frequency) *(Example response: The modal major preference for first-years is STEM, and Fine Arts is the least common.)*

> **Exam tip:** Segmented bar graphs are the preferred display for comparing two or more categorical distributions of different sample sizes

## Identifying Misleading Categorical Graphs

The AP exam frequently includes multiple-choice and free-response questions asking you to identify flaws in published categorical graphs. Common misleading practices include truncated y-axes on bar charts, 3D pie charts that distort sector area, and missing category labels.

**Worked example:** Identify the flaw in a bar chart showing student major preferences where the y-axis starts at 50 instead of 0, with bars of heights 142, 98, 56, 74

1. Step 1: Compare the apparent height of the STEM bar (142) to the Fine Arts bar (56)
2. Step 2: The truncated y-axis makes the STEM bar appear ~5 times taller than the Fine Arts bar, when the actual ratio of counts is only ~2.5:1
3. Step 3: The correct fix is to reset the y-axis minimum to 0, so bar heights are proportional to raw frequencies

## Common pitfalls

- **Wrong:** Drawing bar charts with no gaps between adjacent bars
  - Why it fails: Unbroken bars signal a continuous quantitative variable to the viewer, which is incorrect for discrete categorical data
  - Correct: Add uniform gaps of 10-15% of bar width between every pair of bars
- **Wrong:** Using a pie chart for data that does not sum to 100% of all observations
  - Why it fails: Pie charts are designed exclusively to show part-to-whole relationships for a complete set of categories
  - Correct: Use a bar chart instead if you are only plotting a subset of all possible categories
- **Wrong:** Using unequal bar widths to make a category appear more important
  - Why it fails: Viewers intuitively judge the area of bars, not just height, so wider bars are perceived as larger than their actual frequency
  - Correct: All bars in a single chart must have identical width, only height maps to frequency values
- **Wrong:** Starting the y-axis of a bar chart at a value greater than 0
  - Why it fails: This distorts the relative height of bars and exaggerates differences between categories
  - Correct: Always set the y-axis minimum to 0 for frequency or relative frequency bar charts
- **Wrong:** Using a 3D pie chart for categorical data
  - Why it fails: Perspective distortion makes sectors closer to the viewer appear larger than their true proportional area
  - Correct: Use a standard 2D pie chart or a bar chart for clearer, unbiased comparison

## Cheatsheet

| Graph Type | Best Use Case | Key Rule | AP Exam Approved |
| --- | --- | --- | --- |
| Frequency Bar Chart | Compare raw counts across categories | Bars separated by gaps, y-axis starts at 0 | Yes |
| Relative Frequency Bar Chart | Compare proportions across categories | Y-axis scaled 0 to 1 or 0% to 100% | Yes |
| Pie Chart | Show part-to-whole relationship for full category set | All categories sum to 100% | Only if justified |
| 100% Segmented Bar Graph | Compare distributions across 2+ groups | Total height fixed at 100% for all bars | Yes |

## What's next

Mastering these categorical graphical representations builds the foundational skill of selecting appropriate displays for different data types, which you will extend to quantitative variable graphs like histograms and boxplots next. You will also apply these interpretation skills when analyzing two-way tables for categorical association, a top 5 highest-weighted topic on the AP Statistics exam. These concepts also appear regularly in the investigative task, where you will be asked to justify your choice of display for a given data set to earn complete communication points.

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/ap-statistics-u10-graphical-representations-for-one-categorical/
