Professional Documents
Culture Documents
Correlation - Pearson Product Moment
Correlation - Pearson Product Moment
r = .55 r = .96
r =-.61 r = -.93
No Linear Relationship
5. A correlation coefficient equal to zero implies absence of
linear association but not total absence of relationship
there are other kind of relationship for the data
(i.e. quadratic relationship)
A Nonlinear Relationship
Correlation Coefficient Between paired variables
r = ∑ ( x – x )( y – y)
( n – 1) Sx Sy
Where sx, sy are standard deviation of x and y values
respectively. Instead of using the above formula to find r, an
alternative formula can be used and it gives the same result.
r = n(∑ xy) - (∑ x) (∑ y)
[n (∑ x2) – (∑ x)2][n(∑ y2) – (∑ y)2]
Example
Test in Mathematics and Science were given to the
students. Find the correlation coefficient between scores in the
two subjects.
Math Science
y x
10 13
5 17
6 8
15 16
12 14
7 9
8 15
10 11
14 15
13 12
Solution:
x y xy x2 y2
10 13 130 100 169
5 7 35 25 49
6 8 48 36 64
15 16 240 225 256
12 14 168 144 196
7 9 63 49 81
8 15 120 64 225
10 11 110 100 121
14 15 210 196 225
13 12 165 169 144
∑x = 100 ∑y = 120 ∑x = 1280 ∑x 2 = 1108 ∑y 2 1530
= 12800 - 12000
(11080 – 10000)(15300 – 14400)
= 800
972, 000
= 800
985.90
r = 0.81 (there is a high positive relationship between
the test scores in Mathematics and Science)
Testing the Significance of r
Sometimes a researcher may overlook the fact that when r
is calculated from the sample date, he may get a very high
positive relationship existing between the paired variables. In
this case, a test of significance for r to find out if the obtained
value of r can be attributed to chance.
t = r√n-2
√ 1 – r2
Where:
t – the ratio
n – number
r – computed r (correlation coefficient)
Example
Test the significance of r (r = .81) in the correlation
between test scores in Mathematics and Science. Use
α = .05.
Solution:
Step 1:
Ho: r = 0 (there is no significant relationship
between the test scores in Mathematics
and Science)
Ha: r ≠ 0 (there is a significant relationship
between the test scores in Mathematics
and Science)
Step 2:
α = .05
Step 3: Computation
t = r√n–2
√ 1 – r2
= (0.81) √ 10 – 2
1 – (0.81)2
t = 3.907
Step 4: Decision
df = n – 2
= 10 – 2
df = 8 at α = .05
tabular value = 2.306
rejection rejection
acceptance
-2.306 +2.306
6 ∑ (rx - ry)2
rs = 1 –
n (n2 – 1)
Where:
rs - rank order correlation coefficient
rx - rank of x
ry - rank of y
n - number of paired cases
Example
Scores in Scores in
English Filipino
2
x y rx ry (rx - ry) (rx - ry)
10 13 5.5 5 0.5 0.25
5 7 10 10 0 0
6 8 9 9 0 0
15 16 1 1 0 0
12 14 4 4 0 0
7 9 8 8 0 0
8 15 7 2.5 4.5 20.25
10 11 5.5 7 -1.5 2.25
14 15 2 2.5 -0.5 0.25
13 12 3 6 -3 9
32
rs = 1 – 6 (32)
10 (102 – 1)
= 1– 192
10 (99)
192
= 1–
990
= 1 – .19
rs = .81