250 likes | 355 Views
Chapter 5 Understanding and Comparing Distributions. Math2200. Example: The Hopkins Memorial Forest. A 2500-acre reserve in Massachusetts, New York, Vermont Managed by the Williams College center for Environmental Studies (CES) http://www.williams.edu/CES/hopkins.htm
E N D
Chapter 5 Understanding and Comparing Distributions Math2200
Example: The Hopkins Memorial Forest • A 2500-acre reserve in Massachusetts, New York, Vermont • Managed by the Williams College center for Environmental Studies (CES) • http://www.williams.edu/CES/hopkins.htm • Average wind speed for every day in 1989 • Important for monitoring storms
Boxplot • Invented by John W. Tukey
Draw a single vertical axis spanning the range of the data. Draw short horizontal lines at the lower and upper quartiles and at the median. Then connect them with vertical lines to form a box. Constructing Boxplots
Erect “fences” around the main part of the data. The upper fence is 1.5 IQRs above the upper quartile. The lower fence is 1.5 IQRs below the lower quartile. Note: the fences only help with constructing the boxplot and should not appear in the final display. Constructing Boxplots (cont.)
Use the fences to grow “whiskers.” Draw lines from the ends of the box up and down to the most extreme data values found within the fences. If a data value falls outside one of the fences, we do not connect it with a whisker. Constructing Boxplots (cont.)
Add the outliers by displaying any data values beyond the fences with special symbols. We often ( not always ) use a different symbol for “far outliers” that are farther than 3 IQRs from the quartiles. Constructing Boxplots (cont.)
How to make a boxplot? • Draw a single vertical axis spanning the extent of the data • Draw short horizontal lines at the Q1, median, Q3. Then connect them to make a box. • Draw ‘fences’ • Upper fence = Q3 + 1.5 * IQR • Lower fence = Q1 - 1.5 * IQR • Grow ‘whiskers’ • Add outliers • TI-83 can make boxplots
Comparing groups • Relationship between a quantitative variable and a categorical variable • A categorical variable defines groups • Is it windier in the winter or summer? • A binary categorical variable • Spring/Summer: April -- September • Fall/Winter: October – March • A quantitative variable: average wind speed
Summary • Average wind speed is lower and less variable in the summer, especially July • Average wind speed is higher and more variable in the winter • The highest winder speed occurs in November • More outliers than when plotting for the entire year
Outliers • Some outliers are obviously errors • Misplacing the decimal point • Digit transposed • Digits repeated or omitted • Units may be wrong • Incorrectly copied • What to do with outliers? • 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. The differences may be quite revealing. • Note: The median and IQR are not likely to be affected by the outliers.
Timeplots • For some data sets, we are interested in how the data behave over time. In these cases, we construct timeplots of the data.
Re-expressing Skewed Data to Improve Symmetry When data are skewed, it is hard to simply summarize with a center and spread. Can we transform the data to be more symmetric? Histogram of the annual compensation to CEOs of the Fortune 500 companies in 2005
Re-expressing Skewed Data to Improve Symmetry (cont.) • One way to make a skewed distribution more symmetric is to re-express or transform the data by applying a simple function (e.g., logarithmic function or square root).
Avoid inconsistent scales, either within the display or when comparing two displays. Label clearly so a reader knows what the plot displays. Beware of outliers Be careful when comparing groups that have very different spreads What Can Go Wrong?