In order to compute the regression coefficients, the following table needs to be used:
Sum=X24671029Y8101261652XY16407242160330X24163649100205Y26410014436256600
Xˉ=n1i∑Xi=529=5.8
Yˉ=n1i∑Yi=552=10.4
SSXX=i∑Xi2−n1(i∑Xi)2=205−5292=36.8
SSYY=i∑Yi2−n1(i∑Yi)2=600−5(52)2=59.2
SSXY=i∑XiYi−n1(i∑Xi)(i∑Yi)=330−529(52)=28.4
r=SSXXSSYYSSXY=36.8(59.2)28.4
=0.608462
0.4<r<0.7 Moderate positive correlation
m=slope=SSXXSSXY=36.828.4=0.7717n=Yˉ−mXˉ=10.4−36.828.4(5.8)=5.9239
The regression equation is:
y=5.9239+0.7717x
Comments