1 stat 1510 statistical thinking & concepts describing distributions with numbers

35
1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

Upload: amos-lindsey

Post on 30-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

1

Stat 1510Statistical Thinking & Concepts

Describing Distributions with Numbers

Asokan Variyath
Page 2: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

2

Numerical Summaries

Center of the data– mean– median

Variation– range – quartiles (interquartile range)– variance– standard deviation

Page 3: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

3

Mean or Average

Traditional measure of center Sum the values and divide by the

number of values

xn

x x xn

xn i

i

n

1 1

1 2

1

Page 4: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

4

Median (M)

A resistant measure of the data’s center At least half of the ordered values are

less than or equal to the median value At least half of the ordered values are

greater than or equal to the median value If n is odd, the median is the middle ordered value If n is even, the median is the average of the two

middle ordered values

Page 5: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

5

Median (M)

Location of the median: L(M) = (n+1)/2 ,

where n = sample size.

Example: If 25 data values are

recorded, the Median would be the

(25+1)/2 = 13th ordered value.

Page 6: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

6

Median

Example 1 data: 2 4 6 Median (M) = 4

Example 2 data: 2 4 6 8 Median = 5 (ave. of 4 and 6)

Example 3 data: 6 2 4 Median 2 (order the values: 2 4 6 , so Median = 4)

Page 7: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

7

Comparing the Mean & Median

The mean and median of data from a symmetric distribution should be close together. The actual (true) mean and median of a symmetric distribution are exactly the same.

In a skewed distribution, the mean is farther out in the long tail than is the median [the mean is ‘pulled’ in the direction of the possible outlier(s)].

Page 8: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

8

Question

A recent newspaper article in California said that the median price of single-family homes sold in the past year in the local area was $136,000 and the mean price was $149,160. Which do you think is more useful to someone considering the purchase of a home, the median or the mean?

Page 9: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

9

Case Study

Airline fares

appeared in the New York Times on November 5, 1995

“...about 60% of airline passengers ‘pay less than the average fare’ for their specific flight.” How can this be?

13% of passengers pay more than 1.5 times the average fare for their flight

Page 10: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

10

Misuse of StatiticsIn 2003, President George W. Bush announced that under his policy, ”92 million Americans received an average tax cut of $1,083," those numbers were not, strictly speaking, incorrect.

However, they camouflaged the fact that some 45 million people would receive less than $100 tax relief, whereas the top 1% of income earners were gifted a whopping $30,127.

Page 11: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

11

ModeThe mode is the value that occurs most frequently in a data set

The mode of {2,3,4,4,4,5,5,7,10} is 4

For example, taking a sample of Korean family names, one might find that "Kim" occurs more often than any other name. Then "Kim" would be the mode of the sample. In any voting system, a single modal value determines the victor, while a multi-modal outcome would require some tie-breaking procedure to take place.

Page 12: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

12

Spread, or Variability

If all values are the same, then they all equal the mean. There is no variability.

Variability exists when some values are different from (above or below) the mean.

We will discuss the following measures of spread: range, quartiles, variance, and standard deviation

Page 13: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

13

Range

One way to measure spread is to give the smallest (minimum) and largest (maximum) values in the data set;

Range = max min

The range is strongly affected by outliers

Page 14: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

14

Quartiles

Three numbers which divide the ordered data into four equal sized groups.

Q1 has 25% of the data below it.

Q2 has 50% of the data below it. (Median)

Q3 has 75% of the data below it.

Page 15: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

15

QuartilesUniform Distribution

1st Qtr 2nd Qtr 3rd Qtr 4th QtrQ1 Q2 Q3

Page 16: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

16

Obtaining the Quartiles Order the data. For Q2, just find the median.

For Q1, look at the lower half of the data values, those to the left of the median location; find the median of this lower half.

For Q3, look at the upper half of the data values, those to the right of the median location; find the median of this upper half.

Page 17: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

17

Weight Data: Sorted

100 124 148 170 185 215101 125 150 170 185 220106 127 150 172 186 260106 128 152 175 187110 130 155 175 192110 130 157 180 194119 133 165 180 195120 135 165 180 203120 139 165 180 210123 140 170 185 212

L(M)=(53+1)/2=27

L(Q1)=(26+1)/2=13.5

Page 18: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

18

Weight Data: Quartiles

Q1= 127.5

Q2= 165 (Median)

Q3= 185

Page 19: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

19

10 016611 00912 003457813 0035914 0815 0025716 55517 00025518 00005556719 24520 321 02522 023242526 0

third quartilethird quartile

median or second quartilemedian or second quartile

first quartilefirst quartileWeight Data:

Quartiles

Page 20: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

20

Five-Number Summary

minimum = 100 Q1 = 127.5 M = 165 Q3 = 185 maximum = 260

InterquartileRange (IQR)= Q3 Q1

= 57.5

IQR gives spread of middle 50% of the data

Page 21: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

21

Boxplot

Central box spans Q1 and Q3.

A line in the box marks the median M.

Lines extend from the box out to the minimum and maximum.

Page 22: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

22

M

Weight Data: Boxplot

Q1 Q3min max

100 125 150 175 200 225 250 275

Weight

Page 23: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

23

Example from Text: Boxplots

Page 24: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

24

Identifying Outliers

The central box of a boxplot spans Q1 and Q3; recall that this distance is the Interquartile Range (IQR).

We call an observation a suspected outlier if it falls more than 1.5 IQR above the third quartile or below the first quartile.

Page 25: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

25

Variance and Standard Deviation

Recall that variability exists when some values are different from (above or below) the mean.

Each data value has an associated deviation from the mean:

x xi

Page 26: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

26

Deviations

what is a typical deviation from the mean? (standard deviation)

small values of this typical deviation indicate small variability in the data

large values of this typical deviation indicate large variability in the data

Page 27: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

27

Variance Find the mean Find the deviation of each value from

the mean Square the deviations Sum the squared deviations Divide the sum by n-1

(gives typical squared deviation from mean)

Page 28: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

28

Variance Formula

sn

x xii

n2

1

12

1

( )

( )

s2 =1

(n −1)[ x i

2 − ( x i∑ )2 /n]i=1

n

Page 29: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

29

Standard Deviation Formulatypical deviation from the mean

sn

x xii

n

1

12

1( )( )

[ standard deviation = square root of the variance ]

Page 30: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

30

Variance and Standard DeviationExample from Text

Metabolic rates of 7 men (cal./24hr.) :

1792 1666 1362 1614 1460 1867 1439

1600 7

200,11

7

1439186714601614136216661792

x

Page 31: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

31

Variance and Standard DeviationExample from Text

Observations Deviations Squared deviations

1792 17921600 = 192 (192)2 = 36,864

1666 1666 1600 = 66 (66)2 = 4,356

1362 1362 1600 = -238 (-238)2 = 56,644

1614 1614 1600 = 14 (14)2 = 196

1460 1460 1600 = -140 (-140)2 = 19,600

1867 1867 1600 = 267 (267)2 = 71,289

1439 1439 1600 = -161 (-161)2 = 25,921

sum = 0 sum = 214,870

xxi ix 2xxi

Page 32: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

32

Variance and Standard DeviationExample from Text

67.811,3517

870,2142

s

calories 24.18967.811,35 s

Page 33: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

33

Choosing a Summary

Outliers affect the values of the mean and standard deviation.

The five-number summary should be used to describe center and spread for skewed distributions, or when outliers are present.

Use the mean and standard deviation for reasonably symmetric distributions that are free of outliers.

Page 34: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

34

Number of Books Read for Pleasure: Sorted

0 1 2 4 10 300 1 2 4 10 990 1 2 4 120 1 3 5 130 2 3 5 140 2 3 5 140 2 3 5 150 2 4 5 150 2 4 5 201 2 4 6 20

M

L(M)=(52+1)/2=26.5

Page 35: 1 Stat 1510 Statistical Thinking & Concepts Describing Distributions with Numbers

35

Five-Number Summary: BoxplotMedian = 3

interquartile range (iqr) = 5.5-1.0 = 4.5range = 99-0 = 99

Mean = 7.06 s.d. = 14.43

0 10 20 30 40 50 60 70 80 90 100 Number of books