All AP Courses AP StatisticsAP Stats

Unit 1 · Topic 1.4 · about 20 minutes

AP Statistics 1.4: Graphical Representations for One Categorical Variable

Draw and read bar charts and pie charts, and use relative frequency graphs to compare groups and back up a claim.

Unit 1: 20 to 30% of the multiple-choice section

What you'll be able to do

  • Draw bar charts and pie charts for one categorical variable.
  • Use a bar chart or pie chart to support or reject a claim about a categorical variable in context.
  • Compare two or more groups on the same categorical variable using tables, bar charts and pie charts.

Key vocabulary

TermWhat it meansThe exam trap
Bar chartA graph of one categorical variable with one bar per category, where the height or length of each bar is that category's frequency or relative frequency.Two bar charts of counts drawn on the same scale still cannot compare groups of 120 and 300 players fairly, because the bigger group's bars are inflated by its size.
Pie chartA circle split into slices, one per category, where each slice's share of the area equals that category's relative frequency and the slices fill the whole circle.Check all that apply answers can add past 100 percent, as phone 91, laptop 38, smart speaker 22 and car stereo 47 do, and then no pie chart can hold them.
FrequencyThe count of observational units in a category, which a bar chart of counts shows as bar height.Equal frequencies can hide different shares: 80 freshmen and 80 seniors rode in a family car, but that is 0.32 of the freshmen and only 0.16 of the seniors.
Relative frequencyThe proportion of a group that falls in a category, the count divided by the group's total.One quarter of a pie is a relative frequency of 0.25, so with 160 students the slice stands for 40 of them, not 25.

Predict first

You draw a bar chart of the homework survey using counts. Then you draw it again using relative frequencies. How will the two charts compare?

Bar charts

A bar chart, or bar graph, shows one categorical variable with one bar for each category. The height of each bar is that category's frequency or relative frequency. Bars can also run sideways, and then their length carries the number.

The categories are labels, not numbers, so the bars stand apart with space between them, and their order is up to you. Sorting from tallest to shortest makes the ranking easy to read. If the categories have a natural order, such as survey answers from never to always, keep that order instead.

Where 200 students usually do their homework, as counts

050100Number of studentsBedroom: 94BedroomKitchen table: 42Kitchen tableLiving room: 28Living roomAt school: 26At schoolElsewhere: 10ElsewhereHomework location

The same survey as relative frequencies

00.20.4Relative frequencyBedroom: 0.47BedroomKitchen table: 0.21Kitchen tableLiving room: 0.14Living roomAt school: 0.13At schoolElsewhere: 0.05ElsewhereHomework location

Same bars, different axis. Dividing every count by 200 scales every bar by the same amount.

Pie charts

A pie chart shows the same information as slices of a circle. Each slice is a category, and the slice's share of the circle's area equals that category's relative frequency. In the homework survey the bedroom slice is 47% of the pie. To draw it by hand, give it 47% of 360 degrees, about 169 degrees. All the slices together fill the whole circle, 100% of it.

That last fact is the catch. A pie chart only works when the categories split one group into parts, with every unit in exactly one category, so that the relative frequencies add to 1. Survey questions that say check all that apply break this rule, and so do percents that come from different groups.

Sort it

Could each data set be shown as a pie chart? Tap a card, then tap its bin.

A pie chart works

Use a bar chart instead

Comparing groups

Tables, bar charts and pie charts can all compare two or more groups on the same categorical variable. The rule from 1.3 Tabular Representation and Summary Statistics for One Categorical Variable matters even more in a picture: when the groups are different sizes, graph relative frequencies. In a bar chart of counts, every bar of the bigger group is inflated by its size.

A school district surveyed a random sample of 250 freshmen and a random sample of 500 seniors about how they usually get to school. Here are both groups as relative frequencies. Both charts use the same vertical scale, so the bars can be compared directly.

Freshmen (250 sampled)

00.10.20.30.4Relative frequencyBus: 0.4BusFamily car: 0.32Family carDrives self: 0Drives selfWalk or bike: 0.24Walk or bikeOther: 0.04OtherHow freshmen get to school

Seniors (500 sampled)

00.10.20.30.4Relative frequencyBus: 0.26BusFamily car: 0.16Family carDrives self: 0.4Drives selfWalk or bike: 0.14Walk or bikeOther: 0.04OtherHow seniors get to school

Freshmen are too young to drive alone, and it shows: 40% of the sampled seniors drive themselves, while the freshmen rely on buses and family cars.

Worked exampleWho is more likely to walk or bike?

A senior on the student council says, "Seniors are more likely than freshmen to walk or bike to school. In the survey, 70 seniors walk or bike and only 60 freshmen do." Do the data support the claim?

  1. Notice the group sizes. The district sampled 500 seniors and 250 freshmen, twice as many seniors. Comparing 70 with 60 ignores that.

  2. Compute relative frequencies. Seniors: 70500=0.14. Freshmen: 60250=0.24.

  3. Compare. In the samples, 24% of freshmen walk or bike, compared with 14% of seniors. The charts show the same thing: the walk-or-bike bar is taller for freshmen.

  4. Conclude in context. The data do not support the claim. A sampled freshman was more likely than a sampled senior to walk or bike, even though the senior sample contained more walkers and bikers.

Answer.

No. As proportions, 0.24 of the freshmen walk or bike, compared with 0.14 of the seniors.

Check your understanding

1

Use the chart for the 500 sampled seniors above. About how many of the seniors in the sample take the bus to school?

2

In a pie chart of the favorite sport of 160 students, the soccer slice takes up one quarter of the circle. Which must be true?

3

A survey asked 400 students, "Which of these do you use to listen to music? Check all that apply." The results were phone 91%, laptop 38%, smart speaker 22% and car stereo 47%. Which display is appropriate?

4

Use the two charts for the freshman and senior samples above. Which claim do the charts support?

5

A youth soccer league wants to compare the jersey sizes ordered by its 120 under-10 players and its 300 under-14 players. Which display makes a fair comparison of the two groups?

Exam strategy for this topic

  • Section I, Multiple Choice: 42 questions in 90 minutes.
  • Section II, Free Response: 4 questions in 90 minutes.
  • A graphing calculator with statistical capabilities is expected on both sections.

Questions students ask

If I switch a bar chart from counts to relative frequencies, does it look different?

For one group, no. Every count is divided by the same total, so the bars keep their heights and order, and only the numbers on the vertical axis change.

When should I use a bar chart instead of a pie chart?

Use a pie chart only when every unit is in exactly one category, so the relative frequencies add to 1. If students could check several answers, or the percents come from different groups such as five countries, use a bar chart.

What order should the bars go in?

Your choice, because the categories are labels. Sorting from tallest to shortest makes rankings easy to read, but if the categories have a natural order, like never to always, keep that order.

How big should a slice be if I draw a pie chart by hand?

Multiply the relative frequency by 360 degrees. The bedroom slice in the homework survey is 0.47 of 360, about 169 degrees.

Why do the bars in a bar chart have gaps between them?

The categories are separate labels, not points on a number line, so the bars stand apart.

Course alignment, for teachers

AP Statistics topic 1.4, Unit 1: Exploring One-Variable Data and Collecting Data.

  • Skill 3.A: Construct tabular and graphical representations of data and distributions.
  • Skill 4.A: Describe and compare tabular and graphical representations of data, as well as summary statistics.
  • Skill 4.B: Justify a claim based on statistical calculations and results.