Professional Documents
Culture Documents
Edwards University
2003 Thomson/South-Western
Slide 1
Measures of Relative Location and Detecting Outliers Exploratory Data Analysis Measures of Association Between Two Variables The Weighted Mean and Working with Grouped Data
2003 Thomson/South-Western
Slide 2
2003 Thomson/South-Western
Slide 3
z-Scores
The z-score is often called the standardized value. It denotes the number of standard deviations a data value xi is from the mean.
xi x zi s
A data value less than the sample mean will have a zscore less than zero. A data value greater than the sample mean will have a z-score greater than zero. A data value equal to the sample mean will have a zscore of zero.
Slide 4
2003 Thomson/South-Western
2003 Thomson/South-Western
Chebyshevs Theorem
At least (1 - 1/z2) of the items in any data set will be within z standard deviations of the mean, where z is any value greater than 1. At least 75% of the items must be within z = 2 standard deviations of the mean. At least 89% of the items must be within z = 3 standard deviations of the mean. At least 94% of the items must be within z = 4 standard deviations of the mean.
2003 Thomson/South-Western
Slide 6
At least (1 - 1/(1.5)2) = 1 - 0.44 = 0.56 or 56% of the rent values must be between x - z(s) = 490.80 - 1.5(54.74) = 409 and x + z(s) = 490.80 + 1.5(54.74) = 573
2003 Thomson/South-Western
Slide 7
Chebyshevs Theorem (continued) Actually, 86% of the rent values are between 409 and 573.
2003 Thomson/South-Western
Slide 8
Empirical Rule
For data having a bell-shaped distribution:
2003 Thomson/South-Western
Slide 9
Empirical Rule
For data having a bell-shaped distribution:
2003 Thomson/South-Western
Slide 10
Empirical Rule
For data having a bell-shaped distribution:
2003 Thomson/South-Western
Slide 11
Empirical Rule
Within +/- 1s Within +/- 2s Within +/- 3s Interval 436.06 to 545.54 381.32 to 600.28 326.58 to 655.02
435 445 450 472 490 525 590 435 445 450 475 490 525 600 435 445 460 475 500 535 600 435 445 460 475 500 549 600
2003 Thomson/South-Western
Detecting Outliers
An outlier is an unusually small or unusually large value in a data set. A data value with a z-score less than -3 or greater than +3 might be considered an outlier. It might be: an incorrectly recorded data value a data value that was incorrectly included in the data set a correctly recorded data value that belongs in the data set
2003 Thomson/South-Western
Slide 13
Detecting Outliers The most extreme z-scores are -1.20 and 2.27. Using |z| > 3 as the criterion for an outlier, there are no outliers in this data set.
2003 Thomson/South-Western
2003 Thomson/South-Western
Slide 15
Five-Number Summary
2003 Thomson/South-Western
Slide 16
Five-Number Summary Lowest Value = 425 First Quartile = 450 Median = 475 Third Quartile = 525 Largest Value = 615
430 440 450 470 485 515 575 430 440 450 470 490 525 580 435 445 450 472 490 525 590 435 445 450 475 490 525 600 435 445 460 475 500 535 600 435 445 460 475 500 549 600 435 445 460 480 500 550 600 440 450 465 480 500 570 615 440 450 465 480 510 570 615
Slide 17
2003 Thomson/South-Western
Box Plot
A box is drawn with its ends located at the first and third quartiles. A vertical line is drawn in the box at the location of the median. Limits are located (not drawn) using the interquartile range (IQR). The lower limit is located 1.5(IQR) below Q1. The upper limit is located 1.5(IQR) above Q3. Data outside these limits are considered outliers. continued
2003 Thomson/South-Western
Slide 18
Whiskers (dashed lines) are drawn from the ends of the box to the smallest and largest data values inside the limits. The locations of each outlier is shown with the symbol * .
2003 Thomson/South-Western
Slide 19
Box Plot Lower Limit: Q1 - 1.5(IQR) = 450 - 1.5(75) = 337.5 Upper Limit: Q3 + 1.5(IQR) = 525 + 1.5(75) = 637.5
37 5
40 0
42 5
45 0
47 5
50 0
52 5
550
575 600
625
2003 Thomson/South-Western
Slide 20
2003 Thomson/South-Western
Slide 21
Covariance
The covariance is a measure of the linear association between two variables. Positive values indicate a positive relationship. Negative values indicate a negative relationship.
2003 Thomson/South-Western
Slide 22
Covariance
If the data sets are samples, the covariance is denoted by sxy. ( xi x )( yi y ) sxy n 1 If the data sets are populations, the covariance is denoted by xy .
xy
( xi x )( yi y ) N
2003 Thomson/South-Western
Slide 23
Correlation Coefficient
The coefficient can take on values between -1 and +1. Values near -1 indicate a strong negative linear relationship. Values near +1 indicate a strong positive linear relationship. If the data sets are samples, the coefficient is rxy.
rxy
sxy sx s y
xy
xy
2003 Thomson/South-Western
xy x y
Slide 24
Weighted Mean Mean for Grouped Data Variance for Grouped Data Standard Deviation for Grouped Data
2003 Thomson/South-Western
Slide 25
Weighted Mean
When the mean is computed by giving each data value a weight that reflects its importance, it is referred to as a weighted mean. In the computation of a grade point average (GPA), the weights are the number of credit hours earned for each grade. When data values vary in importance, the analyst must choose the weight that best reflects the importance of each value.
2003 Thomson/South-Western
Slide 26
Weighted Mean
x = wi xi wi
where:
xi = value of observation i wi = weight for observation i
2003 Thomson/South-Western
Slide 27
Grouped Data
The weighted mean computation can be used to obtain approximations of the mean, variance, and standard deviation for the grouped data. To compute the weighted mean, we treat the midpoint of each class as though it were the mean of all items in the class. We compute a weighted mean of the class midpoints using the class frequencies as weights. Similarly, in computing the variance and standard deviation, the class frequencies are used as weights.
2003 Thomson/South-Western
Slide 28
Sample Data
fM x f
i i
Population Data
fM
i i
2003 Thomson/South-Western
Slide 29
34, 525 493. 21 70 This approximation differs by $2.41 from the actual sample mean of $490.80. x
2003 Thomson/South-Western
Slide 31
Sample Data
2 f ( M x ) i i s2 n 1
Population Data
2 f ( M ) i i 2 N
2003 Thomson/South-Western
Slide 32
s2 3, 017.89
s 3, 017.89 54. 94
This approximation differs by only $.20 from the actual standard deviation of $54.74.
2003 Thomson/South-Western
Slide 33
2003 Thomson/South-Western
Slide 34