In: Statistics and Probability
Using the data below find the linear correlation coefficient.
x y xy x2 y2
3 4 12 9 16
4 6 24 16 36
5 7 35 25 49
7 12 84 49 144
8 14 112 64 196
___________________________________________
27 43 267 163 441
Also, utilizing the above data, find the slope and intercept.
Solution
Given that
x
= 27
y
= 43
xy
= 267
x2
= 163
y2
= 441
n = 5
r = n (
xy )- (
x
) (
y)
/
n [ (
x2 ) - (
x )2 ]
[ n (
y2
) - (
y )2
r = 5 (267) - (27 * 43)/
[ 5 * 163 - ( 27 ) 2
[5 * 441 - ( 43) 2 ]
r = 1335 - 1061 /
315 - 729
2205
- 1829
r = 174 / 86
356
r = 174 / 9.2736 *18.868
r = 174 / 174.9743
r = 0.9944