Basic 1
Basic 1
Basic 1
Dr S G Deshmukh
Mechanical Department Indian Institute of Technology
1
Learning Objectives
Distinguish between measures of central tendency, measures of variability, measures of shape, and measures of association. Understand the meanings of mean, median, mode, quartile, percentile, and range. Compute mean, median, mode, percentile, quartile, range, variance, standard deviation, and mean absolute deviation on ungrouped data. Differentiate between sample and population variance and standard deviation.
2
Mode
The most frequently occurring value in a data set Applicable to all levels of data measurement (nominal, ordinal, interval, and ratio) Bimodal -- Data sets that have two modes Multimodal -- Data sets that contain more than two modes
5
Mode -- Example
The mode is 44. There are more 44s than any other value.
35 37 37 39 40 40 41 41 43 43 43 43 44 44 44 44 44 45 45 46 46 46 46 48
6
Median
Middle value in an ordered array of numbers. Applicable for ordinal, interval, and ratio data Not applicable for nominal data Unaffected by extremely large and extremely small values.
Second Procedure
The medians position in an ordered array is given by (n+1)/2.
Arithmetic Mean
Commonly called the mean is the average of a group of numbers Applicable for interval and ratio data Not applicable for nominal or ordinal data Affected by each value in the data set, including extreme values Computed by summing all values in the data set and dividing the sum by the number of values in the data set
11
Population Mean
X = X +X +X =
1 2
+ ... + X N
N N 24 + 13 + 19 + 26 + 11 = 5 93 = 5 = 18. 6
12
Sample Mean
X = X +X +X X=
1 2
+ ... + X n
n n 57 + 86 + 42 + 38 + 90 + 66 = 6 379 = 6 = 63.167
13
Percentiles
Measures of central tendency that divide a group of data into 100 parts At least n% of the data lie below the nth percentile, and at most (100 - n)% of the data lie above the nth percentile Example: 90th percentile indicates that at least 90% of the data lie below it, and at most 10% of the data lie above it The median and the 50th percentile have the same value. Applicable for ordinal, interval, and ratio data Not applicable for nominal data
14
i = (n ) 10 0
Determine the percentiles location and its value. If i is a whole number, the percentile is the average of the values at the i and (i+1) positions. If i is not a whole number, the percentile is at the (i+1) position in the ordered array.
15
Percentiles: Example
Raw Data: 14, 12, 19, 23, 5, 13, 28, 17 Ordered Array: 5, 12, 13, 14, 17, 19, 23, 28 Location of 3 0 30th percentile:
i= (8) =24 . 10 0
The location index, i, is not a whole number; i+1 = 2.4+1=3.4; the whole number portion is 3; the 30th percentile is at the 3rd location of the array; the 30th percentile is 13.
16
Quartiles
Measures of central tendency that divide a group of data into four subgroups Q1: 25% of the data set is below the first quartile Q2: 50% of the data set is below the second quartile Q3: 75% of the data set is below the third quartile Q1 is equal to the 25th percentile Q2 is located at 50th percentile and equals the median Q3 is equal to the 75th percentile Quartile values are not necessarily members of the data set
17
Quartiles
Q1
25% 25%
Q2
25%
Q3
25%
18
Quartiles: Example
Ordered array: 106, 109, 114, 116, 121, 122, 125, 129 2 5 19 +14 0 1 Q1
i = (8 =2 ) 10 0 Q= 1 2 =11.5 1
Q2: Q3:
5 0 i= ( )= 8 4 1 0 0 7 5 i= () 6 8= 1 0 0
1 +2 1 1 6 1 Q= 2 =1 .5 1 8 2 1 +5 2 1 2 2 Q 3 = =35 1. 2 2
19
Variability
No Variability in Cash Flow Mean Mean
Mean Mean
20
Variability
Variability
No Variability
21
Range
The difference between the largest and the smallest values in a set of data Simple to compute 35 41 44 Ignores all data points except 37 41 the 44 two extremes 37 43 44 Example: Range 39 43 = 44 Largest - Smallest = 40 43 44 48 - 35 = 13
40 43 45 45 46 46 46 46 48
23
Interquartile Range
Range of values between the first and third quartiles Range of the middle half Less influenced by extremes
Ie n t e r q u a r t i l
R = a Q n g e 3Q 1
24
=
N
=13
-4
+3
10 15
+4
+5
20
25
X X X
5 9 16 17 18 -8 -4 +3 +4 +5 0 +8 +4 +3 +4 +5 24
M . A. D. =
X N
24 = 5 = 4. 8
26
Population Variance
Average of the squared deviations from the arithmetic mean
X X( X )
5 9 16 17 18 -8 -4 +3 +4 +5 0 64 16 9 16 25 130
( X )
N
130 = 5 = 26 .0
27
X ) X ( X
2
( X)
N
5 9 16 17 18
-8 -4 +3 +4 +5 0
64 16 9 16 25 130
130 = 5 = 26 .0
= 26 .0 = 51 .
28
Sample Variance
Average of the squared deviations from the arithmetic mean
X ) XX X (X
2,398 1,844 1,539 1,311 7,092 625 71 -234 -462 0 390,625 5,041 54,756 213,444 663,866
( X X)
29
XX ) XX X (
2,398 1,844 1,539 1,311 7,092 625 71 -234 -462 0 390,625 5,041 54,756 213,444 663,866
( X X)
S= =
= 470 .41
Comparing populations
household incomes in two cities employee absenteeism at two plants
31
32
Empirical Rule
Data are normally distributed (or approximately normal)
Distance from the Mean Percentage of Values Falling Within Distance
1 2 3
68 95 99.7
33
Chebyshevs Theorem
Applies to all distributions
Chebyshevs Theorem
Applies to all distributions
Number of Standard Deviations Distance from the Mean Minimum Proportion of Values Falling Within Distance
2 3 4
Coefficient of Variation
Ratio of the standard deviation to the mean, expressed as a percentage Measurement of relative dispersion
C.V .= (100)
36
Coefficient of Variation
( 100) CV . = .
1 1 1
1 = 29
1
2 = 84
= 4.6
CV . = .
2
= 10
2 2
( 100)
10 ( 100) = 84 = 1190 .
37
Measures of Variability
Variance Standard Deviation
38
N f1M+ f 2M + f 3M + 1 2 3 + fM i i = f1+ f 2 + f 3+ + f i
39
42
f ( M ) S =
2
f ( MX)
n 1
S=
44
f
6 18 11 11 3 1 50
M
25 35 45 55 65 75
f M M
150 630 495 605 195 75 2150 -18 -8 2 12 22 32
( M )
324 64 4 144 484 1024
( M )
1944 1152 44 1584 1452 1024 7200
=
2
f ( 7200 M )
2
= 50
= 144
2 1 =2 = = 4 1 4
45
Measures of Shape
Skewness Kurtosis
Absence of symmetry Extreme values in one side of a distribution Peakedness of a distribution Leptokurtic: high and thin Mesokurtic: normal shape Platykurtic: flat and spread out
Skewness
Negatively Skewed
Positively Skewed
47
Skewness..
The skewness of a distribution is measured by comparing the relative positions of the mean, median and mode. Distribution is symmetrical Mean = Median = Mode Distribution skewed right Median lies between mode and mean, and mode is less than mean Distribution skewed left Median lies between mode and mean, and mode is greater than mean
48
Skewness
Mean Median
Mode
Mode Median
Mean
Negatively Skewed
Positively Skewed
49
Coefficient of Skewness
Summary measure for skewness
S=
3( Md )
If S < 0, the distribution is negatively skewed (skewed to the left). If S = 0, the distribution is symmetric (not skewed). If S > 0, the distribution is positively skewed (skewed to the right).
50
Coefficient of Skewness
M
S
= 23 = 26 = 12.3 = 3
d1 1
( M )
1
= 26 = 26 = 12.3 = 3
d2 2
d1
( M )
2
= 29 = 26 = 12.3 = 3
d3 3
3( 26 26) = 12.3 =0
d2
M
3
d3
Kurtosis
Peakedness of a distribution
Leptokurtic: high and thin Mesokurtic: normal in shape Platykurtic: flat and spread out Leptokurtic Mesokurtic Platykurtic
52
Inner Fences
Outer Fences
IQR = Q3 - Q1 Lower inner fence = Q1 - 1.5 IQR Upper inner fence = Q3 + 1.5 IQR Lower outer fence = Q1 - 3.0 IQR Upper outer fence = Q3 + 3.0 IQR
53
Minimum
Q1
Q2
Q3
Maximum
54
Negatively Skewed
Positively Skewed
55
( SSX ) ( SSY )
( X X )( Y Y ) ( X X ) ( Y Y ) ( X )( Y ) XY n
2 2
X X 2 n
Y Y 2 n
1 r 1
56
r<0
r>0
r=0
57
Day
Interest X
7.43 7.48 8.00 7.75 7.60 7.63 7.68 7.67 7.59 8.07 8.03 8.00 92.93
Futures Index Y
221 222 226 225 224 223 223 226 226 235 233 241 2,725
55.205 55.950 64.000 60.063 57.760 58.217 58.982 58.829 57.608 65.125 64.481 64.000 720.220
X2
48,841 49,284 51,076 50,625 50,176 49,729 49,729 51,076 51,076 55,225 54,289 58,081 619,207
Y2
1,642.03 1,660.56 1,808.00 1,743.75 1,702.40 1,701.49 1,712.64 1,733.42 1,715.34 1,896.45 1,870.99 1,928.00 21,115.07
58
XY
( X )( Y ) XY
X X 2 n
=.815
59
8.00
8.20
Futures Index 1
60