introduction to probability and statistics twelfth edition chapter 2 describing data with numerical...

52
Introduction to Introduction to Probability Probability and Statistics and Statistics Twelfth Edition Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Upload: veronica-mitchell

Post on 22-Dec-2015

241 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Introduction to Probability Introduction to Probability and Statisticsand Statistics

Twelfth EditionTwelfth Edition

Chapter 2

Describing Data

with Numerical Measures

Page 2: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Describing Data with Numerical Describing Data with Numerical MeasuresMeasures

• Graphical methods may not always be sufficient for describing data.

• Numerical measures can be created for both populations populations and samples.samples.

– A parameter parameter is a numerical descriptive measure calculated for a populationpopulation.

– A statistic statistic is a numerical descriptive measure calculated for a samplesample.

Page 3: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Measures of CenterMeasures of Center

• A measure along the horizontal axis of the data distribution that locates the center center of the distribution.

Page 4: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Arithmetic Mean or AverageArithmetic Mean or Average• The mean mean of a dataset is the sum of

the measurements divided by the total number of measurements.

n

xx i

n

xx i

where n = number of measurements

tsmeasuremen theall of sum ix

Page 5: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExample•Sample: 2, 9, 11, 5, 6

n

xx i 6.6

5

33

5

651192

If we were able to enumerate the whole population, the population meanpopulation mean would be called (the Greek letter “mu”).

Page 6: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

• The median median of a set of measurements is the middle measurement when the measurements are ranked from smallest to largest.

• The position of the medianposition of the median is

MedianMedian

.5(.5(nn + 1) + 1)

once the measurements have been ordered.

Page 7: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExample• The set: 2, 4, 9, 8, 6, 5, 3 n = 7

• Sort:2, 3, 4, 5, 6, 8, 9

• Position: .5(n + 1) = .5(7 + 1) = 4th Median = 4th largest measurement=5

• The set: 2, 4, 9, 8, 6, 5 n = 6

• Sort:2, 4, 5, 6, 8, 9

• Position: .5(n + 1) = .5(6 + 1) = 3.5th Median = (5 + 6)/2 = 5.5 — average of the 3rd and 4th measurements

Page 8: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ModeMode• The mode mode is the measurement which occurs

most frequently.

• The set: 2, 4, 9, 8, 8, 5, 3

– The mode is 88, which occurs twice

• The set: 2, 2, 9, 8, 8, 5, 3

– There are two modes—88 and 22 (bimodalbimodal)

• The set: 2, 4, 9, 8, 5, 3

– There is no modeno mode (each value is unique).

Page 9: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExample

• Mean?

• Median?

• Mode? (Highest peak)

The number of quarts of milk purchased by 25 households:

0 0 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 3 3 4 4 4 5

2.225

55

n

xx i

2m

2mode Quarts

Rela

tive fre

quency

543210

10/25

8/25

6/25

4/25

2/25

0

Position=.5(25+1)=13th

Page 10: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

• The mean is affected by extremely large or small values than the median.

Extreme ValuesExtreme Values

• The median is often used as a measure of center when the distribution is highly skewed.

Page 11: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Extreme ValuesExtreme Values

Skewed left: Mean < Median

Skewed right: Mean > Median

Symmetric: Mean = Median

Page 12: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Measures of VariabilityMeasures of Variability• A measure along the horizontal axis of

the data distribution that describes the spread spread of the distribution from the center.

Page 13: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

The RangeThe Range

• The range, R,range, R, of a set of n measurements is the difference between the largest and smallest measurements.

• Example: Example: A botanist records the number of petals on 5 flowers:

5, 12, 6, 8, 14

• The range is R = 14 – 5 = 9.R = 14 – 5 = 9.

•Quick and easy, but only uses 2 of the 5 measurements.•Quick and easy, but only uses 2 of the 5 measurements.

Page 14: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

The VarianceThe Variance• The variancevariance is measure of variability

that uses all the measurements. It measures the average deviation of the measurements about their mean.

• Flower petals:Flower petals: 5, 12, 6, 8, 14

95

45x 9

5

45x

4 6 8 10 12 14

Page 15: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

• The variance of a populationvariance of a population of N measurements is the average of the squared deviations of the measurements about their mean

The VarianceThe Variance

• The variance of a samplevariance of a sample of n measurements is the sum of the squared deviations of the measurements about their mean, divided by (n – 1)

N

xi2

2 )(

N

xi2

2 )(

1

)( 22

n

xxs i

1

)( 22

n

xxs i

Page 16: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

The Standard DeviationThe Standard Deviation• In calculating the variance, we squared all of the deviations,

and in doing so changed the scale of the measurements. • To return this measure of variability to the original units of

measure, we calculate the standard deviation (S.D.)standard deviation (S.D.), the positive square root of the variance.

2

2

:deviation standard Sample

:deviation standard Population

ss

2

2

:deviation standard Sample

:deviation standard Population

ss

Measurements Variance S.D.

Measurement

Units

Meter Squared

Meter

Meter

Page 17: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Two Ways to Calculate the Two Ways to Calculate the Sample VarianceSample Variance

1

)( 22

n

xxs i5 -4 16

12 3 9

6 -3 9

8 -1 1

14 5 25

Sum 45 0 60

Use the Definition Formula:ix ix x 2( )ix x

154

60

87.3152 ss

95

45x

Page 18: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Two Ways to Calculate the Two Ways to Calculate the Sample VarianceSample Variance

1

)( 22

2

nnx

xs

ii5 25

12 144

6 36

8 64

14 196

Sum 45 465

Use the Calculational Formula:ix 2

ix

154

545

4652

87.3152 ss

Page 19: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

• The value of s is ALWAYSALWAYS non-negative.

• The larger the value of s2 or s, the larger the variability of the data set.

• Why divide by Why divide by n –1n –1??

– The sample standard deviation ss is often used to estimate the population standard deviation Dividing by n –1 gives us a better estimate of

Some NotesSome Notes

Page 20: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Numerical MeasuresNumerical MeasuresNumerical Measures

Measures of Center

Measures of Variability

Mean (Average) Median Mode

RangeR

Variance

x, 22 , s

Page 21: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Using Mean & Variacne Using Mean & Variacne Tchebysheff’s TheoremTchebysheff’s Theorem

Given a number k greater than or equal to 1 and a set of n measurements, at least 1-(1/k2) of the measurements will lie within k standard deviations of the mean.

Given a number k greater than or equal to 1 and a set of n measurements, at least 1-(1/k2) of the measurements will lie within k standard deviations of the mean.

Can be used for either samples ( and s) or for a population ( and ).Important results: Important results:

If k = 2, at least 1 – 1/22 = 3/4 of the measurements are within 2 standard deviations of the mean.If k = 3, at least 1 – 1/32 = 8/9 of the measurements are within 3 standard deviations of the mean.Note that k is not necessary an integer.

x

Page 22: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExample

• Suppose there are 36 students in a statistics class, and mid-term averages 75 with standard deviation 5.

• Use Tchebysheff’s Theorem to

describe the distribution of the scores.

Page 23: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

SolutionSolution

k Interval Proportion

(at least)

Number of Scores

(at least)

1 (70,80) 1-1/1=0 0

2 (65,85) 1-1/4=3/4

.75

(3/4)(36)=27

3 (60,90) 1-1/9=8/9

.89

(8/9)(36)=32

Mean=75, Standard Deviation=5, Number of Scores=36

At least 27 students have scores in (65,85).At least 32 students have scores in (60,90).At most 4 students have scores below 60.

Page 24: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Using Mean & Variance: Using Mean & Variance:

The Empirical RuleThe Empirical RuleGiven a distribution of measurements that is approximately mound-shaped: (Normal Distribution)

The interval contains approximately 68% of the measurements.

The interval 2 contains approximately 95% of the measurements.

The interval 3 contains approximately 99.7% of the measurements.

Given a distribution of measurements that is approximately mound-shaped: (Normal Distribution)

The interval contains approximately 68% of the measurements.

The interval 2 contains approximately 95% of the measurements.

The interval 3 contains approximately 99.7% of the measurements.

Page 25: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExample

• Suppose there are 36 students in a statistics class, and mid-term averages 75 with standard deviation 5. The distribution of scores is mound-shaped.

• Use Empirical Rule to describe the

distribution of the scores.

Page 26: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

SolutionSolution

k Interval Proportion

(approximately)

Number of Scores

(approximately)

1 (70,80) .68 (.68)(36) 24

2 (65,85) .95 (.95)(36) 34

3 (60,90) .997 (.997)(36) 36

Mean=75, Standard Deviation=5, Number of Scores=36

Approximately 24 students have scores in (70,80).Approximately 34 students have scores in (65,85).Approximately 36 students have scores in (60,90).

Page 27: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Tchebysheff vs EmpiricalTchebysheff vs Empiricalk Interval Tchebysheff Empirical

Rule

1

At Least 1-1/1=0

0 .68

2

At Least 1-1/4=3/4

.75 .95

3

At Least 1-1/9=8/9

.89 .997

4

At Least 1-1/16=15/16

.94 1

1. Tchebysheff is AWAYS TRUE;

2. Empirical rule is ONLY TRUE for mound-shaped distribution.

sx_

sx 3_

sx 2_

sx 4_

Page 28: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExampleThe ages of 50 tenured faculty at a state university.• 34 48 70 63 52 52 35 50 37 43 53 43 52 44

• 42 31 36 48 43 26 58 62 49 34 48 53 39 45

• 34 59 34 66 40 59 36 41 35 36 62 34 38 28

• 43 50 30 43 32 44 58 53

73.10

9.44

s

x

Shape? Skewed right Ages

Rela

tive fre

quency

73655749413325

14/50

12/50

10/50

8/50

6/50

4/50

2/50

0

Page 29: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

k ks Interval Proportionin Interval

Tchebysheff Empirical Rule

1 44.9 10.73 34.17 to 55.63 31/50 (.62) At least 0 .68

2 44.9 21.46 23.44 to 66.36 49/50 (.98) At least .75 .95

3 44.9 32.19 12.71 to 77.09 50/50 (1.00) At least .89 .997

x

•Do the actual proportions in the three intervals agree with those given by Tchebysheff’s Theorem?

•Do they agree with the Empirical Rule?

•Why or why not?

•Yes. Tchebysheff’s Theorem must be true for any data set.•No. Not very well.

•The data distribution is not very mound-shaped, but skewed right.

Page 30: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Measures of Relative StandingMeasures of Relative Standing• Where does one particular measurement

stand in relation to the other measurements in the data set?

• How many standard deviations away from the mean does the measurement lie? This is measured by the zz-score.-score.

23

511 11 of score-

score-

z

s

xxz

23

511 11 of score-

score-

z

s

xxz

5x 11x

s s

6

Suppose s = 3. s

x = 11 lies z =2 S.D.s from the mean.

Page 31: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Not unusualOutlier Outlier

zz-Scores-Scores• From Tchebysheff’s Theorem and the Empirical Rule

– At least 3/4 and more likely 95% of measurements lie within 2 standard deviations of the mean.

– At least 8/9 and more likely 99.7% of measurements lie within 3 standard deviations of the mean.

• z-scores less than 2 in absolute value are not unusual. z-scores between 2 and 3 in absolute value are unusual. z-scores larger than 3 in absolute value are extremely

unusual or possible outlier.outlier.

z

-3 -2 -1 0 1 2 3

(Somewhat) unusual

Page 32: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExampleThe length of time for a worker to complete a specified operation averages 12.8 minutes with a standard deviation of 1.7 minutes.

Find z-score of 16.2.

If the distribution of times is approximately mound-shaped, what proportion of workers will take longer than 16.2 minutes to complete the task?

Page 33: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

SolutionSolution

8.12 7.1

27.1

8.122.16

x

z

95% between 9.4 and 16.2

5/2% = 2.5% above 16.2

Page 34: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Measures of Relative StandingMeasures of Relative Standing• How many measurements lie below

the measurement of interest? This is measured by the ppth th percentile.percentile.

p-th percentile

(100-p) %x

p %

Page 35: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExampleGMAT 640

Percentile 80

80% of test-takers are below 640

20% are above 640.

Page 36: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExamplesExamples

• 90% of all men earn more than $319 per week. BUREAU OF LABOR STATISTICS

$319

90%10%

50th Percentile

25th Percentile

75th Percentile

Median

Lower Quartile (Q1) Upper Quartile (Q3)

$319 is the 10th percentile.

$319 is the 10th percentile.

Page 37: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

• The lower quartile (Qlower quartile (Q11) ) is the value of x which is larger than 25% and less than 75% of the ordered measurements.

• The upper quartile (Qupper quartile (Q33) ) is the value of x which is larger than 75% and less than 25% of the ordered measurements.

• The range of the “middle 50%” of the measurements is the interquartile range, interquartile range,

IQR = IQR = QQ33 – Q – Q11

Quartiles and the IQRQuartiles and the IQR

Page 38: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

• The lower and upper quartiles (Qlower and upper quartiles (Q1 1 and and

QQ33), ), can be calculated as follows:

• The position of Qposition of Q11 is

Calculating Sample QuartilesCalculating Sample Quartiles

.75(.75(nn + 1) + 1)

.25(.25(nn + 1) + 1)

• The position of Qposition of Q33 is

once the measurements have been ordered. If the positions are not integers, find the quartiles by interpolation.

Page 39: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExampleThe prices ($) of 18 brands of walking shoes:

40 60 65 65 67 68 68 70 70

70 70 70 70 74 75 75 90 95

Position of QPosition of Q11 = .25(18 + 1) = 4.75 = .25(18 + 1) = 4.75

Position of QPosition of Q33 = .75(18 + 1) = 14.25 = .75(18 + 1) = 14.25

Q1is 3/4 of the way between the 4th and 5th ordered measurements, or

Q1 = 65 + .75(67 - 65) = 66.5.

Page 40: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExampleThe prices ($) of 18 brands of walking shoes:

40 60 65 65 65 68 68 70 70

70 70 70 70 74 75 75 90 95

Position of QPosition of Q11 = .25(18 + 1) = 4.75 = .25(18 + 1) = 4.75

Position of QPosition of Q33 = .75(18 + 1) = 14.25 = .75(18 + 1) = 14.25

Q3 is 1/4 of the way between the 14th and 15th ordered measurements, or

Q3 = 74 + .25(75 - 74) = 74.25and

IQR = Q3 – Q1 = 74.25 – 66.5 = 7.75

Page 41: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

The Box PlotThe Box Plot

The Five-Number Summary:

Min ----- Q1 ----- Median ----- Q3 ----- Max

The Five-Number Summary:

Min ----- Q1 ----- Median ----- Q3 ----- Max

•Divides the data into 4 sets containing an equal number of measurements.

•A quick summary of the data distribution.

•Use to form a box plotbox plot to describe the shapeshape of the distribution and to detect outliersoutliers.

Page 42: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Constructing a Box PlotConstructing a Box Plot

Calculate Q1, the median, Q3 and IQR.

Draw a horizontal line to represent the scale of measurement.

Draw a box using Q1, the median m, Q3.

QQ11 mm QQ33

Page 43: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Constructing a Box PlotConstructing a Box Plot

QQ11 mm QQ33

Isolate outliers by calculatingLower fence: Q1-1.5 IQRUpper fence: Q3+1.5 IQR

Measurements beyond the upper or lower fence are outliers and are marked with *. *

Page 44: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Constructing a Box PlotConstructing a Box Plot

QQ11 mm QQ33

*

Draw “whiskers” connecting the largest and smallest measurements that are NOT outliers to the box.

Page 45: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExampleAmt of sodium in 8 brands of cheese:

260 290 300 320 330 340 340 520

m = 325m = 325 QQ33 = 340 = 340

mm

QQ11 = 292.5 = 292.5

QQ33QQ11

Page 46: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

ExampleExampleIQR = 340-292.5 = 47.5

Lower fence = 292.5-1.5(47.5) = 221.25

Upper fence = 340 + 1.5(47.5) = 411.25

mm

QQ33QQ11

*

Outlier: x = 520

Page 47: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Interpreting Box PlotsInterpreting Box PlotsMedian line in center of box and whiskers of equal length—symmetric distribution

Median line left of center and long right whisker—skewed right

Median line right of center and long left whisker—skewed left

Page 48: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Key ConceptsKey ConceptsI. Measures of CenterI. Measures of Center

1. Arithmetic mean (mean) or average

a. Population mean:

b. Sample mean:

2. Median: position of the median .5(n 1)

3. Mode: most frequent measurement

Remark: The median may be preferred to the mean if the data are highly skewed.

n

xx i

n

xx i

Page 49: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Key ConceptsKey Concepts

2. Variance

a. Population of N measurements:

b. Sample of n measurements:

3. Standard deviation

N

xi2

2 )( N

xi2

2 )(

1

)(

1

)(

22

22

n

n

xx

n

xxs

ii

i

1

)(

1

)(

22

22

n

n

xx

n

xxs

ii

i

2

2

:deviation standard Sample

:deviation standard Population

ss

2

2

:deviation standard Sample

:deviation standard Population

ss

II. Measures of VariabilityII. Measures of Variability1. Range: R = largest - smallest

Page 50: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Key ConceptsKey ConceptsIII. Tchebysheff’s Theorem and the Empirical RuleIII. Tchebysheff’s Theorem and the Empirical Rule

1. Use Tchebysheff’s Theorem for any data set, regardless of its shape or size.

a. At least 1-(1/k 2

) of the measurements lie within k

standard deviation of the mean.

b. This is only a lower bound; there may be more

measurements in the interval.

2. The Empirical Rule can be used only for relatively mound- shaped data sets.

– Approximately 68%, 95%, and 99.7% of the measurements are within one, two, and three standard deviations of the mean, respectively.

Page 51: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Key ConceptsKey ConceptsIV. Measures of Relative StandingIV. Measures of Relative Standing

1. z-score2. pth percentile; p% of the measurements are smaller, and (100 - p)% are larger.

3. Lower quartile, Q 1; position of Q 1 = .25(n +1)

4. Upper quartile, Q 3 ; position of Q 3 = .75(n +1)

5. Interquartile range: IQR = Q 3 - Q 1

V. Box PlotsV. Box Plots

1. Box plots are used for detecting outliers and shapes of distributions.

2. Q 1 and Q 3 form the ends of the box. The median line is in

the interior of the box.

xz

s

xxz

score-

score-

xz

s

xxz

score-

score-

Page 52: Introduction to Probability and Statistics Twelfth Edition Chapter 2 Describing Data with Numerical Measures

Key ConceptsKey Concepts3. Upper and lower fences are used to find outliers.

a. Lower fence: Q 1 1.5(IQR)

b. Outer fence: Q 3 1.5(IQR)

4. Whiskers are connected to the smallest and largest measurements that are not outliers.

5. Skewed distributions usually have a long whisker in the direction of the skewness, and the median line is drawn away from the direction of the skewness.