Professional Documents
Culture Documents
Correlation 1
Correlation 1
Coefficient of correlation
2
Coefficient of correlation
3
Coefficient of correlation
4
Recall: Covariance
( x X )( y Y )
i i
cov ( x , y ) i 1
n
5
Interpreting Covariance
6
Coefficient of correlation
7
Coefficient of correlation
Step Deviation Method for Grouped Data: When data on x and y values are
classified or grouped into a frequency distribution, the formula is
8
Correlation coefficient
cov ariance( x, y )
r
var x var y
9
Calculating by hand…
( x x )( y y )
i 1
i i
cov ariance( x, y) n
rˆ
n n
var x var y
i
( x
i 1
x ) 2
i
( y
i 1
y ) 2
n n
10
Coefficient of correlation
When there is perfect positive correlation its value is +1 and when there
is perfect negative correlation its value is -1.
As the value of this coefficient decreases from the upper limit of +1, the
extent of positive correlation between the two variables also declines.
When it reaches the value of 0 it indicates complete absence of
correlation and when it goes further down in negative values (less than
zero) it indicates negative correlation. When it reaches the other limit of
-1 there is evidence of perfect negative correlation between the two
series.
11
Correlation
12
Scatter Plots of Data with Various Correlation
Coefficients
Y Y Y
X X X
r = -1 r = -.6 r=0
Y
Y Y
X X X
r = +1 r = +.3 r=0
13
Linear Correlation
Y Y
X X
Y Y
X X
14
Linear Correlation
Y Y
X X
Y Y
X X
15
Linear Correlation
No relationship
X
16
Computational Formulas -- Covariance
N XY X Y
rxy
N X 2 X 2 N Y 2 Y 2
18
Computing a correlation
Cigarettes Lung
(X) Capacity
X2 XY Y2 (Y)
0 0 0 2025 45
5 25 210 1764 42
10 100 330 1089 33
15 225 465 961 31
20 400 580 841 29
50 750 1585 6680 180
19
Computing a Correlation
(5)(1585) (50)(180)
rxy
(5)(750) 50 (5)(6680) 180
2 2
7925 9000
(3750 2500)(33400 32400)
1075
.9615
1250 (1000)
20
Coefficient of correlation
21
Coefficient of correlation
22
Coefficient of correlation
Find out the correlation coefficient between heights of father and son
from the following data
Height of father
in inches: 65 66 67 67 68 69 70 72
Height of son
in inches: 67 68 65 68 72 72 69 71
23
Coefficient of Correlation
24
Coefficient of Correlation
25
Coefficient of Correlation
26
Coefficient of Correlation
27
Coefficient of Correlation
28