©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring...

36
©The McGraw-Hill Companies, Inc. 2008 McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4

Transcript of ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring...

Page 1: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin

Describing Data: Displaying and Exploring Data

Chapter 4

Page 2: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

2

GOALS

Develop and interpret a dot plot. Develop and interpret a stem-and-leaf display. Compute and understand quartiles, deciles, and

percentiles. Construct and interpret box plots. Compute and understand the coefficient of

skewness. Draw and interpret a scatter diagram. Construct and interpret a contingency table.

Page 3: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

3

Dot Plots

A dot plot groups the data as little as possible and the identity of an individual observation is not lost.

To develop a dot plot, each observation is simply displayed as a dot along a horizontal number line indicating the possible values of the data.

If there are identical observations or the observations are too close to be shown individually, the dots are “piled” on top of each other.

Page 4: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

4

Dot Plots - Examples

Reported below are the number of vehicles sold in the last 24 months at Smith Ford Mercury Jeep, Inc., in Kane, Pennsylvania, and Brophy Honda Volkswagen in Greenville, Ohio. Construct dot plots and report summary statistics for the two small-town Auto USA lots.

Page 5: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

5

Dot Plot – Minitab Example

Page 6: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

6

Example: Dot Plots of Vehicle Sales

Notice that the scales for the side-by-side dot plots differ. This means that we need to be careful in comparing the two plots. The distribution of monthly counts for Brophy Honda Volkswagen is shifted to the right relative to the distribution for Smith Ford Mercury Jeep, Inc.

Page 7: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

7

Stem-and-Leaf

In Chapter 2, we showed how to organize data into a frequency distribution. The major advantage to organizing the data into a frequency distribution is that we get a quick visual picture of the shape of the distribution.

One technique that is used to display quantitative information in a condensed form is the stem-and-leaf display.

Stem-and-leaf display is a statistical technique to present a set of data. Each numerical value is divided into two parts. The leading digit(s) becomes the stem and the trailing digit the leaf. The stems are located along the vertical axis, and the leaf values are stacked against each other along the horizontal axis.

Advantage of the stem-and-leaf display over a frequency distribution - the identity of each observation is not lost.

Page 8: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

8

Stem-and-Leaf – Example

Suppose the seven observations in the 90 up to 100 class are: 96, 94, 93, 94, 95, 96, and 97.

The stem value is the leading digit or digits, in this case 9. The leaves are the trailing digits. The stem is placed to the left of a vertical line and the leaf values to the right. The values in the 90 up to 100 class would appear as

Then, we sort the values within each stem from smallest to largest. Thus, the second row of the stem-and-leaf display would appear as follows:

Page 9: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

9

Stem-and-leaf: Another Example

Listed in Table 4–1 is the number of 30-second radio advertising spots purchased by each of the 45 members of the Greater Buffalo Automobile Dealers Association last year. Organize the data into a stem-and-leaf display. Around what values do the number of advertising spots tend to cluster? What is the fewest number of spots purchased by a dealer? The largest number purchased?

Page 10: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

10

Stem-and-leaf: Another Example

Page 11: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

11

Example: ATM Usage in Hawaii

Aloha Banking Co. is studying ATM use in

suburban Honolulu. A sample of 30 ATM’s

was selected, and data were collected on the

number of times each ATM was used on a

certain day. We want to study the

characteristics of the distribution of daily ATM

usage. What is the minimum? Maximum?

Median?

Page 12: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

12

The standard deviation is the most widely used measure of dispersion.

Alternative ways of describing spread of data include determining the location of values that divide a set of observations into equal parts.

These measures include quartiles, deciles, and percentiles.

Quartiles, Deciles and Percentiles

Page 13: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

13

To formalize the computational procedure, let Lp refer to the location of a desired percentile. So if we wanted to find the 33rd percentile we would use L33 and if we wanted the median, the 50th percentile, then L50.

The number of observations is n, so if we want to locate the median, its position is at (n + 1)/2, or we could write this as (n + 1)(P/100), where P is the desired percentile.

Percentile Computation

Page 14: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

14

Percentiles - Example

Listed below are the commissions earned last month by a sample of 15 brokers at Salomon Smith Barney’s Oakland, California, office. Salomon Smith Barney is an investment company with offices located throughout the United States.

$2,038 $1,758 $1,721 $1,637 $2,097 $2,047 $2,205 $1,787 $2,287 $1,940 $2,311 $2,054 $2,406 $1,471 $1,460

Locate the median, the first quartile, and the third quartile for the commissions earned.

Page 15: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

15

Percentiles – Example (cont.)

Step 1: Organize the data from lowest to largest value

$1,460 $1,471 $1,637 $1,721

$1,758 $1,787 $1,940 $2,038

$2,047 $2,054 $2,097 $2,205

$2,287 $2,311 $2,406

Page 16: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

16

Percentiles – Example (cont.)

Step 2: Compute the first and third quartiles. Locate L25 and L75 using:

205,2$

721,1$

lyrespective array, in then observatio

12th and4th theare quartiles thirdandfirst theTherefore,

12100

75)115( 4

100

25)115(

75

25

7525

L

L

LL

Page 17: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

17

Another Measure of Variability

The Interquartile Range (IQR) of a numeric

data set is the difference between the third and

first quartiles.

IQR = L75 – L25

This measure of variability tells the range of

values of the middle 50% of the data set.

The first and third quartiles are sometimes

denoted by Q1 = L25 and Q3 = L75.

Page 18: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

18

Example: ATM Usage

Let’s look at the spread of the data on Aloha

ATM usage using both standard deviation and

quartiles. If we use MegaStat, and choose

Descriptive Statistics, we may find the quartiles

by specifying the Minimum, Maximum, Range

and the Median, Quartiles, Mode, Outliers

options. Or we may do a stem-and-leaf plot

and locate the quartiles on the graph.

Page 19: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

19

Boxplots – Graphical Use of the 5-Number Summary

The 5-number summary of a data set consistsof the minimum value, the first, second(median) and third quartiles, and the maximumvalue of the data. We can use these fivenumbers to construct a simple graph, called aboxplot, of the data. We will compare the characteristics of the boxplot with those of thestem-and-leaf plot for several data sets, including theWhitner Autoplex data and the radio spot data. Butfirst, another example.

Page 20: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

20

Boxplot - Example

Page 21: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

21

Boxplot Example

Page 22: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

22

Boxplot – Whitner Autoplex

Refer to the Whitner Autoplex data in Table 2–4.

Develop a box plot of the data. What can we

conclude about the distribution of the vehicle

selling prices? What is the shape of the

distribution? Is it skewed? What is the

spread, using both measures of spread

(standard deviation and IRQ)?

Page 23: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

23

Boxplot – Radio Advertising Spots

Now lets look at the distribution of the data for

radio advertising spots by automobile dealers

in the greater Buffalo metro area. What is the

shape of the distribution? Compare the mean

value and the median value. Compare the

standard devation with the range and the IQR.

Page 24: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

24

Skewness

In Chapter 3, measures of central location for a set of observations (the mean, median, and mode) and measures of data dispersion (e.g. range and the standard deviation) were introduced

Another characteristic of a set of data is the shape. There are four shapes commonly observed:

– symmetric, – positively skewed, – negatively skewed, – bimodal.

Page 25: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

25

Skewness - Formulas for Computing

The coefficient of skewness can range from -3 up to 3. – A value near -3, such as -2.57, indicates considerable negative skewness. – A value such as 1.63 indicates moderate positive skewness. – A value of 0, which will occur when the mean and median are equal,

indicates the distribution is symmetrical and that there is no skewness present.

Page 26: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

26

Commonly Observed Shapes

Page 27: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

27

Skewness – An Example

Following are the earnings per share for a sample of 15 software companies for the year 2005. The earnings per share are arranged from smallest to largest.

Compute the mean, median, and standard deviation. Find the coefficient of skewness using Pearson’s estimate. What is your conclusion regarding the shape of the distribution?

Page 28: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

28

Skewness – An Example Using Pearson’s Coefficient

017.122.5$

)18.3$95.4($3)(3

22.5$115

))95.4$40.16($...)95.4$09.0($

1

95.4$15

26.74$

222

s

MedianXsk

n

XXs

n

XX

Page 29: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

29

Skewness – Software Share Earnings

Now let’s use MegaStat to calculate the

skewness coefficient, and to do a stem-and

-leaf plot of the data. How does the skewness

coefficient reflect what we see in the stem-and

-leaf plot?

Page 30: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

30

Describing Relationship between Two Variables

One graphical technique we use to show the relationship between variables is called a scatter diagram.

To draw a scatter diagram we need two variables. We scale one variable along the horizontal axis (X-axis) of a graph and the other variable along the vertical axis (Y-axis).

Page 31: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

31

Describing Relationship between Two Variables – Scatter Diagram Examples

Page 32: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

32

In the Introduction to Chapter 2 we presented data from AutoUSA. In this case the information concerned the prices of 80 vehicles sold last month at the Whitner Autoplex lot in Raytown, Missouri. The data shown include the selling price of the vehicle as well as the age of the purchaser.

Is there a relationship between the selling price of a vehicle and the age of the purchaser? Would it be reasonable to conclude that the more expensive vehicles are purchased by older buyers? What else can you see in the graph?

Describing Relationship between Two Variables – Scatter Diagram Excel Example

Page 33: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

33

Contingency Tables

A scatter diagram requires that both of the variables be at least interval scale.

What if we wish to study the relationship between two variables when one or both are nominal or ordinal scale? In this case we tally the results in a contingency table.

Page 34: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

34

Contingency Tables – An Example

A manufacturer of preassembled windows produced 50 windows yesterday. This morning the quality assurance inspector reviewed each window for all quality aspects. Each was classified as acceptable or unacceptable and by the shift on which it was produced. Thus we reported two variables on a single item. The two variables are shift and quality. The results are reported in the following table.

Page 35: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

35

Example – Dessert Ordered, by Gender

The Director of Planning for Devine Dining, Inc.

Wishes to study the relationship between the

gender of a customer and whether the

customer orders dessert. To investigate the

question, the manager collects data for 200

recent customers, 100 male and 100 female.

What can we conclude from the contingency

table? (Page 122 of textbook.)

Page 36: ©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Describing Data: Displaying and Exploring Data Chapter 4.

36

End of Chapter 4