Download presentation
Presentation is loading. Please wait.
Published byMabel Morris Modified over 9 years ago
1
Chapter 4 Displaying and Summarizing Quantitative Data
2
Slide 4- 2 Dealing With a Lot of Numbers… Summarizing the data will help us when we look at large sets of quantitative data. The best thing to do is We can’t use bar charts or pie charts for quantitative data, since those displays are for categorical variables.
3
Slide 4- 3 Excel Data Sets and Software Excel data sets for some examples used in the book: http://media.pearsoncmg.com/aw/aw_deveaux_introstats _3/datasets/stat3dv_datasets_excel.html Could use add-in for Excel – DDXL comes with the CD in book – to produce most of the graphs in presentations.
4
Histograms: Earthquake Magnitudes US National Geophysical Data Center data set Who: 2410 earthquakes known to have caused tsunamis What: Magnitude (Richter scale 2 ), depth (m), date, location, and other variables When: From 2000 B.C.E. to the present All over the earth Slide 4- 4
5
Slide 4- 5 Histograms: Earthquake Magnitudes (cont.) First, slice up the entire span of values covered by the quantitative variable into equal-width piles called bins: Min=3.0 Max=9.2 Each bin has a width of 0.2 The bins and the counts in each bin give the distribution of the quantitative variable and provide the building blocks for the histogram.
6
Slide 4- 6 Histograms: Earthquake Magnitudes (cont.) A histogram plots Here is a histogram of earthquake magnitudes
7
Slide 4- 7 Histograms: Earthquake magnitudes (cont.) A relative frequency histogram displays the Faithful to the area principle. Here is a relative frequency histogram of earthquake magnitudes:
8
Slide 4- 8 Stem-and-Leaf Displays Stem-and-leaf displays show the distribution of a quantitative variable while preserving the individual values. Contain all the information found in a Satisfies the Shows the distribution
9
Slide 4- 9 Stem-and-Leaf Example Compare the histogram and stem-and-leaf display for the pulse rates of 24 women at a health clinic.
10
Slide 4- 10 Constructing a Stem-and-Leaf Display First, cut each data value into leading digits (“stems”) and trailing digits (“leaves”). Use the stems to label the bins. Use only for each leaf If working with whole numbers, use the one’s digit for the leaf If working with decimals, round to the tenths place (1 st decimal) and use that for the leaf
11
Slide 4- 11 Dotplots A dotplot places a dot along an axis for each Can be horizontal or vertical. The dotplot to the right shows Kentucky Derby winning times, plotting each race as its own dot.
12
Slide 4- 12 Think Before You Draw, Again Now we have options for data displays Think carefully about which : The data are values of a quantitative variable whose units are known. If satisfied, create a stem-and-leaf display, a histogram, or a dotplot
13
Slide 4- 13 Shape, Center, and Spread When describing a distribution, make sure to always tell about three things:,, and …
14
Slide 4- 14 What is the Shape of a Distribution? Does the histogram have a single, central hump or several separated humps? Is the histogram symmetric? Do any unusual features stick out?
15
Slide 4- 15 Humps Does the histogram have a single, central hump or several separated bumps? Humps in a histogram are called One main peak: Two peaks: Three or more peaks:
16
Slide 4- 16 Humps (cont.) A bimodal histogram has two apparent peaks: Diastolic Blood Pressure
17
Slide 4- 17 Symmetry Is the histogram symmetric? If you can fold the histogram along a vertical line through the middle and have the edges match pretty closely,
18
Slide 4- 18 Symmetry (cont.) The thinner ends of a distribution are called the tails If one tail stretches out farther than the other, the histogram is said to be In the figure below, the histogram on the left is
19
Slide 4- 19 Anything Unusual? Do any unusual features stick out? Sometimes it’s the unusual features that tell us something interesting or exciting about the data. You should always mention any stragglers, or outliers, that stand off away from the body of the distribution. Are there any gaps in the distribution? If so, we might have data from more than one group.
20
Slide 4- 20 Anything Unusual? (cont.) The following histogram has —there are three cities in the leftmost bar:
21
Slide 4- 21 Center of a Distribution – Median The is the value with exactly half the data values below it and half above it. It is the (once the data values have been ordered) that divides the histogram into two equal areas. It has the as the data.
22
Slide 4- 22 Spread: Home on the Range Always report a measure of spread along with a measure of center when describing a distribution numerically. The range of the data is the Disadvantage: A single extreme value can make it very large and not representative of the data overall.
23
Slide 4- 23 Spread: The Interquartile Range The interquartile range (IQR) lets us ignore extreme data values and concentrate on the middle of the data. To find the IQR, we first need to know what are…
24
Slide 4- 24 Spread: The Interquartile Range (cont.) Quartiles divide the data into four equal sections. One quarter of the data lies below the lower quartile, One quarter of the data lies above the upper quartile, The difference between the quartiles is the interquartile range (IQR), so IQR =
25
Slide 4- 25 Spread: The Interquartile Range (cont.) Lower quartile = 25 th percentile Upper quartile = 75 th percentile of the data The IQR contains the of the values of the distribution, as shown in figure:
26
Slide 4- 26 5-Number Summary The 5-number summary of a distribution reports the The 5-number summary for the recent tsunami earthquake Magnitudes is:
27
Slide 4- 27 Summarizing Symmetric Distributions – The Mean When the data is symmetric, use the instead of the We use the Greek letter sigma to mean “sum” and write: The formula says that to find the mean,
28
Slide 4- 28 The mean feels like the center because it is the point where the histogram balances: Summarizing Symmetric Distributions – The Mean (cont.)
29
Slide 4- 29 Median is resistant to values that are extraordinarily large or small Mean or median? If the histogram is and there are no outliers, use the However, if the histogram is or with outliers, you are better off with the Summarizing Symmetric Distributions – The Mean (cont)
30
Slide 4- 30 What About Spread? The Standard Deviation The takes into account how far each data value is from the mean. A is the distance that Since adding all deviations together would total zero, we square each deviation and find a type of average for the deviations.
31
Slide 4- 31 What About Spread? The Standard Deviation (cont.) The variance, notated by, is found by summing the squared deviations and (almost) averaging them:
32
Slide 4- 32 What About Spread? The Standard Dev (cont.) The variance is measured in squared units! The is just the square root of the variance and is measured in the same units as the original data.
33
Slide 4- 33 Thinking About Variation Recall: Statistics is about variation When the data values are tightly clustered around the center of the distribution, the IQR and standard deviation When the data values are scattered far from the center, the IQR and standard deviation
34
Slide 4- 34 Tell - Draw a Picture When telling about quantitative variables, start by making a histogram or stem-and- leaf display and discuss the shape of the distribution.
35
Slide 4- 35 Tell - Shape, Center, and Spread Next, always report the of its distribution, along with a and a If the shape is If the shape is, report the
36
Slide 4- 36 Tell - What About Unusual Features? If there are multiple modes, try to understand why If there are any clear outliers and you are reporting the mean and standard deviation, report them with the outliers present and with the outliers removed
37
Slide 4- 37 What Can Go Wrong? Don’t make a histogram of a categorical variable— use a Don’t look for of a bar chart
38
Slide 4- 38 What Can Go Wrong? (cont.) Choose a bin width appropriate to the data. Changing the bin width changes the appearance of the histogram.
39
Slide 4- 39 What Can Go Wrong? (cont.) Don’t forget to sort the values before finding the median or percentiles. Don’t worry about small differences when using different methods. Don’t compute numerical summaries of a categorical variable. Don’t round in the middle of a calculation. Watch out for multiple modes. Beware of outliers.
40
Slide 4- 40 What have we learned? Make a picture!! With quantitative data use a histogram, stem-and- leaf display, or dotplot. Summarize distributions of quantitative variables numerically. Measures of center for a distribution include the Measures of spread include
41
Slide 4- 41 Use the median and IQR when the distribution is Use the mean and standard deviation if the distribution is Think about the type of variable we are summarizing. The Quantitative Data Condition serves as a check that the data are, in fact, quantitative. What have we learned? (cont.)
42
Slide 4- 42 Class Exercise Number of days six patients of heart transplant survived: 3, 64, 623, 15, 46, 64 a. Find the median b. Find the mean c. Find the mode d. Find the quartiles e. Find the range and inter-quartile range (IQR) of the data set.
43
Slide 4- 43 Class Exercise (cont.) Data: 3, 64, 623, 15, 46, 64 a. What is the median survival time?
44
Slide 4- 44 Class Exercise (cont.) Ordered Data: 3, 15, 46, 64, 64, 623 b. What is the mean survival time?
45
Slide 4- 45 Class Exercise (cont.) Ordered Data: 3, 15, 46, 64, 64, 623 c. What is the mode of the survival times?
46
Slide 4- 46 Class Exercise (cont.) Ordered Data: 3, 15, 46, 64, 64, 623 d. What are the quartiles of the survival times?
47
Slide 4- 47 Class Exercise (cont.) Ordered Data: 3, 15, 46, 64, 64, 623 e. Find the range and inter-quartile range (IQR) of the survival times
48
Slide 4- 48 Class Exercise Find the standard deviation of the following data set:5465537
49
Slide 4- 49 Class Exercise (cont.) Ordered data: 3, 4, 5, 5, 5, 6, 7 Observation (obs – mean)(obs – mean) 2 3 4 5 50(0) 2 = 0 50 61(+1) 2 = 1 72(+2) 2 = 4 Summation:
50
Slide 4- 50 Class Exercise (cont.) Recall: Thus s 2 = Taking the square root of the variance we obtain the standard deviation: SD =
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.