Sum=x4455778910111282y6300580057004500450042004100310021002500220045000xy2520023200285002250031500294003280027900210002750026400265900x21616252549496481100121144690y2396900003364000032490000202500002025000017640000168100009610000441000062500004840000205880000
xˉ=n1i=1∑nxi=1182≈7.454545
yˉ=n1i=1∑nyi=1145000≈40.909091
SSxx=i=1∑nxi2−n1(i=1∑nxi)2=
=690−11822≈78.727273
SSyy=i=1∑nyi2−n1(i=1∑nyi)2=
=205880000−11450002≈21789090.909091
SSxy=i=1∑nxiyi−n1(i=1∑nxi)(i=1∑nyi)=
=265900−1182⋅45000≈−39554.545455Therefore, based on the above calculations, the regression coefficients (the slope m,
and the y-intercept n) are obtained as follows:
m=SSxxSSxy≈−502.424942
n=yˉ−m⋅xˉ≈
≈40.909091−(−502.424942)⋅7.454545≈7836.25866 Therefore, we find that the regression equation is:
y=7836.25866−502.424942x
y(4)=7836.25866−502.424942(4)=5826.56
y(5)=7836.25866−502.424942(5)=5324.13
y(7)=7836.25866−502.424942(7)=4319.28
y(8)=7836.25866−502.424942(8)=3816.86
y(9)=7836.25866−502.424942(9)=3314.43
y(10)=7836.25866−502.424942(10)=2812.01
y(11)=7836.25866−502.424942(11)=2309.58
y(12)=7836.25866−502.424942(12)=1807.16
6300−5826.56+5800−5826.56++5700−5324.13+4500−5324.13++4500−4319.28+4200−4319.28++4100−3816.86+3100−3314.43++2100−2812.01+2500−2309.58++2200−1807.16=0.02≈0
RSS=i=1∑n(yiobs−yipred)2=SSyy−mSSxy=
=SSyy(1−SSxxSSyySSxy2)=
=21789090.909091(1−78.727273(21789090.909091)(−39554.545455)2)=
=1915896.5844The sum of square of residuals is minimum for points lying on the regression line and so cannot be less than 1915896.5844 for any other line.
sest=n−2RSS≈11−21915896.5844≈461.39
r=SSxxSSyySSxy=78.72727321789090.909091−39554.545455≈
≈−0.955024 Strong negarive correlation.
r2≈0.912071