AP Statistics · Topic 1.4 · Reading guide, about 5 min

Bar charts and pie charts

Read and draw bar charts and pie charts, support claims from them, and compare categorical data sets on the same graph.

In one minute

A bar chart or pie chart turns a frequency or relative frequency table into a picture. Both are for categorical variables, and both let you see at a glance which categories are common and which are rare.

On the exam you are expected to read these graphs, use them to back up a claim in context, and compare two or more groups measured on the same categorical variable.

Key terms

Bar chart
A graph with one bar per category; bar height shows the count or the proportion.
Bar graph
Another name for a bar chart.
Pie chart
A circle divided into slices, one per category, with each slice sized by relative frequency.
Slice angle
The angle of a pie slice, found as relative frequency times 360 degrees.
Category
One of the groups a categorical variable can fall into.
Comparative display
A graph or table that places two or more groups side by side on the same variable.
Claim
A statement a graph is used to support, backed by specific values and in context.

Bar charts

A bar chart has one bar for each category. The bar height can be the frequency or the relative frequency; the second is better when comparing groups. Bars are drawn with gaps between them, because the categories are separate groups, not points on a number line. The order of the bars is a choice: you can put them in any order, though sorting from tallest to shortest makes the main message easy to see.

Label both axes, give the graph a title that names the variable and the group, and start the vertical axis at zero. A bar chart whose axis starts at 50 makes small differences look large, and a reader can be misled even though the numbers are correct.

Pie charts

A pie chart shows how a whole is shared. The area of each slice is proportional to the relative frequency of its category, and the slices together make up the full circle, 100%. To draw one, multiply each relative frequency by 360 degrees to get the angle.

Pie charts only make sense when each observation belongs to exactly one category, so the parts really do add to a whole. A survey where students can choose several favorite sports does not suit a pie chart, because the percentages would add to more than 100%. Pie charts also make it hard to compare slices of similar size, which is where a bar chart does better.

Pet ownership in a class of 40 (invented data)
CategoryFrequencyRelative frequencySlice angle
Dog160.40144 degrees
Cat120.30108 degrees
Fish40.1036 degrees
No pet80.2072 degrees
Total401.00360 degrees

Using graphs to support claims and compare data sets

To support a claim, read the heights or slice sizes, and quote them with context. "Dogs are the most common pet in this class: 40% of the 40 students own one, more than any other category." A claim without numbers from the graph is not yet supported.

To compare two data sets on the same categorical variable, use the same categories in the same order and use relative frequencies, especially when group sizes differ (this is the lesson of topic 1.3). Put the bars for the two groups next to each other, or draw two pie charts with matching colors. Then describe the key differences and any similarities, in context, with values.

Worked example

Invented data. In a class of n=40n = 40 students, 16 own a dog, 12 own a cat, 4 own a fish and 8 own no pet.

Step 1: relative frequencies. Dog: 16/40=0.4016/40 = 0.40. Cat: 12/40=0.3012/40 = 0.30. Fish: 4/40=0.104/40 = 0.10. No pet: 8/40=0.208/40 = 0.20. They sum to 1.001.00.

Step 2: pie chart angles. Dog: 0.40×360=1440.40 \times 360 = 144 degrees. Cat: 0.30×360=1080.30 \times 360 = 108. Fish: 0.10×360=360.10 \times 360 = 36. No pet: 0.20×360=720.20 \times 360 = 72. The total is 144+108+36+72=360144 + 108 + 36 + 72 = 360.

Step 3: bar chart. Draw four separated bars with heights 16, 12, 4 and 8 (or 0.40, 0.30, 0.10, 0.20 on a relative scale), a vertical axis starting at 0, and labeled axes.

Step 4: claim in context. "More students in this class own a dog (40%) than any other category. Together, dog and cat owners make up 70% of the class, and only 10% have a fish." Step 5: compare with a second class of 100 students where 30 own dogs. Its dog share is 30/100=0.3030/100 = 0.30, so the first class has the larger share of dog owners (40% versus 30%) even though the second class has more dog owners in raw count terms (30 versus 16).

How it connects

  • Back to 1.3: these charts are pictures of frequency and relative frequency tables.
  • Forward to 1.5: histograms look like bar charts but are for quantitative data, with touching bars and ordered bins.
  • Forward to 2.1: segmented bar charts compare how a categorical variable is split across the groups of another one.

Common mistakes

  • Calling a histogram a bar chart, or the reverse. Bar charts are for categories and have gaps between bars; histograms are for numbers, with touching bars.
  • Truncating the axis. Starting the vertical axis above zero exaggerates differences. Start at zero for counts and proportions.
  • Using a pie chart when percentages exceed 100%. If respondents can choose more than one category, use a bar chart.
  • Comparing raw counts for groups of different sizes. Use relative frequencies on the vertical axis.

How it shows up on the exam

  • A graph of a categorical variable is shown and you must read values and state which category is most common, in context.
  • Two bar charts or tables for groups of different sizes are given, and you compare the groups using proportions.
  • You are asked to decide whether a described graph is appropriate for the variable or is misleading in some way.

Check yourself

  1. Why must the bars of a bar chart be separated while the bars of a histogram touch?
  2. How do you find the angle of a pie slice that represents 15% of the data?
  3. A survey lets students pick all the sports they play. Why is a pie chart a poor display?
  4. Why is it risky to compare two schools using bar heights in counts when the schools have different enrollments?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.