Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 4 Displaying and Summarizing Quantitative Data Math2200.

Similar presentations


Presentation on theme: "Chapter 4 Displaying and Summarizing Quantitative Data Math2200."— Presentation transcript:

1 Chapter 4 Displaying and Summarizing Quantitative Data Math2200

2 Example: Tsunamis and Earthquake - The most disastrous tsunami - Dec 26, 2004, in Sumatra - Earthquake: magnitude 9.0 - Killed 225,000 people

3 Question Was the earthquake that caused it truly unusually big? US National Geophysical Data Center Data on the magnitude of underlying earthquakes for 1240 historical tsunamis How do we learn the data YearCountryMagnitude -1300GREECE6 -479GREECE6.7 -426GREECE7.1 -373GREECE7.3 -330GREECE7 -227GREECE7.2 -57ALBANIA6.6 -26CYPRUS ISLAND7.3 2003NEW ZEALAND7.5 2003JAPAN8.1 2003JAPAN6.8 2003USA7.2 2004INDONESIA6.5 2004JAPAN7.2 2004JAPAN7.4 2004INDONESIA9

4 Histogram Display a quantitative variable by discretizing it into equal-width bins Counts for the bins give the distribution of the quantitative variable Make a bar chart based on these counts and align the bar according to the bin values, we get a histogram –Do not leave gaps between bars

5

6 With different number of bins

7 Summarize the histogram Magnitudes are typically around 7 Most are between 5.5 and 8.5 Minimum is around 3 Maximum is around 9 Why there is a sharp peak in the middle?

8 How to make a histogram using TI-83? Input the data –Suppose our data is 1.34, 2.21, 3.64, 6.2 –2nd + ( + 1.34, 2.21, 3.64, 6.2 + 2 nd + ) + STO + 2 nd + 1 –That gives L1 = {1.34, 2.21, 3.64, 6.2} Make the histogram –Press 2 nd +Y= (STAT PLOT) –You will see STAT PLOTS 1: Plot 1 … Off –Move the cursor to highlight 1:, then press ENTER –Select the following: ON Type: histogram (3 rd one) Xlist: L1 –Press ZOOM –Press 9 To adjust the graph window, press WINDOW and change the options

9 Stem-and-Leaf Plot John W. Tukey Useful for small data sets Similar to histogram, but the bars give numerical values more than counts 5 | 6 6 | 0444 6 | 8888 7 | 2222 7 | 6666 8 | 000044 8 | 8 Pulse-rates of 24 woman (8|8 means 88 beats/min)

10 Handwriting Handwriting may not give the same space for different digits. That violates the area principle When you make a stem-and-leaf plot, be sure to give each digit the same width.

11 Dotplot Replace digits in stem-and-leaf plot by dots

12 How to summarize the distribution of a quantitative variable? shape mode, symmetry, outlier center mean, median Spread sd, IQR

13 Shape Peak / Mode –Is there a peak? If so, how many peaks? –For quantitative variables, the mode is where the peak is at. –No peak: uniform –One peak: unimodal –Two peaks: bimodal –More than two peaks: multimodal

14

15 Shape Symmetry –Tail: thinner ends of a distribution –Skewed: If one tail stretches out farther than the other, we say the histogram is skewed to the side of the longer tail

16 Shape Outliers –Those that stand away from the body of the distribution –The judgment is vague sometimes

17 Center When a histogram is symmetric and unimodal, the center is obvious –The corresponding numerical value can be taken as the sample average, or say the sample mean –The sample mean is actually where the histogram balances

18 Center For skewed distribution –The sample mean is dragged to the side of the longer tail –Usually, much more than 50% values will be less or larger than the sample mean –Median is more appropriate Median is the value that splits the data in half

19

20

21 Finding the median Suppose that we have n numbers Order them first –If n is odd, the median is middle value. That is, the value in the (n+1)/2 position –If n is even, we take median as the average of the values in positionsn/2 and n/2+1

22 Mean versus median Extreme values / outliers: –Median only considers the order of the values, so it is resistant to extreme values –Mean is very sensitive Skewed distribution –Median is preferred than mean Unimodal and symmetric distribution –Mean is preferred because it uses more information from the data

23 Spread To quantify the variation Range Interquartile range (IQR) Standard deviation

24 Range Range = max – min Very sensitive to extreme values

25 Interquartile Range Quartiles –Q1 (lower quartile or the 25 th percentile): one quarter of the data lies below Q1 –Q2 (median or the 50 th percentile) –Q3 (upper quartile or the 75 th percentile): one quarter of the data lies above Q3 IQR = Q3-Q1 –Not sensitive to extreme values How to find Q1 and Q3? –Split the order values into two halves using the median –Q1 is the median of the first half –Q3 is the median of the second half

26 Standard deviation Sample variance = average of squared deviations Standard deviation (sd) –Sensitive to extreme values

27 σ X in TI-83

28 How to obtain these numbers using TI-83? Press STAT Move the cursor to CALC Press 1 The screen shows 1-Var Stats Put the list you want the statistics for. For example, L1. Press ENTER, then you will see –Sample mean, sample sum, sample sum squares, sample standard deviation (S x ),σ x (the same as except divided by n instead of n-1), sample size n, minimum, Q1, median, Q3, maximum

29 Summary Make a picture –Histogram, stem-and-leaf plot, dot plot Shape –How many modes? –Symmetric? –Outliers? If there are outliers, summarize once with the outliers and another time without the outliers Center and spread –Skewed distribution: median and IQR –Symmetric and unimodal distribution: mean and sd

30 What can go wrong? Do not use what we learned in chapter 4 for a categorical variable –Do not make histogram of a categorical variable –Do not look for shape and center and spread of a bar chart –Do not use mean, sd, IQR, etc. for a categorical variable Graph with bars are not always histograms or bar charts Choose a bin width appropriate to the data Check the summary numbers. Do they make sense? Do not worry about small differences when using different methods –No need to use too many digits for the summary numbers –Using one or two more digits than data is enough Do not round in the middle of a calculation Multiple modes, outliers (make a picture)


Download ppt "Chapter 4 Displaying and Summarizing Quantitative Data Math2200."

Similar presentations


Ads by Google