1.4 - Graphing One Qualitative Variable

1.4 - Graphing One Qualitative Variable

How can one graph qualitative variables? Two common choices are the pie chart and the bar chart.

Pie Charts

Pie Chart
each sector of the circle represents the percentage of that category

Example: A pie chart of the eye color

A pie chart for eye color. Brown - 80%, Blue - 10%, Hazel - 6.7%, Green - 3.3%
Hazel - 6.7% Green - 3.3% Blue - 10.0% Brown - 80.0%

Notes on pie charts

  • Pie charts may not be suitable for too many categories. Thus, if there are too many categories, you can either combine some categories or use a bar chart to represent the data. What is mean by "too many"? There is no clear cutoff, more of just a judgment on the appearance.
  • Readers may find the pie chart more useful if the percentages are arranged in a descending or ascending order.

 Bar Charts

Bar Chart
The height of the bar for each category is equal to the frequency (number of observations) in the category. Leave space in between the bars to emphasize that there is no ordering in the classes.

Example: A bar chart of the eye color

Bar chart showing the counts of each eye color. (Brown 34, Blue 3, Hazel 1 and Green 2)
Bar chart showing the counts of each eye color. (Brown 34, Blue 3, Hazel 1 and Green 2)

Notes on Bar Charts

  • Please pay attention that even though histogram (shown in section 1.4) also have bars sticking up, they are used to describe the frequency for quantitative variables; bar chart is reserved to describe graphs that show frequency of categorical variables.

For this class, we do not expect you to create the graphs by hand. You should, however, make sure you understand how they are created.


1.4.1 - Minitab: Graphing One Qualitative Variable

1.4.1 - Minitab: Graphing One Qualitative Variable

Minitab®  – Using Minitab to Construct Pie and Bar Charts

Steps for Creating a Pie Chart

  1. In Minitab choose Graph> Pie Chart.
  2. Choose one of the following, depending on the format of your data:
    • In Category names, enter the column of categorical data that defines the groups.
    • In Summary values, enter the column of summary data that you want to graph.
  3. Choose OK.

Steps for Creating a Bar Chart

  1. In Minitab choose Graph> Bar Chart.
  2. Choose one of the following, depending on the format of your data:
    • Counts of unique values (This is the best option). Choose Simple for the graph type.
    • A function of a variable
    • Values from a table
  3. Choose OK.

Try It!

One survey of 500 Penn State University students about their favorite sport to watch shows that 283 said Football, 126 said Basketball, 45 said Hockey, 46 said Others. Practice with Minitab to create a pie chart and bar chart for favorite sport.

Pie chart of the students favorite sports.

Bar chart of the students favorite sports.


Legend
[1]Link
Has Tooltip/Popover
 Toggleable Visibility