2 Tutorials that teach Matching the Type of Data with the Correct Graph
Take your pick:
Matching the Type of Data with the Correct Graph

Matching the Type of Data with the Correct Graph


In this lesson, students will learn how to match the type of data with the appropriate graph.

See More
Introduction to Psychology

Analyze this:
Our Intro to Psych Course is only $329.

Sophia college courses cost up to 80% less than traditional courses*. Start a free trial now.


This lesson is going to discuss matching the type of data with the correct graph. The objective here is to be able to identify the correct type of graph to use with specific categories of data. You will look at two commonly used graphs in statistics which are bar graphs and histograms. This lesson will cover:
  1. The Difference Between Bar Graphs and Histograms
  2. Bar Graphs
  3. Histograms

1. The Difference Between Bar Graphs and Histograms

Bar graphs show the data for nominal or ordinal variables, while histograms show the data for interval or ratio variables. Remember that nominal variables indicate categories, such as gender. Ordinal variables indicate order such first, second, third, and so forth.


Interval variables provide numbers so that the difference between the two values can be measured. Ratio variables are interval variables, where the only difference is that a value of 0 does mean that something does not exist.


This is a bar graph that represents test scores in a particular class:

File:913-exambar.png The common values, A, B, C, D, and F go from left to right. Each bar indicates how many of this particular grade there were in this particular class for this exam.

Could you use a histogram to demonstrate this particular data set?

A histogram would not be the correct manner to go about illustrating this particular type of data.You would not necessarily be accurately representing the data you are trying to illustrate. The reason is because a histogram is better used for ranges of data where there's an interval as opposed to just an actual nominal variable, which the letter grade is.

2. Bar Graphs

In step eight of the experimental method, process data must be represented so that it can be shared with others. There are many different ways to represent data, and one of which is to use a bar graph. Bar graphs are used from nominal and ordinal variables.

With nominal variables, the categories are listed on the horizontal axis in any order. For ordinal variables, the categories are listed on the horizontal axis in order from smallest to largest. File:914-handedness.png As you see on the graph above, you have a bar graph that represents the handedness of college students. In a hypothetical survey of 1,200 college students, it turns out that 243 are left handed, 774 are right handed, and the other remaining 98 are ambidextrous, they could use either one.

What you're seeing here is individual bars that represent the height of those particular values. How many observations there are of each particular one of these nominal variables, left handed, right handed, or ambidextrous, will determine how high the bar actually is.

One thing to note here is that the bars do not touch one another. This is because they represent unique categories.

3. Histograms

Another method used to represent the range of data is a histogram. The histogram below represents the high temperature in Orlando, Florida for the month of November 2015. It is broken down into specific ranges. The legend at the bottom of the graph indicates what the ranges are. The vertical axis shows the number of days in the month of November that had temperatures in these ranges. The majority of the observations fell within the range between 80 and 90 degrees Fahrenheit. File:915-floridatemp.png

Histograms are used for interval and ratio variables. While they also have bars, the bars actually touch since the horizontal axis shows values that can be subtracted to find the difference between two sets of variables or intervals.

Typically with a histogram, the endpoints would be defined as the boundaries between the two ranges. With a hypothetical range of 80 to 85, as you see highlighted in yellow, that would include the 80 degree mark and everything up to the point just short of 85. Once you reach 85, it would be in the next range. The endpoints, we typically look at the bottom value as being included in the range, whereas the top value would not.

You looked at the difference between bar graphs and histograms, and how to determine which one will be best for a particular set of data. Bar graphs have individual categories for nominal or ordinal variables. Histograms have categories that represent interval or ratio variables. The bars actually touch each other because they represent a range and not individual categories.

Source: This work is adapted from Sophia author Dan Laub.