Investigating The Relationship Between Two or More Variables (Correlation)
Investigating The Relationship Between Two or More Variables (Correlation)
Positive Negative
r zXzY n
A five subjects took a quiz X, on which the scores ranged from
to 10 and an examination Y, on which the scores ranged form 6
.to 98 82
.Calculate r and determine the pattern of correlation
r zXzY n
12/07/21 Dr Tarek Amin 13
A perfect positive relationship
.between two variables
zXzY zY zX Y X (quiz) subjects
(examination)
2.0 1.42- 1.42- 82 6 1
0.5 0.71 0.71- 86 7 2
0.0 0.00 0.00 90 8 3
0.5 0.71 0.71 94 9 4
2.0 1.42 1.42 98 10 5
r = ∑zXzY/n = 5.00/5 = +1
Positive Correlation
100
98
96
94
Y score
92
90
88
86
84
82
80
0 5 10 15
X score
Perfect negative relationship
zXzY zY zX Y X Subjects
2.0- 1.42 1.42- 98 6 1
0.5- 0.71 0.71- 94 7 2
0.0 0.00 00.0 90 8 3
0.71- 0.71- 0.71 86 9 4
2.0- 1.42- 1.42 82 10 5
Mean X =8 Mean Y= 90
∑ zXzY= -5.00
SD= 1.41 SD= 5.66
r zXzY n 1.0-=5.0/5- =
Negative Correlation
100
98
96
94
Y score
92
90
88
86
84
82
80
0 5 10 15
X score
No relationship
zXzY zY zX Y X Subjects
100
98
96
94
Y score
92
90
88
86
84
82
80
0 5 10 15
X score
Kass et al., 1991
Five variables were included, smoking history in
ordinal, scored from 0 to 2 (0=never, 1= quit, 2= still smoking),
depressed state of mind is also ordinal ranging from 1
(rarely) to 4 (routinely); overall state of health is a 10 points
rating (1= very ill to 10 = very healthy); quality of life in the
past 6 months is a 6 points scale (1= very dissatisfied, to 6=
.extremely happy)
D2 =1225.5∑
.Calculating Spearman’s rho
6 D 2
rs 1
n n 1 2
0.8- =)16x16-1(16/)1225.5(1-6 =