descriptive statistics summarizing data using graphs

24
Descriptive Statistics Summarizing data using graphs

Upload: richard-johnson

Post on 17-Dec-2015

232 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Descriptive Statistics Summarizing data using graphs

Descriptive Statistics

Summarizing data using graphs

Page 2: Descriptive Statistics Summarizing data using graphs

Which graph to use?

• Depends on type of data

• Depends on what you want to illustrate

• Depends on available statistical software

Page 3: Descriptive Statistics Summarizing data using graphs

Bar Chart

Middle Oldest Only Youngest

10

20

30

40

Birth Order

Perc

ent

Birth Order of Spring 1998 Stat 250 Students

n=92 students

Page 4: Descriptive Statistics Summarizing data using graphs

Bar Chart

• Summarizes categorical data.

• Horizontal axis represents categories, while vertical axis represents either counts (“frequencies”) or percentages (“relative frequencies”).

• Used to illustrate the differences in percentages (or counts) between categories.

Page 5: Descriptive Statistics Summarizing data using graphs

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 6: Descriptive Statistics Summarizing data using graphs

Analogy

Bar chart is to categorical data as histogram is to ...

measurement data.

Page 7: Descriptive Statistics Summarizing data using graphs

Histogram

• Divide measurement up into equal-sized categories.

• 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 8: Descriptive Statistics Summarizing data using graphs

Use common sense in determining number of categories to use.

(Trial-and-error works fine, too.)

Histogram

Page 9: Descriptive Statistics Summarizing data using graphs

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 10: Descriptive Statistics Summarizing data using graphs

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 11: Descriptive Statistics Summarizing data using graphs

Dot Plot

160150140130120110100908070Speed

Fastest Ever Driving Speed

Women126

Men100

226 Stat 100 Students, Fall '98

Page 12: Descriptive Statistics Summarizing data using graphs

Dot Plot

• Summarizes measurement data.

• Horizontal axis represents measurement scale.

• Plot one dot for each data point.

Page 13: Descriptive Statistics Summarizing data using graphs

Stem-and-Leaf PlotStem-and-leaf of Shoes N = 139 Leaf Unit = 1.0

12 0 223334444444 63 0 555555555555566666666677777778888888888888999999999 (33) 1 000000000000011112222233333333444 43 1 555555556667777888 25 2 0000000000023 12 2 5557 8 3 0023 4 3 4 4 00 2 4 2 5 0 1 5 1 6 1 6 1 7 1 7 5

Page 14: Descriptive Statistics Summarizing data using graphs

Stem-and-Leaf Plot

• Summarizes measurement 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 15: Descriptive Statistics Summarizing data using graphs

Box Plot

0

1

2

3

4

5

6

7

8

9

10

Hours

of sl

eep

Amount of sleep in past 24 hours

of Spring 1998 Stat 250 Students

Page 16: Descriptive Statistics Summarizing data using graphs

Box Plot

• Summarizes measurement data.

• Vertical (or horizontal) axis represents measurement scale.

• Lines in box represent the 25th percentile (“first quartile”), the 50th percentile (“median”), and the 75th percentile (“third quartile”), respectively.

Page 17: Descriptive Statistics Summarizing data using graphs

An aside...

• Roughly speaking:– The “25th percentile” is the number such that

25% of the data points fall below the number.– The “median” or “50th percentile” is the

number such that half of the data points fall below the number.

– The “75th percentile” is the number such that 75% of the data points fall below the number.

Page 18: Descriptive Statistics Summarizing data using graphs

Box Plot (cont’d)

• “Whiskers” are drawn to the most extreme data points that are not more than 1.5 times the length of the box beyond either quartile. – Whiskers are useful for identifying outliers.

• “Outliers,” or extreme observations, are denoted by asterisks. – Generally, data points falling beyond the

whiskers are considered outliers.

Page 19: Descriptive Statistics Summarizing data using graphs

Using Box Plots to Compare

female male

60

110

160

Gender

Fast

est

Speed (

mph)

Fastest Ever Driving Speed

226 Stat 100 Students, Fall 1998

Page 20: Descriptive Statistics Summarizing data using graphs

Which graph to use when?

• Stem-and-leaf plots and dotplots are good for small data sets, while histograms and box plots are good for large data sets.

• Boxplots and dotplots are good for comparing two groups.

• Boxplots are good for identifying outliers.

• Histograms and boxplots are good for identifying “shape” of data.

Page 21: Descriptive Statistics Summarizing data using graphs

Scatter Plots

22 23 24 25 26 27 28 29 30 31

22

23

24

25

26

27

28

29

30

31

Left foot (in cm)

Rig

ht fo

ot (in c

m)

Foot sizes of Spring 1998 Stat 250 students

n=88 students

Page 22: Descriptive Statistics Summarizing data using graphs

Scatter Plots

• Summarizes the relationship between two measurement variables.

• Horizontal axis represents one variable and vertical axis represents second variable.

• Plot one point for each pair of measurements.

Page 23: Descriptive Statistics Summarizing data using graphs

No relationship

52 57 62

22

23

24

25

26

27

28

29

30

31

32

Head circumference (in cm)

Left fore

arm

(in

cm

)Lengths of left forearms and head circumferences

of Spring 1998 Stat 250 Students

n=89 students

Page 24: Descriptive Statistics Summarizing data using graphs

Closing comments

• 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!