1.1 Displaying and Describing Categorical & Quantitative Data
description
Transcript of 1.1 Displaying and Describing Categorical & Quantitative Data
![Page 1: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/1.jpg)
1.1 Displaying and Describing Categorical & Quantitative Data
![Page 2: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/2.jpg)
You should be able to:• Recognize when a variable is categorical or
quantitative• Choose an appropriate display for a categorical
variable and a quantitative variable• Summarize the distribution with a bar, pie chart, stem-
leaf plot, histogram, dot plot, box plots• Be able to describe the distribution of quantitative
variables in terms of its shape, center, spread, and outliers.
![Page 3: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/3.jpg)
Types of Graphs
• Bar graph• Histogram• Dot plot• Stem leaf plot• Boxplots
![Page 4: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/4.jpg)
Which graph to use?
• Depends on type of data– For categorigal you will typically
use either a bar or pie graph
– For quantitative you can use dotplot, stemplot, histogram, boxplot.
![Page 5: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/5.jpg)
Categorical Data
• The objects being studied are grouped into categories based on some qualitative trait.
• Can use either use frequency (count) or relative frequency (percentages) to express data
ex- eye color, type of car you drive, gender, etc.
![Page 6: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/6.jpg)
Categorical Data(Single Variable)
Eye Color BLUE BROWN GREEN
Frequency
(COUNTS)
20 50 5
Relative Frequency
20/75 =
.27
50/75=
.66
5/75=
.07
![Page 7: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/7.jpg)
Pie Chart(Data is Counts or Percentages)
Eye Color
Blue , 20, 27%
Brown, 50, 66%
Green, 5, 7%
Blue Brown Green
![Page 8: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/8.jpg)
Bar Graph(Shows distribution of data)
Eye Color
0
10
20
30
40
50
60
Blue Brown Green
Color
Fre
qu
en
cy
Blue
Brown
Green
![Page 9: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/9.jpg)
Quantitative Variables
• Variables that are numerical. They represent a measurable quantity.
• Ex- person’s height, # of hamburgers sold each day of the week, speed of a car, pulse rate, etc
![Page 10: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/10.jpg)
Dot Plot
• Summarizes quantitative data.• Horizontal axis represents measurement
scale.• Plot one dot for each data point.
![Page 11: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/11.jpg)
Dot Plot
160150140130120110100908070Speed
Fastest Ever Driving Speed
Women126
Men100
226 Stat 100 Students, Fall '98
![Page 12: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/12.jpg)
Stem-and-Leaf Plot
• Summarizes quantitative data.• Each data point is broken down into a “stem”
and a “leaf.”• First, “stems” are aligned in a column.• Then, “leaves” are attached to the stems.
![Page 13: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/13.jpg)
Here are the scores from two periods of math class. Students took the same test.
Period 1: 77 79 85 58 97 94 82 81 75 63 60 92 75 98 83 58 72 57 70 81
Period 2: 57 60 88 85 79 70 65 98 97 59 58 65 62 77 77 75 73 69 82 81
![Page 14: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/14.jpg)
Period 1: 76 79 85 58 97 94 82 81 75 63 60 92 75 98 83 58 72 57 70 81
Stem LeafNotice that the data (numerical facts) are numbers between 57-98. Create the stem by listing numbers from 5-9.
Notice that the data (numerical facts) are numbers between 57-98. Create the stem by listing numbers from 5-9.
5
6
7
8
9
Match up the data to the stem-and-leaf. The last digit in 76 will match up with the stem 7. Then the last digit in 79 will match up with the stem 7. Then the last digit in 85 will match up with the stem 8 and this pattern will continue until all data have been recorded in the stem-and-leaf.
Match up the data to the stem-and-leaf. The last digit in 76 will match up with the stem 7. Then the last digit in 79 will match up with the stem 7. Then the last digit in 85 will match up with the stem 8 and this pattern will continue until all data have been recorded in the stem-and-leaf.
6 9
5
8
7 4
2 1
5
3 0
2
5
8
3
8
2
7
0
1
Stem Leaf
5
6
7
8
9
7 7 8 0 3
0 2 5 5 6 9
1 1 2 3 5
2 4 7 8
Rearrange the leaf in numerical order from least to greatest
Rearrange the leaf in numerical order from least to greatestKey: 7 9 means 79Key: 7 9 means 79
A key should be included when making a stem-and-leaf plot.
A key should be included when making a stem-and-leaf plot.
![Page 15: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/15.jpg)
Period 2: 57 60 88 85 79 70 65 98 97 59 58 65 62 77 77 75 73 69 82 81
Stem Leaf5
6
7
8
9
7 8 9 0 2 5 5 9
0 3 5 7 7 9
1 2 5 8
7 8
Key: 7 9 means 79Key: 7 9 means 79
![Page 16: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/16.jpg)
Histogram
• Divide measurement up into equal-sized categories (BIN WIDTH)
• Determine number (or percentage) of measurements falling into each category.
• Draw a bar for each category so bars’ heights represent number (or percent) falling into the categories.
• Label and title appropriately.
![Page 17: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/17.jpg)
Use common sense in determining number of
categories to use.
Between 5 & 15 intervals is preferable
Histogram
![Page 18: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/18.jpg)
Too few categories
18 23 28
0
10
20
30
40
50
60
Age (in years)
Fre
quency (
Count)
Age of Spring 1998 Stat 250 Students
n=92 students
![Page 19: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/19.jpg)
Too many categories
2 3 4
0
1
2
3
4
5
6
7
GPA
Fre
quen
cy (
Co
unt)
GPAs of Spring 1998 Stat 250 Students
n=92 students
![Page 20: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/20.jpg)
Histogram
18 19 20 21 22 23 24 25 26 27
0
10
20
30
40
50
Age (in years)
Fre
quency (
Count)
Age of Spring 1998 Stat 250 Students
n=92 students
![Page 21: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/21.jpg)
Strengths and Weaknesses of Graphs for Quantitative Data
• Histograms– Uses intervals– Good to judge the “shape” of a data– Not good for small data sets
• Stem-Leaf Plots– Good for sorting data (find the median)– Not good for large data sets
![Page 22: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/22.jpg)
Strengths and Weaknesses of Graphs for Quantitative Data
• Dotplots– Uses individual data points– Good to show general descriptions of
center and variation– Not good for judging shape for large data sets
![Page 23: 1.1 Displaying and Describing Categorical & Quantitative Data](https://reader035.fdocuments.in/reader035/viewer/2022081514/568145c7550346895db2cee6/html5/thumbnails/23.jpg)
Summary
• Many possible types of graphs.• Use common sense in reading graphs.• When creating graphs, don’t summarize your
data too much or too little.• When creating graphs, label everything for
others. Remember you are trying to communicate something to others!