You are on page 1of 3

Example 2:

The table below shows the time in hours (x) spent by seven students in playing
online games and the scores (y) these students got on a math test. Solve for Pearson
Product Moment Correlation Coefficient.

x 2 4 6 8 5 12 5
y 30 45 20 15 29 5 13

Solution:

X Y XY x 2 y
2 ∑ x =42
2 30 60 4 900 ∑ y=157
4 45 180 16 2025 ∑ xy =750
6 20 120 36 400 ∑ x 2= 314
8 15 120 64 225 ∑ y 2= 4585
5 29 145 25 841
12 5 60 144 25
5 13 65 25 169

7 (750)−(42)(157)
r=
√¿ ¿ ¿

5250− 6594
r=
√ [2198¿− 1764][32095 − 24649]¿

−1704
r=
√ [434¿][7446 ]¿

−1704
r=
√ 3231564

r =−0.9479014983∨−0.958

Conclusion:
Therefore, the value of r= -0.958 indicates a strong negative
correlation between the time in hours spent in playing online
games and the score on a test.
Activity 1:
Shown below are the ages and the systolic blood pressure numbers of 12 patients
in a certain hospital.

Patient Age Systolic Blood


Pressure Number
1 22 100
2 23 110
3 24 110
4 25 112
5 21 100
6 26 115
7 20 145
8 19 130
9 17 140
10 18 120
11 33 140
12 35 115
Solution:
Systolic Blood Pressure
Patient Age(x) Number(y) XY x
2
y
2

1 22 100 2200 484 10000


2 23 110 2530 529 12100
3 24 110 2640 576 12100
4 25 112 2800 625 12544
5 21 100 2100 441 10000
6 26 115 2990 676 13225
7 20 145 2900 400 21025
8 19 130 2470 361 16900
9 17 140 2380 289 19600
10 18 120 2160 324 14400
11 33 140 4620 1089 19600
12 35 115 4025 1225 13225

∑ x =¿ ¿283
∑ y=1427
∑ xy =¿ ¿ 33815
∑ x 2= 7019
∑ y 2=174719

12(33815) −(283)(1427) 1939


r= r=
√12 ¿ ¿ ¿ √ 249577561

405780 − 403841 1939


r= r=
√ [84228¿− 80089][2096628 −2036329 ]¿ 15798.02396

1939
r= r=0.122736869
√ [4139¿][60299]¿
Therefore, the value r= 0.122 indicates negligible
1939 positive correlation between the ages and the
r=
√ 249577561 systolic blood pressure numbers of the 12 patients.
Activity 2:
x 1 2 3 4 5 6 7
y 40 45 50 65 55 60 75

Solution:
X Y XY x
2
y
2
∑ x =¿ ¿28
1 40 40 1 1600 ∑ y=390
2 45 90 4 2025 ∑ xy =¿ ¿ 1700
3 50 150 9 2500
4 65 260 16 4225 ∑ x 2= 140
5 55 275 25 3025 ∑ y 2=22600
6 60 360 36 3600
7 75 525 49 5625

7 (1700)−(28)(390)
r=
√7 ¿ ¿ ¿

11900 − 10920
r=
√ [980 ¿−784 ][158200 − 152100]¿

980
r=
√ [196¿ ][6100]¿

980
r=
√ 1195600

980
r=
1093.434955

r =0.8962581592∨0.906

Conclusion:
Therefore, the value of r=0.906 is between +0.71 to
+0.99 which indicates a strong positive correlation.

You might also like