---
title: "Height compares. Angle guesses. | FiveStudy"
description: "A campus coffee bar already has Monday’s drink orders in a table. The bar chart and the pie chart show those same counts. Height is the comparison the eye can trust. Angle is the one it guesses."
url: https://fivestudy.com/guides/apstats-1-4-categorical-graphs
---

[AP Statistics](https://fivestudy.com/ap-statistics) · Study guide

# Height compares. Angle guesses.

[Figure: FiveStudy]

FiveStudy

AP® Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data

AP® Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data

# Graphs for *One Categorical* Variable

How to draw and read bar charts and pie charts, why the axis must start at zero, how to back up a claim with a graph, and how to compare two groups on the same categorical variable.

1. Bar charts 2. Counts or proportions 3. Pie charts 4. Claims from a graph 5. Comparing groups 6. Choosing a graph

The idea in one paragraph

A graph of a categorical variable shows how the observational units split among the categories. A **bar chart** shows each category as a bar whose height is a count or a proportion. A **pie chart** shows each category as a slice of one whole circle. Bars are easier to compare by eye, so they are the safer choice, especially when you compare groups.

## 1 Bar charts

A survey asked 400 students at one high school which kind of app they use most. The answers form a categorical variable with five categories.

| Most-used kind of app | Count | Relative frequency |
| --- | --- | --- |
| Video | 148 | 0.37 |
| Messaging | 104 | 0.26 |
| Games | 72 | 0.18 |
| Music | 44 | 0.11 |
| Other | 32 | 0.08 |
| **Total** | **400** | **1.00** |

A **bar chart**, also called a bar graph, shows the frequencies (counts) or relative frequencies (proportions) for the categories of one categorical variable. Each bar stands for one category, and its height (or length, if the bars run sideways) is the frequency or relative frequency of that category.

**Figure 1.** Each bar stands for one category, and its height is the number of students in that category. The bars are ordered from tallest to shortest here, which makes the ranking easy to read; any order is allowed for categories.

Three details keep a bar chart honest. All bars have the same width, so only height carries information. There are gaps between the bars, because the categories are separate groups and not points on a number line. And the count axis starts at zero, because the reader compares lengths.

Common Mistake 1 · Drawing bars that touch

Bars that touch suggest the categories sit side by side on a number line, as they do in a histogram of a quantitative variable. “Video” and “Messaging” are not next to each other in any numerical sense. Leave gaps between the bars of a bar chart.

## 2 Counts or proportions?

A bar chart can use either frequencies or relative frequencies. For one group, the two charts look the same. Only the numbers on the vertical axis change.

**Figure 2.** Dividing every count by 400 changes only the numbers on the vertical axis. The bars keep the same heights relative to each other. Use relative frequencies when you want shares, or when you will compare groups of different sizes.

Use counts when the actual numbers matter, such as how many lunches to order. Use relative frequencies when you care about shares, or when you plan to compare groups that have different totals.

Worked Example 1 Make the chart

### From table to bar chart

At a neighborhood animal clinic, the main pet of 160 visiting families was recorded: dog 72, cat 48, small mammal 20, bird 12, fish 8. Describe how to draw a relative frequency bar chart.

1. 1Find each relative frequency by dividing by 160: dog \(72 \div 160 = 0.45\), cat \(0.30\), small mammal \(0.125\), bird \(0.075\), fish \(0.05\). Check: they add to 1.
2. 2Put the categories along the horizontal axis, one bar each, with equal widths and equal gaps.
3. 3Label the vertical axis “Relative frequency,” starting at 0 and going a little past the largest value, say 0 to 0.50.
4. 4Draw each bar up to its relative frequency, and give the chart a title that says who and what: “Main pet of 160 clinic families.”

**Answer:** Five separated bars with heights 0.45, 0.30, 0.125, 0.075 and 0.05 on an axis from 0 to 0.50. Dog is the most common main pet, close to half of these families.

## 3 Pie charts

A **pie chart** also displays frequencies or relative frequencies for categorical data. Each slice is one category. The area of a slice, as a fraction of the whole circle, equals the relative frequency of that category, so the slices together make up the whole: 1, or 100%.

**Figure 3.** Each slice’s share of the circle equals the category’s relative frequency. Video is 0.37 of the students, so its slice is 0.37 of the circle: 0.37 × 360° = 133.2°. The slices always add to the whole circle.

| Category | Relative frequency | Slice angle |
| --- | --- | --- |
| Video | 0.37 | \(0.37 \times 360^\circ = 133.2^\circ\) |
| Messaging | 0.26 | \(0.26 \times 360^\circ = 93.6^\circ\) |
| Games | 0.18 | \(0.18 \times 360^\circ = 64.8^\circ\) |
| Music | 0.11 | \(0.11 \times 360^\circ = 39.6^\circ\) |
| Other | 0.08 | \(0.08 \times 360^\circ = 28.8^\circ\) |

Two warnings come with pie charts. First, a pie chart only makes sense when the categories split one whole: every unit sits in exactly one slice, and the shares add to 100%. Second, people judge angles and areas poorly. Video at 37% and messaging at 26% are easy to tell apart, but slices of 11% and 8% look almost the same unless they are labeled.

Worked Example 2 Read a pie chart

### Back to counts and angles

A pie chart shows how 1,500 voters in a town plan to vote on a library budget: 54% yes, 38% no, 8% undecided. How many voters plan to vote yes? What angle does the undecided slice make?

1. 1A percent of the whole is a relative frequency: yes is 0.54 of the voters.
2. 2Count = relative frequency × total: \(0.54 \times 1500 = 810\) voters.
3. 3The whole circle is \(360^\circ\), so the undecided slice is \(0.08 \times 360^\circ = 28.8^\circ\).

**Answer:** 810 of the 1,500 voters plan to vote yes. The undecided slice is 28.8°, a little less than a tenth of the circle.

Worked Example 3 Bar chart or pie chart?

### Sports students play

A survey asks 300 students, “Which school sports do you play? Choose all that apply.” 40% chose soccer, 35% basketball, 30% track, and 25% none. Can these results go in a pie chart?

1. 1Add the percents: \(40 + 35 + 30 + 25 = 130\%\). They add to more than 100% because some students play more than one sport.
2. 2A pie chart needs categories where every student is in exactly one slice, adding to 100%. That is not true here.
3. 3A bar chart still works: each bar shows the percent of the 300 students who chose that sport, and the bars do not have to add to anything.

**Answer:** No pie chart. Use a bar chart with one bar per sport showing the percent of the 300 students who play it.

Common Mistake 2 · Making a pie chart from “choose all that apply”

When people can pick more than one answer, the percents add to more than 100% and there is no single whole to slice. Use a bar chart, where each bar can show the percent who chose that answer on its own.

## 4 Using a graph to back up a claim

A graph is evidence for a claim about a categorical variable, as long as you read the values it shows. The heights in a bar chart give the counts or proportions, and from them you can rank the categories, compare two of them, or judge whether one is a majority.

Read the values, not just the look of the bars. The scale on the axis decides how big a difference looks.

**Figure 4.** The counts are the same in both charts: 104 and 72. Cutting the axis at 60 makes messaging look almost four times as popular as games. With the axis at 0, its bar is about 1.4 times as tall, which matches 104 ÷ 72 ≈ 1.44.

Worked Example 4 Check a claim against the graph

### Is messaging four times as popular?

A school newspaper prints the left chart of Figure 4 with the headline “Messaging apps are about four times as popular as games.” Is the headline supported?

1. 1Read the values, not the bar lengths: messaging 104 students, games 72 students.
2. 2Compare them: \(104 \div 72 \approx 1.44\). Messaging is about 1.4 times as common as games.
3. 3The bars look four times as different because the axis starts at 60. Measured from 60, the bars are 44 and 12 units tall, and \(44 \div 12 \approx 3.7\).

**Answer:** Not supported. Messaging is more popular than games, but by about 44%, not by four times. The cut axis exaggerates the gap.

Common Mistake 3 · Trusting a bar chart whose axis does not start at zero

The length of a bar only stands for its count when the axis starts at zero. When it starts higher, the shorter bars lose most of their length and differences look much larger than they are. Check the axis before you compare heights.

Say it like this

Name the categories, give the values from the graph, and keep the context: “Video apps were the most common choice, named by 148 of the 400 students (37%). Messaging was second with 104 students (26%).”

## 5 Comparing two or more groups

Tables, bar charts and pie charts can all compare two or more data sets on the same categorical variable. A survey at a second school asked 200 ninth graders and 250 twelfth graders the same app question.

| Most-used kind of app | 9th grade count | 9th grade rel. freq. | 12th grade count | 12th grade rel. freq. |
| --- | --- | --- | --- | --- |
| Video | 84 | 0.42 | 78 | 0.312 |
| Messaging | 36 | 0.18 | 90 | 0.360 |
| Games | 50 | 0.25 | 30 | 0.120 |
| Music | 18 | 0.09 | 32 | 0.128 |
| Other | 12 | 0.06 | 20 | 0.080 |
| **Total** | **200** | **1.00** | **250** | **1.000** |

The clearest picture is a **side-by-side bar chart**: within each category, one bar for each group, drawn next to each other. Because the groups have different sizes, the bars show relative frequencies.

**Figure 5.** Bars for the two grades stand next to each other within each category, so differences jump out. The heights are relative frequencies because the grades have different numbers of students.

Two pie charts, one per grade, can show the same comparison. Comparing slices across two circles is harder than comparing bars that stand next to each other on one axis, which is why side-by-side bars are usually the better choice.

Worked Example 5 Compare two groups

### 9th graders and 12th graders

Use Figure 5. Write two comparisons of the most-used kind of app for the 200 ninth graders and the 250 twelfth graders.

1. 1Compare relative frequencies, because the groups have different sizes.
2. 2Video: 0.42 for 9th graders against 0.31 for 12th graders, a difference of 0.11.
3. 3Messaging: 0.18 for 9th graders against 0.36 for 12th graders, twice the share.
4. 4State each one with “than” and with the groups named.

**Answer:** A larger share of 9th graders than 12th graders named video apps (42% against 31%). The share of 12th graders who named messaging apps (36%) was twice the share of 9th graders (18%).

Common Mistake 4 · Comparing groups with count bars

78 twelfth graders and 84 ninth graders named video apps. The counts look close, but there are 250 twelfth graders and only 200 ninth graders. As shares, video was 42% of 9th graders and 31% of 12th graders. When groups differ in size, graph relative frequencies.

Say it like this

A comparison needs a comparing word and both groups: “A larger share of 12th graders than 9th graders named messaging apps as their most-used kind (36% compared with 18%).” Two separate descriptions, one per grade, are not a comparison.

## 6 Choosing a graph

| You want to show | Good choice | Why |
| --- | --- | --- |
| How one group splits into categories | Bar chart or pie chart | Both work; bars are easier to read exactly |
| Which category is largest, and by how much | Bar chart | Heights on one axis are easy to compare |
| Answers to “choose all that apply” | Bar chart | Shares do not add to 100%, so there is no whole to slice |
| Two or more groups compared | Side-by-side bar chart of relative frequencies | Bars for each group stand next to each other |
| Exact counts for a report | Frequency table | Readers can copy the numbers |

Before you trust any categorical graph

1. What are the categories, and does every unit fit exactly one?
2. Is the axis counts or proportions, and does it start at 0?
3. If two groups are compared, are the bars relative frequencies?
4. Does the claim quote the values the graph shows, in context?

FiveStudy AP® Statistics · Graphs for one categorical variable
