Correlation Analysis
Correlation Analysis
of
Relationship
=?
X Y
SAMPLE
r=?
X Y
HIGH NEGATIVE CORRELATION
ZERO CORRELATION
ZERO CORRELATION
COMMON MEASURES OF CORRELATION
Measurement Scale Measurement Scale
of Variable X of Variable Y Measure
NOMINAL NOMINAL
(UNORDERED) (UNORDERED)
Lambda
NOMINAL NOMINAL
(ORDERED) (ORDERED)
Gamma
OTHER MEASURES OF CORRELATION
Measurement Scale Measurement Scale
of Variable X of Variable Y Measure
Categorical
Point-Biserial
(2 categories) Interval/Ratio
(Independent Variable)
(Dependent Variable) (Pearson’s r)
Categorical
(3 or more Interval/Ratio Eta Correlation
categories) (Dependent Variable)
(Independent Variable)
PEARSON’S PRODUCT MOMENT CORRELATION COEFFICIENT
Assumptions to be satisfied before one can validly
use the Pearson’s r:
1. Both variables x and y must be measured in at least
the interval scale;
2. Observations are sampled from a bivariate normal
distribution; and
3. The variables are linearly related.
Bivariate Normal Distribution
Linearly Related Variables
Illustration: The table below shows experimental data
for the observed pairs (x, y).
x 2 3 7 4 6 8 5
y 3 5 8 5 7 10 5
Y
8
7
6
5
4
3
2
1
1 2 3 4 5 6 7 8 x
x y x2 y2 xy
2 3 4 9 6
3 5 9 25 15
7 8 49 64 56
4 5 16 25 20
6 7 36 49 42
8 10 64 100 80
5 4 25 16 20
x 35 y 42 x 2 203 y 2 288 x y 239
COMPUTATION OF r:
n xy ( x )( y )
r
n x 2 2
( x) n y ( y )
2 2
( 7 )( 239 ) (35)( 42 )
7 ( 203) 35 7 ( 288) 42
2 2
( 7 )( 239 ) (35)( 42 )
1421 12252016 1764
0 . 91
To run Pearson’s r, Click Analyze,
Correlate, Bivariate
To run Pearson’s r, Click “Analyze”, “Correlate”,
“Bivariate”. The window at the left appears.
Coefficient Interpretation
0 - .20 Negligible
.20 - .40 Low
.40 - .60 Moderate
n2
t r
1 r 2
d.f. = n - 2
The Spearman's Rank Order Correlation (rS)
n( n 1 )
2
where:
x y Rank(x) Rank(y) d d2
86 87 2 2 0 0
78 80 5 4 1 1
79 78 4 5 -1 1
85 86 3 3 0 0
87 90 1 1 0 0
n = 5, Sum 2
6( 2)
rs 1
5( 25 1)
12
1
120
1
1
10
1 0 .1 0 .9 0
To run Pearson’s r, Click Analyze,
Correlate, Bivariate
To run Spearman’s Rho, uncheck “Pearson” and
check “Spearman”.
n2
t rs
1 rs
2
d.f. = n - 2
2
Where: 2 is the computed Chi-Square Statistic
N N = Grand Total
2
238(962 - 119)
2.443
90158784
2 2.443
.010264601 = .10
N 238
SHORT CUT FORMULA FOR PHI-COEFFICIENT
Engaged in
Educational Research? Total
Qualification
Yes No
Ph.D. A=9 B = 23 G = 32
Non-Ph.D. C = 88 D = 118 H = 206
Total E = 97 F = 141 N=238
( BC AD) ( 88 23 9 118 )
Phi = .10
EFGH 97 141 32 206
Since the data are summarized, make sure that the “Weighted
Cases” command is “on” before clicking “OK
SPSS Outputs:
SPSS Outputs:
χ2 Where: 2 is the computed Chi-Square
Co Statistic & N = Grand Total
χ2 N
Research Question:
Is interest in sports related to social class?
Null Hypothesis:
There is no significant relationship
between interest in sports and social class.
Alternative Hypothesis:
There is a significant relationship between
interest in sports and social class.
(12 17.6) 2
(45 30.6) 2
(7 15.8) 2
( 24 23 .4 ) 2
χ
2
17.6 30.6 15.8 23 .4
(40 40.7) 2
(21 20.9) (21 16)
2
(14 27.7)
2 2
40.7 20.9 16 27.7
(23 14.3)2
14.3
= 27.160
At .05 level of significance and d.f. = (3-1)(3-1) = 4, the tabular
value is 9.49. Since the computed chi-square exceeded the
tabular value, the null hypothesis is rejected. We conclude that
interest is sports and social class are significantly related.
To estimate the strength of association or
relationship, we use the contingency coefficient.
2 27 .160 27 .160
Co 0.116 0.34
N
2
27 .160 207 234 .16
2
Cr
N(L - 1)
Null Hypothesis:
There is no significant relationship between
level of political liberalism and years in
college.
Alternative Hypothesis:
There is a significant relationship between
level of political liberalism and years in college
SPSS Outputs:
SPSS Outputs:
7 .83 5 .5 46
rpb 0 .7895 0 .79
1 .524 10 (10 1)
To run point-biserial using SPSS, first recast the data
as follows
Parental Support Score
0 6
0 7
0 5
0 4
1 8
1 7
1 9
1 8
1 8
1 7
TEST OF SIGNIFICANCE (t-test):
n2
t rpb
1 rpb
2
d.f. = n - 2
EXAMPLE: ETA CORRELATION
Research Question:
Do teachers’ emotional exhaustion vary across
categories of marital status?
Null Hypothesis:
There is no significant difference in the level of
emotional exhaustion among teachers with different
marital status.
Alternative Hypothesis:
There is no significant difference in the level of
emotional exhaustion among teachers with different
marital status.
single married widowed/separated
X1 X2 X3
34 34 13
38 22 21
35 30 28
31 16 13
34 30 14
34 14 16
34 22 25
27 30 24
34 35 19
34 14 14
35 23 17
34 35 14
31 16
30 25
29 17
31
26
18
15
n1 = 12 n2 = 15 n3 = 19
x 2
1 13676 x 2
2 11153 x 32 7614
x1 = 33.7 x2 = 26.3 x2 = 19.3
S12 = 6.79 S22 = 53.67 S32 = 31.32
COMPUTATION OF ETA CORRELATION COEFFICIENT
A1 A2 . . . Ak Total
B1 n11 n12 . . . n1k R1
B2 n21 n22 . . . n2k R2
. . . . .
. . . . .
Br nr1 nr2 . . . nrk Rr
Total C1 C2 . . . Ck N
COMPUTATION OF GAMMA G:
P Q
G
PQ
A1 A2 . Aj . Ak Tota
l
B1 n11 n12 . . . n1k R1
B2 n21 n22 . . . n2k R2
.
N+
Bi . . nij . .
. . . . .
Br nr1 nr2 . . . nrk Rr
Total C1 C2 . . . Ck N
P nij N
i, j
COMPUTATION OF Q:
A1 A2 . Aj . Ak Tota
l
B1 n11 n12 . . . n1k R1
B2 n21 n22 . . . n2k R2
.
N-
Bi . . nij . .
. . . . .
Br nr1 nr2 . . . nrk Rr
Total C1 C2 . . . Ck N
Q nij N
i, j
Example: Political Liberalism by Year in College
Moderately 8 12 9 7 36
Liberal
Very Liberal 2 3 7 10 22
Total 20 20 20 20 80
Moderately 8 12 9 7 36
Liberal
Very Liberal 2 3 7 10 22
Total 20 20 20 20 80
Q 3(8 12 9 2 3 7) 4(8 12 2 3)
5(8 2) 7(2 3 7) 9(2 3) 12(2)
Q 3(41) 4(25) 5(10) 7(12) 9(5) 12(2)
Q 123 100 50 84 45 24 426
P Q
G
PQ
PQ
Test Statistic: z G
N (1 G )
2
Lambda is used when the two variables A
& B are categorical and the categories
cannot be meaningfully ordered, ie.,
B = Employment Status
(Employed, Not employed)
THE DATA ARE CAST INTO A CONTINGENCY
TABLE AS FOLLOWS:
A1 A2 . . . Ak Total
B1 n11 n12 . . . n1k R1
B2 n21 n22 . . . n2k R2
. . . . .
. . . . .
Br nr1 nr2 . . . nrk Rr
Total C1 C2 . . . Ck N
COMPUTATION OF LAMBDA :
λ
max imum frequency( A) max imum frequency( B)
N max imum frequency( B)
X 3 3 4 5 6 6 7 8
Y 45 60 60 70 75 80 75 85
90
80
70
60
Score
50
40
30
20
10
0
0 2 4 6 8 10
Study Hours