Alternative Format


Try This

Organizing Data

In the age of computers, data sets can be quite large. While raw data is clearly important, how we organize the data for analysis is equally important.

Source: Graphs - phongphan5922/iStock/Getty Images

While we have many strategies to organize categorical or discrete data in a meaningful way, these same strategies are sometimes less helpful when working with continuous data.

Categorical or Discrete

A frequency graph with shoe size along the horizontal axis and frequency along the vertical.

Continuous

?

Recall: Continuous data often arises from a measurement and can take on any value that can be represented on a number line within a range.

Due to the nature of continuous data in large data sets, continuous data often consists of a wide variety of values.

Lesson Goals

  • Represent continuous data in stem-and-leaf plots.
  • Organize continuous data into frequency tables using intervals.
  • Answer questions involving continuous data.

Try This!

The organizers of an obstacle course race are giving out prize money. The prize amount is awarded based on the finishing time of the participant according to the following time intervals.

Obstacle course race prize categories:

Category Time (min) Prize
Blazing Fast 30:00 – 34:59 \($25\)
Fast 35:00 – 39:59 \($20\)
Speedy 40:00 – 44:59 \($15\)
Nimble 45:00 – 49:59 \($10\)
Good Pace 50:00 – 54:59 \($5\)
Finisher 55:00 – 59:59 \($0\)

For example, a time in the Speedy interval from 40:00 – 44:59 seconds is awarded \($15\).

Finishing times:

52:13, 41:58, 42:07, 37:10, 49:32, 40:25, 43:51, 58:02, 36:22, 49:54, 45:11, 57:03, 48:31, 54:16, 39:50, 50:48, 47:25, 40:19, 46:39, and 51:54.

Based on the finishing times of the participants, what is the total prize money awarded?

Think about this problem, then move on to the next part of the lesson.


Stem-and-Leaf Plots

Organizing Using the Tens Digit

Due to the variety of values often found in large continuous data sets, we can benefit by organizing the data.

\(\class{timed add1-hl1 remove5-hl1}{27},~\class{timed add2-hl2 remove5-hl2}{33},~\class{timed add3-hl3 remove5-hl3}{41},~\class{timed add2-hl2 remove5-hl2}{36.5},~\class{timed add3-hl3 remove5-hl3}{48},~\class{timed add3-hl3 remove5-hl3}{44},~\class{timed add1-hl1 remove5-hl1}{29},~\class{timed add2-hl2 remove5-hl2}{36},~\class{timed add2-hl2 remove5-hl2}{33},~\class{timed add4-hl4 remove5-hl4}{52},~\class{timed add2-hl2 remove5-hl2}{30},~\class{timed add3-hl3 remove5-hl3}{45},~\class{timed add3-hl3 remove5-hl3}{40.7},~\class{timed add2-hl2 remove5-hl2}{39},~\class{timed add3-hl3 remove5-hl3}{44},~\class{timed add2-hl2 remove5-hl2}{37}\)

When I scanned this data, I noticed there are numbers in the \(20\)s, \(30\)s, \(40\)s, and \(50\)s. Maybe we can organize the data based on the value of the tens digit of the numbers.

One way to do this is to use a stem-and-leaf plot, which groups numbers in the data set together according to their place value.

It's often easiest to start by ordering the data from least to greatest:

\(\class{timed add7-hl2 remove12-hl2}{27},~\class{timed add7-hl2 remove12-hl2}{29},~30,~\class{timed add15-hl2 remove17-hl2}{33},~\class{timed add15-hl2 remove17-hl2}{33},~36,~\class{timed add17-hl2 remove19-hl2}{36.5},~37,~39,~40.7,~41,~44,~44,~\class{timed add26-hl2 remove27-hl2}{45},~48,~52\)

We notice that there are two values in the \(20\)s, \(27\) and \(29\).

To represent these numbers in the stem and leaf plot, we put \(2\) as the stem. This \(2\) represents the grouping of all of the numbers from \(20\) to just less than \(30\), or in other words, the values in the \(20\)s. We then add the leaf of \(7\) to represent the number \(27\) and add the leaf of \(9\) to represent the number \(29\). The \(7\) and \(9\) are separated by a space to show that they are distinct numbers.

Stem Leaf
\(2\) \(~7\) \(~9\)
   
   
   

We can use a similar procedure for the numbers in our data set that are in the \(30\)s. These numbers will have the stem \(3\) to represent the grouping of numbers from \(30\) to just less than \(40\) and then the appropriate leaf for each number. Notice that the number \(33\) is in the data set twice. So it is represented twice in the stem and leaf plot by two leaves of \(3\). The number \(36.5\) in the data set is represented with a leaf of \(6.5\).

Stem Leaf
\(2\) \(~7\) \(~9\)
\(3\) \(~0\) \(~3\) \(~3\) \(~6\) \(~6.5\) \(~7\) \(~9\)
   
   

We can continue to fill in the stem and leaf plot for the rest of the data.

Stem Leaf
\(2\) \(~7\) \(~9\)
\(3\) \(~0\) \(~3\) \(~3\) \(~6\) \(~6.5\) \(~7\) \(~9\)
\(4\) \(~0.7\) \(~1\) \(~4\) \(~4\) \(~5\) \(~8\)
\(5\) \(~2\)

Key: \(2 \vert 7=27\)

To clearly show that the stem is representing the tens digit, we add a key to the bottom of the stem and leaf plot to indicate that a stem of \(2\) and a leaf of \(7\) is equal to \(27\).

Benefits of organizing a continuous data set into a stem-and-leaf plot:

  1. We get an overview of the distribution of the data.
  2. We can still see each individual piece of data.

Notice for instance that the stem of \(4\) and leaf of \(5\) represents the number \(45\) from the data set.

Organizing Using the Hundreds Digit

Here's another data set that we can organize into a stem and leaf plot.

\(\class{timed add3-hl2 remove5-hl2}{498},~502,~527,~589,~590,~591,~601,~617,~617,~656,~681,~722,~749,~807,~873,~913\)

Notice that these numbers are much larger than our first data set. The stem on a stem and leaf plot can be any place value that makes sense for the given data set.

What place value might make sense to use as the stem?

If we used the tens digit as our stem, our stem and leaf plot would have 44 rows. Here is the first part of the plot.

Stem
(Tens Digit)
Leaf
\(49\) \(~8\)
\(50\) \(~2\)
\(51\)  
\(52\) \(~7\)
\(53\)  
\(54\)  
\(55\)  
\(56\)  
\(57\)  
\(58\) \(~9\)
\(59\) \(~0\) \(~1\)
\(\vdots\) \(\vdots\)

To represent the number \(498\), we would need a row for a stem of \(49\) since \(498\) consists of \(49\) tenths. The leaf would be \(8\). In a similar manner, we would need a stem of \(50\), \(51\), \(52\), and so on, all the way up to \(91\). Notice that there is no leaf in the row for the \(51\) stem. This indicates that there was no number in the data set between \(510\) and \(520\). This row is still included in the stem and leaf plot. However, there are no leaves in this row. I'm thinking that a stem and leaf plot with \(44\) rows is too large for our purposes.

For this data set, it might make more sense to use the hundreds digit as our stem. That's more manageable. In this table, the number \(498\) has a stem of \(4\) and a leaf of \(98\) And similarly, for the other numbers in the data set.

Stem
(Hundreds Digit)
Leaf Frequency
\(4\) \(~98\) \(1\)
\(5\) \(~02\) \(~27\) \(~89\) \(~90\) \(~91\)  \(5\)
\(6\) \(~01\) \(~17\) \(~17\) \(~56\) \(~81\)  \(5\)
\(7\) \(~22\) \(~49\)  \(2\)
\(8\) \(~07\) \(~73\) \(2\)
\(9\) \(~13\) \(1\)

Key: \(4 \vert98 = 498\)

With the data set organized in this stem and leaf plot, we can quickly make some observations about the data.

  • The minimum value is \(498\).
  • The maximum value is \(913\).
  • The range is \(913-498 \class{timed in14}{= 415}\).
  • \(617\) occurs twice in the data.

With the data organized in this way, we can also include the frequency of each of the groupings. The frequency is how many numbers in the data set occur in that grouping. For instance, there are five numbers in the \(600\)s, and two numbers in the \(800\)s.

Example 1

An experiment was done to determine how long a typical AA battery will last.

Experimenter's recorded how many minutes each battery powered a flashlight.

\(\class{timed add5-hl2 remove8-hl2}{361},~413,~375,~415,~402,~376,~398,~418,~419,~425,\\ 421,~420,~423,~426,~418,~405,~424,~407,~416,~413\)

Display the data in a stem-and-leaf plot.

Solution

Notice that the data set only has numbers that have hundreds digit of \(3\) or \(4\). So if we chose to use a stem that represents the hundreds digit, we would only have two groupings the \(300\)s and the \(400\)s. Only two groupings may not be the best option for displaying this data. Let's try creating a stem and leaf plot using a stem that represents the tens digit.

For the number \(361\), the stem is \(36\) to represent \(36\) tens, and the leaf is \(1\).

Here's the stem and leaf plot for the rest of the data.

Stem Leaf
\(36\) \(~1\)
\(37\) \(~5\) \(~6\)
\(38\)  
\(39\) \(~8\)
\(40\) \(~2\) \(~5\) \(~7\)
\(41\) \(~3\) \(~3\) \(~5\) \(~6\) \(~8\) \(~8\) \(~9\)
\(42\) \(~0\) \(~1\) \(~3\) \(~4\) \(~5\) \(~6\)

Key: \(36 \vert 1 = 361\)

With the data organized in a stem and leaf plot, we can see that there are some numbers less than \(400\). However, the majority of the numbers are all over \(400\). This indicates that most of the batteries lasted longer than \(400\) minutes before running out of power. We can also see that the minimum is \(361\) and the maximum is \(426\). This produces a range of \(65\).

A stem-and-leaf plot organizes data in a manner that allows us to see the general distribution of the data while still allowing us to see the individual pieces of data.

Check Your Understanding 1

Question

How many numbers in the data set are less than \(831\)?

Stem Leaf
\(81\) \(~3\)
\(82\) \(~2.5\) \(~3.5\) \(~8\)
\(83\)  
\(84\) \(~3\) \(~3.5\) \(~9.5\)

Key: \(81 \vert 3 = 813\)

Answer

\(4\)

Feedback

There are \(4\) numbers in the data set that are less than \(831\). They are \(813\), \(822.5\), \(823.5\), and \(828\).


Frequency Tables for Continuous Data

Organizing Data Into Intervals

A stem-and-leaf plot organizes continuous data into groupings so that we can learn more about the distribution of the data.

\(60,~61,~\class{timed add3-hl2 remove5-hl2}{65},~67,~68,~68,~69,~69,~70,~71,~73,~74,~74,~77\)

Here's a data set and the stem and leaf plot that represents the data.

Stem-and-Leaf Plot

Stem Leaf
\(6\)

\(~0\) \(~1\) \(~5\) \(~7\) \(~8\) \(~8\) \(~9\) \(~9\)

\(7\)

\(~0\) \(~1\) \(~3\) \(~4\) \(~4\) \(~7\)

Key: \(6 \vert 0 = 60\)

Notice that due to the specific numbers in this data set, our stem has to be the tens digit. This creates only two groupings in our stem and leaf plot since the data set only has values in the \(60\)s and \(70\)s.

This representation with only two groupings might hide some possible trends in the data that could be exposed if we had more groupings. While a stem and leaf plot has a certain structure that we follow, maybe we could borrow the idea of grouping the continuous data but come up with our own intervals for the groupings.

For instance, for this data set we could have four intervals, the first from \(60\) – \(65\), the second from \(65\) – \(70\), the third from \(70\) – \(75\) and the fourth from \(75\) – \(80\). You may have noticed that the intervals seem to overlap. The number 65 in the data set could belong to the interval of \(60\) – \(65\) or \(65\) – \(70\).

By convention, a number on the boundary between two intervals is counted in the higher interval. So the number \(65\) will be counted in the higher interval of \(65\) – \(70\).

We can determine how many numbers in our data set have a value in each interval and record that as the frequency for the interval.

Frequency Table 

Interval Frequency
\(60\) – \(65\) \(2\)
\(65\) – \(70\) \(6\)
\(70\) – \(75\) \(5\)
\(75\) – \(80\) \(1\)

With our completed table, we have created a frequency table using intervals for the continuous data set.

This is a common way to organize continuous data. It allows us to notice that many of the numbers are in the middle two intervals since these two intervals have a larger frequency than the other intervals. This was not as obvious in the stem and leaf plot that only had 2 groupings.

However, we've given up some information to make this observation. Notice that in the stem and leaf plot, we can still identify each piece of data from the data set. While in the frequency table, we do not know the particular value of each piece of data.

Choice of Interval

Mitsue enjoys windsurfing. She has a data set for the daily maximum wind speed in km/h for April. 

The data set is too large to list in its entirety but a portion of it is shown.

\(27,~34,~42,~18,~45,~51,\ldots\)

Mitsue wants to organize the continuous data into intervals to make it easier to understand the different wind speeds for the month. But she isn't sure how many intervals to use. Mitsue created two different frequency tables to organize the data.

Which table might be most meaningful for displaying the data?

Table 1

Description Interval (km/h) Frequency
Low \(0\) – \(20\) \(2\)
Medium \(20\) – \(40\) \(23\)
High \(40\) – \(60\) \(5\)

Table 2

Description Interval (km/h) Frequency
Very low \(0\) – \(10\) \(0\)
Low \(10\) – \(20\) \(2\)
Medium low \(20\) – \(30\) \(4\)
Medium high \(30\) – \(40\) \(19\)
High \(40\) – \(50\) \(3\)
Very high \(50\) – \(60\) \(2\)
Solution

When organizing continuous data, we have a choice in the size of the intervals that we used to group the data. It is important that we make an appropriate choice of interval size so that the data is organized in a meaningful way.

In the first frequency table, the data is organized into three intervals. The frequencies for these intervals provide Mitsue with a very general idea of the number of low, medium, and high wind days in the month. However, since wind speed is very important to the sport of windsurfing, Mitsue may want to have a frequency table that provides more detail.

The second frequency table has six intervals. Notice how the frequencies in this table provide more detail as to the distribution of daily wind speeds in the month. While the first table shows that there were 23 values between \(20\) and \(40\) in the data set, the second table shows greater detail for these same 23 values indicating that the majority of these, 19, were more specifically between \(30\) and \(40\) while the other four were between \(20\) and \(30\).

Mitsue might appreciate this added information if her favorite wind speed for windsurfing is between \(30\) and \(40\) km/h.

Therefore, Mitsue might find Table 2 to be the most meaningful way to display the data.

Notice that when organizing data, we have a choice of what divisions to use for the intervals, and we should consider the particular data set and the purpose of organizing the data when making that choice.

Explore This

Description

When organizing data, we have a choice of what divisions to use for the intervals. Explore different interval sizes for the data set below and observe how the frequency table changes.

Data: \(\{1,~1,~2.5, ~3,~3.5,~5,~6,~6.5,~6.5,~6.5,~7.5,~8,~8,~10.5,~10.5,~11\}\)

Interval Length: 2

Interval \(1\) – \(3\) \(3\) – \(5\) \(5\) – \(7\) \(7\) – \(9\) \(9\) – \(11\) \(11\) – \(13\)
Frequency \(3\) \(2\) \(5\) \(3\) \(2\) \(1\)

Interval Length: 4

Interval \(1\) – \(5\) \(5\) – \(9\) \(9\) – \(13\)
Frequency \(5\) \(8\) \(3\)

Interval Length: 6

Interval \(1\) – \(7\) \(7\) – \(13\)
Frequency \(10\) \(6\)
Online Version

https://ggbm.at/PfujeDz7

Interval Size

Here's a frequency table with intervals for a large continuous data set of numbers between \(0\) and \(200\). Notice that all four intervals have the same frequency.

What do you notice about this table?

Interval Frequency
\(0\) – \(20\) \(500\)
\(20\) – \(60\) \(500\)
\(60\) – \(120\) \(500\)
\(120\) – \(200\) \(500\)

When intervals all have the same frequency as in this table, it gives the feeling that the data is spread evenly across all values between \(0\) and \(200\). However, you may have noticed that the intervals in this frequency table are not of equal size.

For example, the first interval is from \(0\) – \(20\) and represents a range of \(20\). While the second interval is from \(20\) – \(60\) which represents a range of \(40\). Each interval in this frequency table is a different size. As readers, we should consider interval size when inspecting information in a table.

Here is a frequency table for the same data, but this time the intervals are all of equal size.

Interval Frequency
\(0\) – \(50\) \(900\)
\(50\) – \(100\) \(500\)
\(100\) – \(150\) \(400\)
\(150\) – \(200\) \(200\)

Notice that now the data is not spread evenly across all values. In fact, almost half of the values are in the first interval and there are far less values in the greatest interval.

As readers:

  • We should consider interval size when inspecting the information in a table.
  • We often assume that intervals are the same size.
  • Aim to use intervals of equal size.

Applications

Try This Problem Revisited

Finishing times:

52:13, 41:58, 42:07, 37:10, 49:32, 40:25, 43:51, 58:02, 36:22, 49:54,
45:11, 57:03, 48:31, 54:16, 39:50, 50:48, 47:25, 40:19, 46:39, and 51:54

Based on the finishing times of the participants, what is the total prize money awarded? 

Solution

The organizers of an obstacle course race wanted to use the finishing times of the participants to determine the total prize money awarded.

Let's add a frequency column to the prize table to help us organize the prize money awarded.

Category Time (min) Prize Frequency Money Awarded
Blazing Fast 30:00 – 34:59 \($25\) \(0\) \(0 \times $25 = $0\)
Fast 35:00 – 39:59 \($20\) \(3\) \(3 \times $20 \class{timed in6}{= $60}\)
Speedy 40:00 – 44:59 \($15\) \(5\) \(5 \times $15 = $75\)
Nimble 45:00 – 49:59 \($10\) \(6\) \(6 \times $10 = $60\)
Good Pace 50:00 – 54:59 \($5\) \(4\) \(4 \times $5 = $20\)
Finisher 55:00 – 59:59 \($0\) \(2\) \(2 \times $0 = $0\)

Notice that each category represents an interval of finishing times. The first interval is between 30:00 – 34:59. Looking through the finishing times, we notice that there are no times in this interval. The organizers will therefore, not need any \($25\) prizes.

In the second interval, there are three finishing times which means they will need three \($20\) prizes which totals \($60\).

We can continue through the rest of the intervals to determine the frequency of each prize and the money awarded for that prize. To determine the total prize money awarded, we can add the money awarded from each category. These values add to \($215\).

Therefore, the total prize money awarded at the obstacle course race is \($215\).

Example 2

A basketball coach has a data set of the shots that the opponent's top player made in the last game. Here are the distances (m) from the hoop for the \(12\) basketball shots.

\(7.3,~6.4,~1.5,~1.2,~5.9,~7.4,~6.8,~7.2,~7.0,~2.1,~5.8,~7.2\)

Organize the distances into three intervals of equal size and determine the percentage of shots in each interval.

Solution

There are many ways to do this. We'll present one choice.

Ordered distances from least to greatest:

\(1.2,~1.5,~2.1,~5.8,~5.9,~6.4,~6.8,~7.0,~7.2,~7.2,~7.3,~\class{timed add5-hl2 remove6-hl2}{7.4}\)

When we order the distances from least to greatest, we notice that the farthest distance is \(7.4\) m.

To have three intervals of equal distance, we could use an interval size of \(2.5\) m. 

Let's set up a frequency table for the intervals. The coach also wanted the percentage of shots in each interval.

Shot Distance (m) Frequency Percentage
\(0\) – \(2.5\) \(3\) \(\dfrac{3}{12} \class{timed in12}{= 25\%}\)
\(2.5\) – \(5.0\) \(0\) \(\dfrac{0}{12} = 0\%\)
\(5.0\) – \(7.5\) \(9\) \(\dfrac{9}{12} \class{timed in15}{= 75\%}\)

The three intervals in this situation may represent shots close to the net, mid-range shots, and long-range shots. The coach may be able to use the information in the frequency table to help devise a defensive strategy to defend against the opponent's top player.

 

Check Your Understanding 2

Question

The table represents the distance travelled by commuters each day.

Which of the following questions can be answered using information in the frequency table? Select all that apply.

Interval (km) Frequency
\(0\) – \(20\) \(23\)
\(20\) – \(40\) \(45\)
\(40\) – \(60\) \(12\)
\(60\) – \(80\) \(5\)
  1. How many commuters were studied?
  2. Does being from a big city mean that a commuter has a longer drive?
  3. What percent of the commuters drive for less than \(50\) km per day?
  4. How many commuters drive less than \(40\) km per day?
Answer
  1. How many commuters were studied?
  1. How many commuters drive less than \(40\) km per day?
Feedback

Can Be Answered Using Frequency Table

  • How many commuters were studied?
    • Add the frequencies to find that \(85\) commuters were studied.
  • How many commuters drive less than \(40\) km per day?
    • \(68\) commuters drive less than \(40\) km per day.

Cannot Be Answered Using Frequency Table

  • Does being a big city mean that a commuter has a longer drive?
    • This cannot be answered because we do not have any information about the location the study was done.
  • What percent of the commuters drive for less than \(50\) km per day?
    • This cannot be answered because \(50\) is not the endpoint of an interval.

Take It With You

Sadie and Ming are researching the daily temperature of a beach vacation destination. They are hoping for lots of nice weather for beach days.

They each organized the same data set of \(20\) temperatures.

Sadie's Table

  Temp. (\(^\circ\)C) Freq.
Cold \(0\) – \(10\) \(5\)
Cool \(10\) – \(20\) \(4\)
Warm \(20\) – \(30\) \(8\)
Hot \(30\) – \(40\) \(3\)

Ming's Table

  Temp. (\(^\circ\)C) Freq.
Cold \(0\) – \(8\) \(1 \)
Cool \(8\) – \(16\) \(8\)
Mild \(16\) – \(24\) \(4\)
Warm \(24\) – \(32\) \(4\)
Hot \(32\) – \(40\) \(3\)
  1. What conclusion do you think Sadie came to about the weather for this vacation spot?
  2. What conclusion do you think Ming came to about the weather for this vacation spot?
  3. Can you create a possible data set of \(20\) temperatures that would generate both Sadie's and Ming's frequency tables? Your goal is to make one data set of \(20\) numbers that will work with both of these frequency tables.