Chapter 4 Measures of Variability PDF
Chapter 4 Measures of Variability PDF
Measures of Variability
It is often desirable to consider measures of variability
(dispersion), as well as measures of location.
Measures of Variability
Range
Interquartile Range
Variance
Standard Deviation
Coefficient of Variation
Measures of Variation
Variation
Same center,
different variation
Range
The range of a data set is the difference between the
largest and smallest data values.
It is the simplest measure of variability.
It is very sensitive to the smallest and largest data
values.
Measures of Variation:
The Range
Simplest measure of variation
Difference between the largest and the smallest values:
Example:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Range = 13 - 1 = 12
Measures of Variation:
Why The Range Can Be Misleading
1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,5
Sensitive to outliers
Range = 5 - 1 = 4
1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,4,120
Range = 120 - 1 = 119
Range
Range = largest value - smallest value
Range = 615 - 425 = 190
425 430 430 435 435 435 435 435 440 440
440 440 440 445 445 445 445 445 450 450
450 450 450 450 450 460 460 460 465 465
465 470 470 472 475 475 475 480 480 480
480 485 490 490 490 500 500 500 500 510
510 515 525 525 525 535 549 550 570 570
575 575 580 590 600 600 600 600 615 615
– Sample variance: n
(X X)i
2
S 2 i 1
n -1
Where X = arithmetic mean
n = sample size
Xi = ith value of the variable X
– Population variance: N
(X i m) 2
2 i 1
N
Where m= population mean
N = population size
Xi = ith value of the variable X
Standard Deviation
S i1
n -1
Measures of Variation:
The Standard Deviation
Steps for Computing Standard Deviation
s s 2
2
n=8 Mean = X = 16
11 12 13 14 15 16 17 18 19 20 21
S = 3.338
Stock C has a
• Stock C: much smaller
standard
– Average price last year = $8 deviation but a
much higher
– Standard deviation = $2 coefficient of
variation
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.
Variance for Grouped Data
For sample data
Rent ($)
20-40 5 30 -76 28880
40-60 6 50 -56 18816
60-80 5 70 -35 6480
80-100 10 90 -16 2560
100-120 5 110
4 80
120-140 5 130 24 2880
140-160 4 150 44 7744
160-180 5 170 64 20480
180-200 5 190 84 35280
50 123200
Sample Variance for Grouped Data
Sample Variance
s2 = 123200/(50 – 1) = 2514.286