← MATH 380 MathScape 0 MATH380

Displaying Categorical Data: Bar Graphs and Pie Charts

15 min read

Jump to a section
Textbook: Moore, McCabe, Craig, Introduction to the Practice of Statistics (IPS), 9th edition  •  Chapter: 1  •  Section: 2

Quick Reference

Field Value
Textbook Moore, McCabe, Craig, Introduction to the Practice of Statistics (IPS), 9th edition
Location Chapter 1, Looking at Data: Distributions; Section 1.2, Displaying Distributions with Graphs
Subsection Section 1.2, categorical variables: bar graphs and pie charts
Pages Page numbers pending faculty verification.
Course MATH380
Role First graphical display in the course. A categorical variable records which group an individual belongs to, and Section 1.2 introduces the two standard pictures of its distribution before the chapter moves to quantitative displays (stemplots and histograms).

Try This First

A first-year seminar of 50 students reports the college each student plans to enter. The advising office records the results as a table of counts.

Intended college Count of students
Arts and Letters 8
Business 14
Engineering 18
Nursing 6
Undeclared 4
Total 50

Before reading any definition, work these on paper.

  1. Sketch five vertical bars, one per college, with each bar tall in proportion to its count. Which bar is tallest, and which is shortest?
  2. Turn each count into a percent of the 50 students. (For Business, that is $\frac{14}{50}$ written as a percent.)
  3. A classmate says “the five bars should touch, since this is a graph.” Predict whether that is correct, then keep reading.
Check your three answers
  1. Engineering has the tallest bar (18 students); Undeclared has the shortest (4 students).
  2. The percents are Arts and Letters $\frac{8}{50} = 16\%$, Business $\frac{14}{50} = 28\%$, Engineering $\frac{18}{50} = 36\%$, Nursing $\frac{6}{50} = 12\%$, Undeclared $\frac{4}{50} = 8\%$. They sum to $100\%$.
  3. The bars should not touch. The colleges are categories, not numbers on a scale, so the bars are drawn with gaps between them.

You have just built a bar graph by hand and read its distribution. The pie chart is the second standard picture of the same table.


An Intuitive Introduction

A categorical variable sorts each individual into one of a few groups: the intended college above, a person’s blood type, a movie’s genre, a survey answer of “agree” or “disagree.” There is no meaningful order or arithmetic on the groups themselves. The number 18 in the Engineering row is a count of how many individuals fall in that group, not a measurement of any one student.

The distribution of a categorical variable is the list of groups together with how often each group occurs, either as a count or as a percent. Two pictures show this distribution.

Both pictures carry the same numbers. The choice between them is a choice of question. The bar graph is easy to read for ranking and comparison. The pie chart is easy to read for part-to-whole share, and it only makes sense when the groups together make up one whole.


Prerequisite Hub

Builds On

Skill Why it is needed
Categorical vs. Quantitative Variables A bar graph and a pie chart display a categorical variable. The reader must recognize when a variable is categorical before choosing these displays.
Distribution of a Variable Both graphs are pictures of a distribution: which groups occur and how often.
Proportions and Percentages Bar heights and pie slices are read as counts or percents, and a pie chart requires the percents to sum to 100.
Reading a Graph and Its Axes Reading a bar height off a labeled axis is the mechanical skill behind interpreting the graph.

Unlocks

Skill What it adds
Histograms The bar graph for a quantitative variable, where bars touch because the horizontal axis is a number line.
Describing a Distribution: Shape, Center, Spread Once a distribution is displayed, the next step is describing it in words.

Cross-Course Prerequisites

None. The arithmetic of counts and percents is in the review nodes above.


The Official Definitions

Bar graph. A bar graph displays the distribution of a categorical variable by drawing one bar for each category, with the height of each bar showing the count or the percent of individuals in that category. The bars are drawn with gaps between them because the categories are not measured on a numerical scale.

(Moore, McCabe, Craig, IPS 9th edition, Section 1.2, Displaying Distributions with Graphs; corroborated by OpenStax Introductory Statistics 2e, 2.1.)

Pie chart. A pie chart displays the distribution of a categorical variable as slices of a circle, with each slice sized in proportion to the percent of individuals in that category. A pie chart requires that the categories together make up some whole, since the slices must sum to 100 percent.

(Moore, McCabe, Craig, IPS 9th edition, Section 1.2, Displaying Distributions with Graphs.)

IPS Section 1.2 states no theorem here. The content is two definitions and the practice of building and reading the two displays correctly. The constraints to hold onto are the two clauses inside the definitions: a bar graph leaves gaps between bars (the categories are not points on a number line), and a pie chart needs the categories to partition one whole (the slices must sum to 100 percent).

Reading the Two Pictures Side by Side

Question you are asking Display that answers it best What you read off it
Which group is largest? How do the groups rank? Bar graph Compare bar heights directly.
What share of the whole is each group? Pie chart Compare slice sizes; each slice is that group’s percent of the whole.

Both pictures encode the same table, so the same data translates freely between the table, the bar graph, and the pie chart.


Worked Examples

Example 1: From a Count Table to a Bar Graph and a Pie Chart

A campus coffee stand records the size of every drink sold during one morning.

Drink size Count
Small 24
Medium 60
Large 36
Total 120

Predict first. Before any arithmetic, which size will have the tallest bar, and roughly what fraction of the circle will the Medium slice take? Medium has the largest count, so it gets the tallest bar, and 60 out of 120 is half, so the Medium slice should be about half the circle.

Step 1: Turn each count into a percent of the whole.

\[ \text{Small} = \frac{24}{120} = 0.20 = 20\%, \qquad \text{Medium} = \frac{60}{120} = 0.50 = 50\%, \qquad \text{Large} = \frac{36}{120} = 0.30 = 30\%. \]

Check the share: $20\% + 50\% + 30\% = 100\%$. The percents account for the whole, so a pie chart is valid here.

Step 2: Build the bar graph. Draw three bars, one per drink size, with gaps between them. The vertical axis can show counts (heights 24, 60, 36) or percents (heights 20, 50, 30). The shape of the picture is the same either way; only the axis label changes.

Step 3: Build the pie chart. A full circle is $360$ degrees. Each slice’s angle is its percent of $360$ degrees.

\[ \text{Small} = 0.20 \times 360^\circ = 72^\circ, \qquad \text{Medium} = 0.50 \times 360^\circ = 180^\circ, \qquad \text{Large} = 0.30 \times 360^\circ = 108^\circ. \]

Check the angles: $72^\circ + 180^\circ + 108^\circ = 360^\circ$. The Medium slice is a half circle, matching the prediction.

Read it back. Medium is the most common size (half of all drinks). Small is the least common (one fifth). The bar graph makes that ranking instant; the pie chart makes the “half of all sales” share instant.

Example 2: When a Pie Chart Is the Wrong Picture

A student surveys 30 classmates and asks each to name every streaming service they use. The counts come back like this.

Streaming service Count of students naming it
Service A 22
Service B 19
Service C 14
Sum of counts 55

Predict first. Can these numbers become a pie chart? Predict yes or no before reading on.

The sum of the counts is 55, but only 30 students were surveyed. Each student could name more than one service, so the counts overlap. The categories do not partition one whole: a single student is counted in two or three slices at once.

A pie chart is not valid here, because the slices would have to sum to more than 100 percent. The correct display is a bar graph, where one bar shows how many of the 30 students named each service. The bars can each rise as high as 30, and they do not need to add to 30, because the categories are not mutually exclusive.

This is the standard test before drawing a pie chart: ask whether each individual lands in exactly one category. If an individual can be counted twice, the pie chart fails and the bar graph is the honest picture.

Example 3: Reading a Distribution Off a Finished Bar Graph

A finished bar graph (percent on the vertical axis) reports the favorite season of a class. The four bars reach these heights.

Season Bar height (percent)
Spring 30
Summer 40
Fall 20
Winter 10

Read the distribution. Summer is the most preferred season at 40 percent; Winter is the least at 10 percent.

Check the whole. $30\% + 40\% + 20\% + 10\% = 100\%$. The percents account for every student, so the same data could also be shown as a pie chart.

A comparison question. “Summer is preferred by 40 percent and Spring by 30 percent, so Summer is 10 percent more popular.” The phrase “10 percent more popular” is loose. The honest statement is that Summer’s share is 10 percentage points larger than Spring’s. The relative comparison ($\frac{40}{30} \approx 1.33$) would say Summer was chosen about 33 percent more often than Spring. Naming which comparison you mean keeps the reading correct.


Common Misconceptions

Common misconception

the bars in a bar graph should touch. The categories of a categorical variable are not points on a number line, so there is no “distance” between Arts and Letters and Business to fill in. The bars are drawn with gaps to signal exactly that. Touching bars are reserved for a histogram, where the horizontal axis is a continuous number line and adjacent bars share a real boundary. Predict-then-check: in the intended-college table above, ask what numerical value would sit “between” Business and Engineering on the axis. There is none, which is why the gap belongs there.

Common misconception

a pie chart can show any table of counts. A pie chart only makes sense when the categories partition one whole, so the slices sum to 100 percent. In Example 2, students could name several streaming services, so the counts summed to 55 for 30 people, and a pie chart would have slices summing past 100 percent. Predict-then-check: add the percents implied by a proposed pie chart. If they do not sum to 100 percent, the pie chart is the wrong display and a bar graph is correct.

Common misconception

a difference in percent points equals a percent change. If one group is 40 percent and another is 30 percent, the first is 10 percentage points larger, not “10 percent larger.” The relative change from 30 to 40 is $\frac{40 - 30}{30} \approx 33\%$. Treating a 10 percentage-point gap as a 10 percent change confuses an additive comparison with a multiplicative one. Predict-then-check: before stating a comparison, decide whether you mean the gap in percentage points (subtraction) or the relative change (division), then say which.


Practice Problems

Level 1 Choose the Right Display

A registrar records each student’s declared major (one major per student) for a class of 200 students. Which display shows the distribution as a part-to-whole share of the class: a bar graph, a pie chart, or both?

Show Answer

Both displays are valid, because each student has exactly one major, so the categories partition the whole class and the percents sum to 100. The pie chart is the one that shows each major as a share of the whole; the bar graph shows the same data in a form that is easier to rank.

Level 2 Counts to Percents

A library logs the format of 80 items checked out in one hour: 36 print books, 28 e-books, 16 audiobooks. Convert each count to a percent of the whole, and confirm the percents account for all 80 items.

Show Answer

\[ \text{Print} = \frac{36}{80} = 45\%, \qquad \text{E-book} = \frac{28}{80} = 35\%, \qquad \text{Audiobook} = \frac{16}{80} = 20\%. \]

Check: $45\% + 35\% + 20\% = 100\%$. The percents account for all 80 items, so a pie chart would be valid.

Level 3 Percents to Pie Angles

Using the library data from Level 2 (print 45 percent, e-book 35 percent, audiobook 20 percent), find the central angle of each slice in a pie chart, and confirm the angles sum to a full circle.

Thought Process

A full circle is $360^\circ$. Each slice’s angle is its percent (as a decimal) times $360^\circ$.

Show Answer

\[ \text{Print} = 0.45 \times 360^\circ = 162^\circ, \qquad \text{E-book} = 0.35 \times 360^\circ = 126^\circ, \qquad \text{Audiobook} = 0.20 \times 360^\circ = 72^\circ. \]

Check: $162^\circ + 126^\circ + 72^\circ = 360^\circ$. The angles complete one circle.

Level 4 Spot the Invalid Pie Chart

A club of 40 members is surveyed: “Which activities did you attend this term? Choose all that apply.” The counts are hiking 30, climbing 22, kayaking 18. A member proposes a pie chart with slices for hiking, climbing, and kayaking. Is the pie chart valid? Justify your answer, and state the display you would use instead.

Thought Process

Check whether each member lands in exactly one category. The survey says “choose all that apply,” so a single member can be counted in more than one slice. Add the counts and compare to the number of members.

Show Answer

The pie chart is not valid. The counts sum to $30 + 22 + 18 = 70$, but there are only 40 members, so members are counted in more than one category. The categories do not partition one whole, and the slices would sum to more than 100 percent.

The correct display is a bar graph. One bar per activity shows how many of the 40 members attended it. Each bar can rise as high as 40, and the bars do not need to sum to 40, because a member can be counted in several bars.

Level 5 Translate, Compare, and Justify

A campus poll of 250 students records primary commute mode (one mode per student): walk 100, bike 50, bus 75, car 25.

(a) Build the percent for each mode and confirm a pie chart is valid. (b) A headline reads “twice as many students walk as ride the bus.” Evaluate the claim with the counts. (c) A second headline reads “walking’s share is 25 percentage points above the bus.” Evaluate that claim, and explain why parts (b) and (c) are two different comparisons.

Thought Process

Part (a) is the count-to-percent conversion plus the sum-to-100 check. Part (b) is a relative (multiplicative) comparison: divide the counts. Part (c) is an additive comparison: subtract the percents. The point of the problem is that “twice as many” and “25 percentage points above” describe different relationships in the same table.

Show Answer

(a) Percents of the 250 students:

\[ \text{Walk} = \frac{100}{250} = 40\%, \quad \text{Bike} = \frac{50}{250} = 20\%, \quad \text{Bus} = \frac{75}{250} = 30\%, \quad \text{Car} = \frac{25}{250} = 10\%. \]

Check: $40\% + 20\% + 30\% + 10\% = 100\%$. Each student has one mode, so the categories partition the whole and a pie chart is valid.

(b) Walk is 100 students and bus is 75 students. Then $\frac{100}{75} \approx 1.33$, so about 1.33 times as many walk as ride the bus, not twice as many. The headline is false.

(c) Walking’s share is 40 percent and the bus share is 30 percent, a gap of $40\% - 30\% = 10$ percentage points, not 25. The headline is false.

Parts (b) and (c) compare the same two groups in two different ways. Part (b) is a ratio of the counts (a multiplicative comparison). Part (c) is a difference of the percents (an additive comparison). The two answers, 1.33 times and 10 percentage points, are both correct descriptions of the same pair of groups, so a claim has to name which comparison it means.


Mastery Checklist

Novice (Level 1-2):

Competent (Level 3-4):

Proficient (Level 5):


Connections

Looking back:

Looking ahead:

Real-world connections:


Resources

Resource What it covers
Moore, McCabe, Craig, Introduction to the Practice of Statistics (IPS), 9th edition, Section 1.2, Displaying Distributions with Graphs The primary text. Bar graphs and pie charts for categorical variables. Page numbers pending faculty verification.
OpenStax Introductory Statistics 2e, 2.1 Stem-and-Leaf Graphs (Stemplots), Line Graphs, and Bar Graphs An open-source companion treatment of bar graphs, with worked examples and exercises.


Last updated: 2026-06-16