Bar Graphs & Mosaic Plots (College Board AP® Statistics)

Study Guide

Test yourself
Dan Finlay

Written by: Dan Finlay

Reviewed by: Lucy Kirkham

Side-by-side bar graphs

What is a side-by-side bar graph?

  • A side-by-side bar graph is used to visualize the data when working with two categorical variables

    • e.g. the favorite subject and school year of a random sample of students

  • They are similar to bar charts of one variable

    • The categories for one of the variables are labeled on one axis

      • e.g. the different subjects can be labeled along the x-axis

    • There are gaps between the different categories

    • The frequency or relative frequency is labeled on the other axis

  • The difference is that each bar is split into multiple bars

    • There are multiple bars for each category along the axis

      • e.g. the different school years

    • Each bar represents a joint frequency

    • These bars are drawn side-by-side

    • The bars are labeled or a key is used so that the categories of the second variable can be seen

Side-by-side bar chart showing the favorite subjects of 9th and 12th graders. Math is most popular for 9th, while 12th graders prefer Languages. Science is equally chosen by both.
Example of a side-by-side bar graph

How can a side-by-side bar graph be used?

  • You can compare the frequencies of the categories of the first variable for a fixed category of the second variable by looking at the heights of the bars for the second variable

    • e.g. compare the frequencies of the favorite subjects for students in the 9th grade

  • You can compare the frequencies of the categories of the second variable for a fixed category of the first variable by looking at the heights of the bars for one category along the x-axis

    • e.g. compare the frequencies of the school years for students who prefer math

  • Side-by-side bar graphs get harder to interpret when there are a lot of categories for the variables

Segmented bar graphs

What is a segmented bar graph?

  • A segmented bar graph is used to visualize the data when working with two categorical variables

    • e.g. the favorite subject and school year of a random sample of students

  • They are similar to side-by-side bar graphs

    • The bars are stacked on top of each other instead of side-by-side

  • Conditional relative frequency is commonly used instead of joint frequency

    • This means that the stacked bars all have a height of 1

Segmented bar chart showing favorite subjects by relative frequency for 9th and 12th graders.
Example of a segmented bar graph

How can a segmented bar graph be used?

  • You can compare the conditional relative frequencies within the categories of the conditional variable by looking at the heights of the bars in one category along the x-axis

    • e.g. compare the proportion of people who prefer math who are also in the 9th grade with the proportion of people who prefer math who are also in the 12th grade

  • You can compare the conditional relative frequencies across the categories of the conditional variable by looking at the heights of the bars for the same variable in each category along the x-axis

    • e.g. compare the proportion of students who prefer math who are also in the 9th grade with the proportion of students who prefer science who are also in the 9th grade

  • If you use relative frequency for a segmented bar chart then you cannot compare frequencies

    • e.g. two bars with equal heights might not represent the same frequency

Mosaic plots

What is a mosaic plot?

  • A mosaic plot is used to visualise the data when working with two categorical variables

    • e.g. the favorite subject and school year of a random sample of students

  • They are similar to segmented bar graphs

    • The widths of the bars are proportional to the marginal relative frequencies

    • The areas of the bars are proportional to the joint (cell) frequencies

Mosaic plot showing favorite subjects (math, science and languages) among 9th and 12th graders.
Example of a mosaic plot

How can a mosaic plot be used?

  • You can compare the conditional relative frequencies within the categories of the conditional variable by looking at the heights of the bars in one category along the x-axis

    • e.g. compare the proportion of people who prefer math who are also in the 9th grade with the proportion of people who prefer math who are also in the 12th grade

  • You can compare the conditional relative frequencies across the categories of the conditional variable by looking at the heights of the bars for the same variable in each category along the x-axis

    • e.g. compare the proportion of students who prefer math who are also in the 9th grade with the proportion of students who prefer science who are also in the 9th grade

  • You can compare joint relative frequencies by looking at the areas of the bars

    • e.g. compare the proportion of students who prefer math and are in the 9th grade with the proportion of students who prefer science and are in the 12th grade

  • You can compare marginal relative frequencies by looking at the widths of the bars

    • e.g. compare the proportion of students who prefer math with the proportion of students who prefer science

Last updated:

You've read 0 of your 10 free study guides

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Dan Finlay

Author: Dan Finlay

Expertise: Maths Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Lucy Kirkham

Author: Lucy Kirkham

Expertise: Head of STEM

Lucy has been a passionate Maths teacher for over 12 years, teaching maths across the UK and abroad helping to engage, interest and develop confidence in the subject at all levels.Working as a Head of Department and then Director of Maths, Lucy has advised schools and academy trusts in both Scotland and the East Midlands, where her role was to support and coach teachers to improve Maths teaching for all.