Each student in the class should complete the following survey. The data collected will be used in your homework problems. Notice that the variables in each question are categorical.
[Figure1]
Frequency Tables and Bar Graphs
When analyzing categorical data (also called qualitative data), bar graphs are commonly used. A bar graph is a graph in which each bar shows how frequently a given category occurs. It is usually helpful to organize the data in a frequency table, a table that shows the number of occurrences for each category, before constructing the bar graph. The bars can go either horizontally or vertically, they should be of consistent width, and need to be equally spaced apart. The categories are separate and can be put in any order along the axis. It is common to put them in alphabetical order, but not needed. And, as with all of the graphs you will construct, be sure to use a consistent scale, include a title, labels for axes, numbers to mark axes as necessary, and a key whenever needed.
Example 1
A bar graph could show the types of pets of a group of students for example. Here are the types of pets owned by a class of 33 geometry students.
a) Why do the numbers add up to more than 33?
b) Construct a bar graph to show this class' data.
c) Describe what the graph shows.
[Figure4]
Solution
a) They add up to more than 33 because some students own more than one type of pet and are being counted in more than one category.
b) Here is a bar graph that was created using Excel:
Example 2
A great deal of electronic equipment ends up in landfills as people update their computers, TVs, cell phones, etc. This is a concern because the chemicals from batteries and other electronics add toxins to the environment. This Electronic Waste has been studied in an effort to decrease the amount of pollution and hazardous waste. The following frequency table shows the amount of tonnage of the most common types of electronic equipment discarded in the United States in 2005. Construct a bar graph and comment on what it shows.
Electronics Discarded in the US (2005). Source: National Geographic, January 2008. Volume 213 No.1, pg 73.
Solution
The type of electronic equipment is a categorical variable, and therefore, this data can easily be represented using the bar graph below:
[Figure6]
According to this 2005 data, the most commonly disposed of electronic equipment was CRT TV's, by more than 19 times that of the next type of electronic equipment.
Pie Charts
Pie charts (or circle graphs) are used extensively in statistics. These graphs are used to display categorical data and appear often in newspapers and magazines. A pie chart shows each category (sectors) as a part of the whole (circle). The relationships between the parts, and to the whole, are visible in a pie chart, by comparing the sizes of the sectors (slices). Constructing a pie chart uses the fact that the whole of anything is equal to 100%-all of the sectors equal the whole circle. Remember from geometry that the central angles of a circle total 3600. So, in regard to pie charts, 3600 = 100% of the circle. The sections should have different colors or patterns to enable an observer to clearly see the difference in size of each section.
Pie charts are the appropriate choice when you are working with categorical data that covers 100%. It is not an appropriate choice when you aren't working with 100% or when choices may include overlaps. For example, when we asked every student in this class to list the pets they currently have, we found some students who have more than one pet. So a pie chart would not be an appropriate way to display that data. The sectors in a circle graph do not allow for overlaps such as this. Another time when pie charts are not appropriate is when the choices do not cover all possibilities. For example, the electronic waste example above does not include every possibility, so the categories would not add to 100%. In such cases a bar graph would be a more appropriate choice, because it allows for overlaps and does not need to cover exactly 100% of the choices.
Example 3: How to Construct a Pie Chart
The Red Cross Blood Donor Clinic had a very successful morning collecting blood donations. Within three hours twenty-five people had made donations. The types of blood dontated are:
Construct a pie chart to represent the data.
Solution
Step 1: Determine the total number of donors.
Step 2: Express each donor number as a percent of the whole by using the formula
where f is the frequency and n is the total number.
Step 3: Express each donor number as the number of degrees of a circle that it represents by using the formula
where f is the frequency and n is the total number.
Step 4: Using a protractor or technology to make the central angles, graph each section of the circle.
Step 5: Write the label and correct percentage inside the section. Color each section a different color. Be sure to include a title, and a key if needed.
From the graph, you can see that more donations were of Type O than any other type. The least amount of blood collected was of Type AB. In order to create a pie graph by using the circle, it is necessary to use the percent of a section to compute the correct degree measure for the central angle. The blood type graph labels each section with context and percent, and not the degrees. This is because degrees would not be meaningful to an observer trying to interpret the graph. If the sections are not labeled directly as they are in that example, it is necessary to include a key so that the observers will know what each section represents.
Graphs on Computer Software
The above pie chart could be created by using a protractor and graphing each section of the circle according to the number of degrees needed for each section. However, bar graphs and pie charts are most frequently made with computer software programs such as Excel or Google Docs. You will be asked to create bar graphs and pie charts using computer software. When you do this, be sure to include titles, labels, and keys when needed. Be sure to 'fix' the graph generated by the software program so that it looks the way you want it to look and shows clearly what ever it is you are trying to convey.
Example 4
Comment on what the graph shows:
Another type of graph that is sometimes used to display categorical data is a pictograph. A pictograph is basically a bar graph with pictures instead of bars. A problem with pictures in graphs is that the area that they take up can mislead the observer. The width and height both increase as the picture gets larger. Pictographs are often used in ads and magazines. They can be a fun way to make the graphs more interesting in appearance. However, pictographs can be misleading and can be distracting, so they are generally avoided in serious statistical representations.
Example 5
The following graph compares the number of wins for high school football teams during the 2010 seasons. Explain why the pictograph is misleading.
[Figure9]