Here is the list for heights in inches for all students who answered the question in our class survey, put in order from lowest to highest.
60, 60, 60, 61, 62, 62, 63, 63, 64, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66, 68, 68, 69, 69, 69, 70, 70, 71, 71, 71, 72, 72, 74, 76, 77, 78
Only 35 subjects responded, so n = 35.
The frequency table reads as follows
_x____f(x)
60_____3
61_____1
62_____2
63_____2
64_____1
65_____2
66_____8
68_____2
69_____3
70_____2
71_____3
72_____2
74_____1
76_____1
77_____1
78_____1
You can check to see if you have missed any entries by finding the sum of the frequencies, which should be equal to n, which in this case is 35.
Friday, June 26, 2009
frequency table to dot plot and to stem and leaf plot
Here is our frequency table for heights in inches.
_x____f(x)
60_____3
61_____1
62_____2
63_____2
64_____1
65_____2
66_____8
68_____2
69_____3
70_____2
71_____3
72_____2
74_____1
76_____1
77_____1
78_____1
Here is a dot plot using this information.
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * * * * * * *
* * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * *
_____________________________________
6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
Here is a stem and leaf, with just two stems, 6 and 7.
6 | 000122334556666666688999
7 | 00111224678
We can make a stem and leaf where each of the stems is split into high and low, 60 to 64, 65 to 69, 70 to 74 and 75 to 79.
6 | 000122334
6 | 556666666688999
7 | 00111224
7 | 678
The idea is that the stem and leaf gives the shape of the data. It's okay to have the stem values go from low to high or high to low, as long as the values are consistent.
7 | 00111224678
6 | 000122334556666666688999
Or if we split the decades, we get this.
7 | 678
7 | 00111224
6 | 556666666688999
6 | 000122334
_x____f(x)
60_____3
61_____1
62_____2
63_____2
64_____1
65_____2
66_____8
68_____2
69_____3
70_____2
71_____3
72_____2
74_____1
76_____1
77_____1
78_____1
Here is a dot plot using this information.
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * *
* * * * * * * * * * * *
* * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * *
_____________________________________
6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8
Here is a stem and leaf, with just two stems, 6 and 7.
6 | 000122334556666666688999
7 | 00111224678
We can make a stem and leaf where each of the stems is split into high and low, 60 to 64, 65 to 69, 70 to 74 and 75 to 79.
6 | 000122334
6 | 556666666688999
7 | 00111224
7 | 678
The idea is that the stem and leaf gives the shape of the data. It's okay to have the stem values go from low to high or high to low, as long as the values are consistent.
7 | 00111224678
6 | 000122334556666666688999
Or if we split the decades, we get this.
7 | 678
7 | 00111224
6 | 556666666688999
6 | 000122334
Labels:
dot plots,
frequency tables,
stem and leaf plots
Five number summary and box and whiskers plot
The five number summary does not list all the information, but instead lists the low value, Q1, Q2, Q3 and the high value. The Q's stand for quartile, which means Q1 is the split for the low 25% of the data, Q2 is the median and Q3 is the split for the high half of the data. You can think of Q1 and Q2 as the medians of the low half and the high half, respectively. The interquartile range or IQR is the distance from the third quartile to the first, which is Q3 - Q1.
Let's look at the list.
7 | 678
7 | 00111224
6 | 556666666688999
6 | 000122334
With 35 entries, the middle entry is the 18th, either counting from top to bottom or bottom to top. That is the 6 marked in red and bold, so Q2 = 66.
There are 17 entries in the top half and 17 in the low half, so the position of the high and low quartiles is 9 away from the top and 9 away from the bottom, respectively. These are marked in bold and blue, with Q1 = 64 and Q3 = 71.
The five number summary is as follows
High = 78
Q3 = 71
Q2 = 66
Q1 = 64
Low = 60
Now we draw the box and whiskers in three steps, shown in the picture.

The first step is to draw the box between the values for the first and third quartiles, with a dotted line at the second quartile. We also can put dots to mark the high and low values.
The next step is computing the Interquartile Range, IQR = Q3 - Q1, which in this case is 71-64 = 7. We mark boundaries called the threshold which will be 1.5 times IQR above the third quartile and 1.5 time IQR below the first quartile. In our case, this would be at 71+ 1.5*7 = 81.5 and 64 - 1.5*7 = 63.5.
The third step is checking for outliers, If the high and low values are within these thresholds, the whiskers extend to the high value to the right and the low value to the left. (Box and whiskers can also be drawn vertically, so change the directions to high an dlow in that case.) If all the data is inside, the whiskers extend all the way to high and low. If there is data outside, those count as outliers and the whiskers are drawn to the highest data inside the high threshold and the lowest data inside the low threshold. One this has been done, we erase the thresholds.
Let's look at the list.
7 | 678
7 | 00111224
6 | 556666666688999
6 | 000122334
With 35 entries, the middle entry is the 18th, either counting from top to bottom or bottom to top. That is the 6 marked in red and bold, so Q2 = 66.
There are 17 entries in the top half and 17 in the low half, so the position of the high and low quartiles is 9 away from the top and 9 away from the bottom, respectively. These are marked in bold and blue, with Q1 = 64 and Q3 = 71.
The five number summary is as follows
High = 78
Q3 = 71
Q2 = 66
Q1 = 64
Low = 60
Now we draw the box and whiskers in three steps, shown in the picture.
The first step is to draw the box between the values for the first and third quartiles, with a dotted line at the second quartile. We also can put dots to mark the high and low values.
The next step is computing the Interquartile Range, IQR = Q3 - Q1, which in this case is 71-64 = 7. We mark boundaries called the threshold which will be 1.5 times IQR above the third quartile and 1.5 time IQR below the first quartile. In our case, this would be at 71+ 1.5*7 = 81.5 and 64 - 1.5*7 = 63.5.
The third step is checking for outliers, If the high and low values are within these thresholds, the whiskers extend to the high value to the right and the low value to the left. (Box and whiskers can also be drawn vertically, so change the directions to high an dlow in that case.) If all the data is inside, the whiskers extend all the way to high and low. If there is data outside, those count as outliers and the whiskers are drawn to the highest data inside the high threshold and the lowest data inside the low threshold. One this has been done, we erase the thresholds.
Standard deviation using the TI-30x IIs
With this list, we can use the TI-30x IIs to get the average and both standard deviations, sx, the standard deviation for a sample and sigmax, the standard deviation for a population.
The buttons to press will be written in red.
Here is a data set we will input.
60, 60, 60, 61, 62, 62, 63, 63,64, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66,
68, 68, 69, 69, 69, 70, 70, 71, 71, 71, 72, 72, 74, 76, 77, 78
[2nd][DATA][ENTER] This puts the calculator in one variable mode.
[2nd][DATA][LEFT][ENTER] This clears the data.
[DATA]
X1= 60 [DOWN]
FRQ= 3 [DOWN]X2= 61 [DOWN]
FRQ= 1 [DOWN]X3= 62 [DOWN]
FRQ= 2 [DOWN]X4= 63 [DOWN]
FRQ= 2 [DOWN]X5= 64 [DOWN]
FRQ= 1 [DOWN]X6= 65 [DOWN]
FRQ= 2 [DOWN]X7= 66 [DOWN]
FRQ= 8 [DOWN]X8= 68 [DOWN]
FRQ= 2 [DOWN]X9= 69 [DOWN]
FRQ= 3 [DOWN]X10= 70 [DOWN]
FRQ= 2 [DOWN]X11= 71 [DOWN]
FRQ= 3 [DOWN]X12= 72 [DOWN]
FRQ= 2 [DOWN]X13= 74 [DOWN]
FRQ= 1 [DOWN]X14= 76 [DOWN]
FRQ= 1 [DOWN]X15= 77 [DOWN]
FRQ= 1 [DOWN]X16= 78 [DOWN]
FRQ= 1 [DOWN]
[STATVAR] This shows the statistics variables.
n x-bar sx sigmax
35[RIGHT]n x-bar sx sigmax
67.37142857[RIGHT]n x-bar sx sigmax
4.747046848[RIGHT]n x-bar sx sigmax
4.67870455[RIGHT]
The buttons to press will be written in red.
Here is a data set we will input.
60, 60, 60, 61, 62, 62, 63, 63,64, 65, 65, 66, 66, 66, 66, 66, 66, 66, 66,
68, 68, 69, 69, 69, 70, 70, 71, 71, 71, 72, 72, 74, 76, 77, 78
[2nd][DATA][ENTER] This puts the calculator in one variable mode.
[2nd][DATA][LEFT][ENTER] This clears the data.
[DATA]
X1= 60 [DOWN]
FRQ= 3 [DOWN]X2= 61 [DOWN]
FRQ= 1 [DOWN]X3= 62 [DOWN]
FRQ= 2 [DOWN]X4= 63 [DOWN]
FRQ= 2 [DOWN]X5= 64 [DOWN]
FRQ= 1 [DOWN]X6= 65 [DOWN]
FRQ= 2 [DOWN]X7= 66 [DOWN]
FRQ= 8 [DOWN]X8= 68 [DOWN]
FRQ= 2 [DOWN]X9= 69 [DOWN]
FRQ= 3 [DOWN]X10= 70 [DOWN]
FRQ= 2 [DOWN]X11= 71 [DOWN]
FRQ= 3 [DOWN]X12= 72 [DOWN]
FRQ= 2 [DOWN]X13= 74 [DOWN]
FRQ= 1 [DOWN]X14= 76 [DOWN]
FRQ= 1 [DOWN]X15= 77 [DOWN]
FRQ= 1 [DOWN]X16= 78 [DOWN]
FRQ= 1 [DOWN]
[STATVAR] This shows the statistics variables.
n x-bar sx sigmax
35[RIGHT]n x-bar sx sigmax
67.37142857[RIGHT]n x-bar sx sigmax
4.747046848[RIGHT]n x-bar sx sigmax
4.67870455[RIGHT]
Wednesday, June 24, 2009
Practice problems for frequency tables
x___f(x)
20__5
19__6
18__7
17__6
16__4
15__4
14__3
13__2
12__1
11__2
Using this data set written as a frequency table, find the average x-bar, n, the median and the mode.
Answers in the comments.
20__5
19__6
18__7
17__6
16__4
15__4
14__3
13__2
12__1
11__2
Using this data set written as a frequency table, find the average x-bar, n, the median and the mode.
Answers in the comments.
Notes for 6/24
I'm going to be putting previews of notes for class before the class, then fleshing in the details and possibly adding more or taking away topics from the list, depending on how far we get.
Wednesday's topics:
Frequency tables: categorical and numerical
Five number summaries
Box and whisker plots
stem and leaf plots
Histograms (also known as bar charts)
Pareto charts
Pie charts
Wednesday's topics:
Frequency tables: categorical and numerical
Five number summaries
Box and whisker plots
stem and leaf plots
Histograms (also known as bar charts)
Pareto charts
Pie charts
Notes for 6/23
Types of numerical data
Coded numerical: Usually, with numbers there is a meaning we can give to the ideas of "more" and "less". With coded data, we don't necessarily have that. Examples are zip codes, social security numbers and driver's licenses. Finding the average zip code of a group of people is meaningless, as is the mid-range and median. Finding the mode means that is the most popular of the possible zip codes, and that does give valuable information.
Ordinal data: Here, the idea of a > b has meaning, but the distance between units isn't the same. In a ranking system, it's better to be first than it is to be second, but we can't say how much better, and we don't know if the difference between first and second is the same as the distance between second and third.
Often, when we switch from an ordered categorical system like grades (A, B, C, D, F) to the numbers used for grade points (4.0, 3.0, 2.0, 1.0, 0.0), the choice of what numbers to use is arbitrary. Is the distance from an A to B really the same as the distance from a C to a D? Is getting an A in one class and a C in another really the same as getting two Bs, since both would be a 3.0 Grade Point Average (GPA). How about 2 As and a D, which is 3.0, or 3 As and an F? Should all those situations be counted the same way?
The feeling of this instructor is that it should not. Again, like coded data, ordinal data can use some of the measures of center, like median and mode, but average and mid-range do not give useful information.
Interval data: This is the minimum requirement need for mean to make sense, the idea that the distance between two numbers, a - b, has a consistent meaning, like degrees in temperature readings or the number of strokes taken to complete a round of golf. In these system, the number zero does not mean the complete absence of a thing, so it dividing one number by another from the data set doesn't give meaningful information, but taking and average is about adding values together and dividing by the number of values, so an average temperature or an average of the scores in four rounds of golf does produce a useful statistic.
Rational data: This is data where not only a - b means something, but also a/b. The difference between interval and rational data is the meaning of the number zero. If zero indicates the complete lack of a thing, then we can talk about something between twice as much as another thing, or 10% less. A lot of numerical systems of measurement are rational, but not all.
Measures of center
Mode
Type of data: any data can be used, but only if there are duplicate values on the list.
Method: Find the most common value. If there is a tie for most common, there can be more than one mode.
Median
Type of data: numerical or ordered categorical
Method: Put the values in order and find the "middle value" which is the value in position (n+1)/2. If n is odd, there is a single median value on the list. If n is even, there are two middle values on the list, and if numerical, take the average of the two. If the data is categorical and the two values aren't the same, the median lies between two categories.
Mean (average)
Type of data: numerical
Method: add up all the numbers and divide by n (or N), the number of things on the list.
Mid-range
Type of data: numerical
Method: (high + low)/2
Coded numerical: Usually, with numbers there is a meaning we can give to the ideas of "more" and "less". With coded data, we don't necessarily have that. Examples are zip codes, social security numbers and driver's licenses. Finding the average zip code of a group of people is meaningless, as is the mid-range and median. Finding the mode means that is the most popular of the possible zip codes, and that does give valuable information.
Ordinal data: Here, the idea of a > b has meaning, but the distance between units isn't the same. In a ranking system, it's better to be first than it is to be second, but we can't say how much better, and we don't know if the difference between first and second is the same as the distance between second and third.
Often, when we switch from an ordered categorical system like grades (A, B, C, D, F) to the numbers used for grade points (4.0, 3.0, 2.0, 1.0, 0.0), the choice of what numbers to use is arbitrary. Is the distance from an A to B really the same as the distance from a C to a D? Is getting an A in one class and a C in another really the same as getting two Bs, since both would be a 3.0 Grade Point Average (GPA). How about 2 As and a D, which is 3.0, or 3 As and an F? Should all those situations be counted the same way?
The feeling of this instructor is that it should not. Again, like coded data, ordinal data can use some of the measures of center, like median and mode, but average and mid-range do not give useful information.
Interval data: This is the minimum requirement need for mean to make sense, the idea that the distance between two numbers, a - b, has a consistent meaning, like degrees in temperature readings or the number of strokes taken to complete a round of golf. In these system, the number zero does not mean the complete absence of a thing, so it dividing one number by another from the data set doesn't give meaningful information, but taking and average is about adding values together and dividing by the number of values, so an average temperature or an average of the scores in four rounds of golf does produce a useful statistic.
Rational data: This is data where not only a - b means something, but also a/b. The difference between interval and rational data is the meaning of the number zero. If zero indicates the complete lack of a thing, then we can talk about something between twice as much as another thing, or 10% less. A lot of numerical systems of measurement are rational, but not all.
Measures of center
Mode
Type of data: any data can be used, but only if there are duplicate values on the list.
Method: Find the most common value. If there is a tie for most common, there can be more than one mode.
Median
Type of data: numerical or ordered categorical
Method: Put the values in order and find the "middle value" which is the value in position (n+1)/2. If n is odd, there is a single median value on the list. If n is even, there are two middle values on the list, and if numerical, take the average of the two. If the data is categorical and the two values aren't the same, the median lies between two categories.
Mean (average)
Type of data: numerical
Method: add up all the numbers and divide by n (or N), the number of things on the list.
Mid-range
Type of data: numerical
Method: (high + low)/2
Labels:
mean,
measures of center,
median,
mid range,
mode
Subscribe to:
Posts (Atom)
