AP Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data
1.4 One categorical variable: graphs
Create and interpret bar charts and pie charts, and compare categorical distributions using relative frequencies.
1/5A bar chart shows the distribution of one categorical variable
- A bar chart shows the distribution of one categorical variable
- Careful construction keeps a bar chart honest
- A pie chart shows categories as parts of one whole
- Relative frequencies let us compare groups of different sizes
- A good comparison names the groups and uses proportions
- Check your recall
- Practice: 10 questions
Part 1 of 5: A bar chart shows the distribution of one categorical variable
Take a survey of 30 students who each name a favorite pet. A graph can show the answers at a glance. The distribution of a categorical variable lists its categories and how often each occurs.
A bar chart draws one bar for each category. The bar’s height shows the frequency or relative frequency. The tallest bar marks the most common category, and the shortest marks the least common. Counts and relative frequencies give the same shape. Only the scale on the vertical axis changes.
Key terms · tap one for its definition
distribution
The distribution of a categorical variable is the list of its categories together with the frequency or relative frequency of each.
bar chart
A bar chart is a graph with one bar per category, equal widths, gaps between bars, and heights showing frequency or relative frequency.
Part 2 of 5: Careful construction keeps a bar chart honest
A bar chart is only as trustworthy as the way it is drawn. Follow these rules, which keep the bars easy to compare and the heights truthful:
- Give every bar the same width
- Leave equal gaps between bars
- Start the vertical axis at 0
- Use equal steps on the vertical scale
- Label both axes and add a title
The vertical axis can show counts or relative frequencies, the share of individuals in each category. Relative frequencies give the same shape and are easier to compare across groups.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 5: A pie chart shows categories as parts of one whole
Bar charts are not the only way to show a distribution. A pie chart is a circle divided into slices, one for each category. Each slice is a sector, and its angle is proportional to the category’s relative frequency.
In words, the angle is the relative frequency times 360 degrees. In symbols:
Worked example
Sector angles for pets
- Dogs: .
- Cats: .
- Fish: .
- Other: .
- Check: .
Answer: The sectors measure , , , and .
Key terms · tap one for its definition
pie chart
A pie chart is a circle divided into sectors whose angles are proportional to relative frequencies and sum to .
sector
A sector is one slice of a pie chart, with a central angle equal to the category’s relative frequency times .
Part 4 of 5: Relative frequencies let us compare groups of different sizes
Often we compare two groups, such as two classes. Class A has 20 students and Class B has 50. Counts in Class B will be larger even if the classes are alike. Its bars would dwarf those for Class A. Relative frequencies remove that difference.
A side-by-side bar chart places each group’s bars next to one another within every category. A segmented bar chart uses one bar per group, split into segments. Each bar represents 100% of its group. Both graphs make the comparison visible. The side-by-side chart pairs the bars for each category, while the segmented chart shows a whole distribution in one bar.
Worked example
Comparing two classes
- Class A: , , .
- Class B: , , .
- Compare category by category using these shares.
Answer: Dogs are more popular in Class A (50% against 40%), cats are less popular (30% against 40%), and “other” is the same (20%).
Key terms · tap one for its definition
side-by-side bar chart
A side-by-side bar chart is a bar chart with separate bars for each group placed next to one another within each category.
segmented bar chart
A segmented bar chart is a graph with one bar per group, split into segments whose lengths show each category’s relative frequency.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 5 of 5: A good comparison names the groups and uses proportions
Once the graph is drawn, the next step is to describe it in words. Begin with the modal category for each group, then note where the groups differ most. Describe the largest and smallest categories as well.
Write each statement in context, using proportions or percentages. For example: “Dogs were the most popular pet in Class A and tied with cats in Class B, but a larger share of Class A chose them.”
Key term
modal category
The modal category is the category of a categorical variable that has the largest frequency or relative frequency.
Check your recall[12 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Describe[2 marks]
Describe two features of a correctly drawn bar chart.
Show mark schemeHide mark scheme
Model answer
The bars have equal widths with gaps between them. The vertical axis starts at 0, and both axes are labeled.
- 1 mark for describing one correct feature such as equal bar widths with gaps
- 1 mark for describing a second correct feature such as a vertical axis starting at 0 or labeled axes and title
- 2.Calculate[2 marks]
In a survey of 60 individuals, 21 chose one category. Calculate the sector angle for that category in a pie chart.
Show mark schemeHide mark scheme
Model answer
Relative frequency is . The angle is .
- 1 mark for finding the relative frequency 0.35
- 1 mark for multiplying by to obtain
- 3.Explain[2 marks]
Explain one reason a bar chart can be easier to read than a pie chart when categories are similar in size.
Show mark schemeHide mark scheme
Model answer
Bars share a common baseline, so their heights can be compared directly. Slices of similar angle are hard to tell apart by eye.
- 1 mark for stating that bars share a baseline so heights compare directly
- 1 mark for stating that slices of similar size are hard to distinguish
- 4.Compare[3 marks]
Group A has 40 members, and 10 of them prefer tea. Group B has 80 members, and 30 of them prefer tea. Compare how common tea preference is in the two groups.
Show mark schemeHide mark scheme
Model answer
In Group A, prefer tea. In Group B, prefer tea. Tea preference is more common in Group B, 37.5% against 25%.
- 1 mark for calculating the relative frequency 0.25 for Group A
- 1 mark for calculating the relative frequency 0.375 for Group B
- 1 mark for stating that tea preference is more common in Group B, using the proportions
- 5.Justify[3 marks]
Justify why a segmented bar chart should show relative frequencies, not counts, when comparing two groups of different sizes.
Show mark schemeHide mark scheme
Model answer
Counts depend on group size, so the larger group has bigger bars even when its shares are the same. Relative frequencies divide by each group’s total, so each bar represents 100%. The segments then show whether the distributions really differ.
- 1 mark for stating that counts depend on group size
- 1 mark for explaining that relative frequencies divide by each group’s total
- 1 mark for concluding that the segments then allow a fair comparison of the distributions

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumPredict[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumCompare[1 mark]
Show answer and explanation
Answer: A · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: B · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation