1.3: describing quantitative data with numbers. section 1.3 describing quantitative data with...

36
1.3: Describing Quantitative Data with Numbers

Upload: percival-tucker

Post on 12-Jan-2016

224 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

1.3: Describing Quantitative Data with

Numbers

Page 2: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Section 1.3Describing Quantitative Data with

Numbers

After this section, you should be able to…

MEASURE center with the mean and median

MEASURE spread with standard deviation and interquartile range

IDENTIFY outliers

CONSTRUCT a boxplot using the five-number summary

CALCULATE numerical summaries with technology

Page 3: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Measuring Center: The Mean

To find the mean (pronounced “x-bar”) of a set of observations, add their values and divide by the number of observations. If the n observations are x1, x2, x3, …, xn, their mean is:

x

x sum of observations

n

x1 x2 ... xn

n

Compact Notation:

x xi

n

Page 4: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Measuring Center: The MedianThe median M is the midpoint of a distribution, the number such that half of the observations are smaller and the other half are larger.

To find the median of a distribution:

1)Arrange all observations from smallest to largest.

2)If the number of observations n is odd, the median M is the center observation in the ordered list.

3)If the number of observations n is even, the median M is the average of the two center observations in the ordered list.

Page 5: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Comparing the Mean and the Median

The mean and median measure center in different ways, and both are useful. Mean: “average” value Median: “typical” value

Relationship between Mean & Median: • The mean and median of a roughly symmetric distribution are

close together.

• If the distribution is exactly symmetric, the mean and median are exactly the same.

• In a skewed distribution, the mean is usually farther out in the long tail than is the median.

Page 6: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE
Page 7: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Why is the mean more affected by the presence of outliers than the

median?

Page 8: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Standard DeviationStandard deviation is a number used to tell how measurements for a group are spread out from the mean.

Page 9: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

• A relatively low standard deviation value indicates that the data points tend to be very close to the mean.

• A relatively high standard deviation value indicates that the data points are spread out over a large range of values.

Standard Deviation

Page 10: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Standard Deviation FormulaThe standard deviation sx measures the average distance of the observations from their mean. It is calculated by finding an average of the squared distances and then taking the square root. This average squared distance is called the variance.

2

222

212 )(

1

1

1

)(...)()( = variance xx

nn

xxxxxxs i

nx

standard deviation = sx 1

n 1(x i x )2

Page 12: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

How to Calculate Standard Deviation by Hand

1. Calculate mean.2. Calculate each deviation. Subtract your mean score

from every actual (observed) score.3. Square each deviation.4. Find the “average” squared deviation by calculating

the sum of the squared deviations divided by (n-1).4. Divide that sum by the number of cases in your data 5. Finally, calculate the square root of the number calculate in step #4

Page 13: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Calculate the Standard DeviationCalculate the standard deviation.

NumberOfPets0 2 4 6 8 10

Collection 5 Dot Plot

Page 14: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Calculate the Standard Deviation

NumberOfPets0 2 4 6 8 10

Collection 5 Dot Plot

1) Calculate the mean.Step 1: 5

2) Calculate each deviation.deviation = observation – mean

= 5

x

deviation: 1 - 5 = -4

deviation: 8 - 5 = 3

xi (xi-mean)

1

3

4

4

4

5

7

8

9

Sum=

Page 15: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Calculate the Standard Deviationxi (xi-mean) (xi-mean)2

1 1 - 5 = -4

3 3 - 5 = -2

4 4 - 5 = -1

4 4 - 5 = -1

4 4 - 5 = -1

5 5 - 5 = 0

7 7 - 5 = 2

8 8 - 5 = 3

9 9 - 5 = 4

Sum= Sum=

3) Square each deviation.Step 3: See Table

4) Find the “average” squared deviation by calculating the sum of the squared deviations divided by (n-1).Step 4: “Average” squared deviation = 52/(9-1) = 6.5Variance = 6.5

Page 16: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Calculate the Standard Deviationxi (xi-mean) (xi-mean)2

1 1 - 5 = -4 (-4)2 = 16

3 3 - 5 = -2 (-2)2 = 4

4 4 - 5 = -1 (-1)2 = 1

4 4 - 5 = -1 (-1)2 = 1

4 4 - 5 = -1 (-1)2 = 1

5 5 - 5 = 0 (0)2 = 0

7 7 - 5 = 2 (2)2 = 4

8 8 - 5 = 3 (3)2 = 9

9 9 - 5 = 4 (4)2 = 16

Sum=? Sum=?

5) Calculate the square root of the variance…this is the standard deviation.

Step 5: Square root of variance

Standard Deviation = 2.55

6.5 2.55

Page 17: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Two Extreme Examples:• In dataset #1, we have five people that report eating

4 pieces of cake and five people that report eating 6 pieces of cake, for a mean of 5 pieces of cake ([4+4+4+4+4+6+6+6+6+6]/10=5). – Mean =5; Variance = 1

• In dataset #2, we have five people that report eating 0 piece of cake and five people that report eating 10 pieces of cake, for a mean of 5 pieces of cake ([0+0+0+0+0+10+10+10+10+10]/10=5). – Mean = 5; Variance = 5

Page 18: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Below are dotplots of three different distributions, A, B, and C. Which one has the

largest standard deviation? Justify your answer.

Page 19: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

TI-NSpire: Calculate standard deviation and mean.

1. Select “Lists & Spreadsheet” (blue/green button at bottom of home screen)2. Type the values into list1.

3. With your cursor on the values, press menu4. Select 4: Statistics, then 1: Stat Calculations, press enter.5. Select 1: One-Variable Stats

Page 20: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

TI-NSpire: Calculate standard deviation and mean.

6. Set screen to:and then press enter.

Page 21: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Mean

Standard Deviation

Page 22: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Interquartile Range (IQR)

Page 23: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Interquartile Range (IQR)To calculate:1)Arrange the observations in increasing order and locate the

median M.2)The first quartile Q1 is the median of the observations

located to the left of the median in the ordered list.3)The third quartile Q3 is the median of the observations

located to the right of the median in the ordered list.The interquartile range (IQR) is defined as:

IQR = Q3 – Q1

Page 24: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Find and Interpret the IQR…

10 30 5 25 40 20 10 15 30 20 15 20 85 15 65 15 60 60 40 45

Travel times to work for 20 randomly selected New Yorkers

Page 25: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

5 10 10 15 15 15 15 20 20 20 25 30 30 40 40 45 60 60 65 85

Find and Interpret the IQR…

10 30 5 25 40 20 10 15 30 20 15 20 85 15 65 15 60 60 40 45

Travel times to work for 20 randomly selected New Yorkers

5 10 10 15 15 15 15 20 20 20 25 30 30 40 40 45 60 60 65 85

M = 22.5 Q3= 42.5Q1 = 15

IQR = Q3 – Q1

= 42.5 – 15= 27.5 minutes

Interpretation: The range of the middle half of travel times for the New Yorkers in the sample is 27.5 minutes.

Page 26: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Identifying OutliersIn addition to serving as a measure of spread, the interquartile range (IQR) is used as part of a rule of thumb for identifying outliers.

1.5 x IQR Rule for OutliersCall an observation an outlier if it falls more than 1.5 x IQR above the third quartile or below the first quartile.

Page 27: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

In the New York travel time data, we found Q1=15 minutes, Q3=42.5 minutes, and IQR=27.5 minutes.

Calculate the outlier cutoffs using the IQR rule.

Page 28: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

In the New York travel time data, we found Q1=15 minutes, Q3=42.5 minutes, and IQR=27.5 minutes.

Calculate the outlier cutoffs using the IQR rule.

For these data, 1.5 x IQR = 1.5(27.5) = 41.25Q1 - 1.5 x IQR = 15 – 41.25 = -26.25

Q3+ 1.5 x IQR = 42.5 + 41.25 = 83.75

Any travel time shorter than -26.25 minutes or longer than 83.75 minutes is considered an outlier.

Page 29: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

The Five-Number SummaryThe five-number summary of a distribution consists of the smallest observation, the first quartile, the median, the third quartile, and the largest observation, written in order from smallest to largest.

Minimum Q1 M Q3 Maximum

Page 30: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

TI- Nspire: 5 Number Summary

1. Select “Lists & Spreadsheet” (bottom of home screen)2. Type the values into list1.

3. With your cursor on the values, press menu4. Select 4: Statistics, then 1: Stat Calculations, press enter.5. Select 1: One-Variable Stats

Page 31: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

TI- Nspire: 5 Number Summary

6. Set screen to:and then press enter.

7. Scroll down to see the 5 number summary.

Page 32: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE
Page 33: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Boxplots (Box-and-Whisker Plots)• Draw and label a number line

that includes the range of the distribution.

• Draw a central box from Q1 to Q3.

• Note the median M inside the box.

• Extend lines (whiskers) from the box out to the minimum and maximum values that are not outliers.

Page 34: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

TravelTime0 10 20 30 40 50 60 70 80 90

Collection 5 Box Plot

Construct a BoxplotUsing our NY travel times data. Construct a boxplot.

10 30 5 25 40 20 10 15 30 20 15 20 85 15 65 15 60 60 40 45

Page 35: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

TravelTime0 10 20 30 40 50 60 70 80 90

Collection 5 Box Plot

Construct a BoxplotUsing our NY travel times data. Construct a boxplot.

M = 22.5 Q3= 42.5Q1 = 15Min=5

10 30 5 25 40 20 10 15 30 20 15 20 85 15 65 15 60 60 40 45

5 10 10 15 15 15 15 20 20 20 25 30 30 40 40 45 60 60 65 85

Max=85Recall, this is an outlier by the 1.5 x IQR rule

Page 36: 1.3: Describing Quantitative Data with Numbers. Section 1.3 Describing Quantitative Data with Numbers After this section, you should be able to… MEASURE

Choosing Best Measures of Center & Spread

Symmetric Distribution

Skewed Distribution

Best Measure of Center

Best Measure of Spread