Professional Documents
Culture Documents
drvijay.niftem@gmail.com
Correlation
3
4
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
Slide from: Statistics for Managers Using Microsoft® Excel 4th Edition, 2004 Prentice-Hall
Linear Correlation
Linear relationships Curvilinear relationships
Y Y
X X
Y Y
X X
Slide from: Statistics for Managers Using Microsoft® Excel 4th Edition, 2004 Prentice-Hall
Linear Correlation
Strong relationships Weak relationships
Y Y
X X
Y Y
X X
Slide from: Statistics for Managers Using Microsoft® Excel 4th Edition, 2004 Prentice-Hall
Linear Correlation
No relationship
X
Slide from: Statistics for Managers Using Microsoft® Excel 4th Edition, 2004 Prentice-Hall
Types of Relationships
220
200
180
160
140
120
100
80 wt (kg)
60 70 80 90 100 110 120
200
180
160
140
120
100
80
60 70 80 90 100 110 120Wt (kg)
If r = l = perfect correlation.
Simpler calculation formula…
Numerator of
n covariance
( x x )( y
i 1
i i y)
rˆ n 1
n n SS xy
(x x) ( y
i
2
i y)2 rˆ
i 1 i 1 SS x SS y
n 1 n 1
n
( x x )( y
i i y)
SS xy
Numerators of
variance
i 1
n n
SS x SS y
(x x) ( y
i 1
i
2
i 1
i y) 2
FORMULA FOR CALCULATING CORRELATION COEFFICIENT
1
Cov.(X, Y) N
XY X Y
r
σXσY 1
2 1
X X Y Y
2 2 2
N N
Example:
Anxiety Test X2 Y2 XY
)X( score (Y)
10 2 100 4 20
8 3 64 9 24
2 9 4 81 18
1 7 1 49 7
5 6 25 36 30
6 5 36 25 30
X = 32∑ Y = 32∑ X2 = 230∑ Y2 = 204∑ XY=129∑
Calculating Correlation Coefficient
r = - 0.94
rs 1
n(n 1)
2
The value of rs denotes the magnitude and nature of
association giving the same interpretation as simple r.
Example
In a study of the relationship between level education and income the following
data was obtained. Find the relationship between them and comment.
25 Preparatory. A
10 Primary. B
8 University. C
10 secondary D
15 secondary E
50 illiterate F
60 University. G
Answer:
di2 di Rank Rank
Y X (Y) (X)
4 2 3 5 25 Preparatory A
∑ di2=64
6 64
rs 1 0.1
7(48)
Comment:
There is an indirect weak correlation
between level of education and income.
EXAMPLE B.P (y) Age (x) B.P (y) Age (x)
128 46 120 20
136 53 128 43
The following are the age (in 146 60 141 63
124 20 126 26
years) and systolic blood 143
130
63
43
134
128
53
31
124 26 136 58
pressure of 20 apparently 121 19 132 46
126 31 140 58
123 23 144 70
healthy adults.
• Find the correlation between age and blood pressure using simple and
Spearman's correlation coefficients, and comment.
Y= a+bX
Is it Correct?
Yc= a+bX
Linear
Linear Equation
Regression.....
a = Intercept
b = Slope
Linear Regression.....
Linear Regression.....
a=Intercept
The intercept (often labeled the constant) is the expected mean value of Y when all
b=Slope
the beta coefficient value.
Dependent and Independent Variables
3000 450
3000
3450
0.869
What’s the Best Value for an R-squared?
Usage To represent linear relationship To fit a best line and estimate one
between two variables. variable on the basis of another
variable.
Usually denoted by x y
How to check linearity
References
• Relationships Among Variables ( Correlation and Regression ) KNES 510 Methods in Kinesiology