4.1
The independent variable is x, and the dependent variable is y.
In order to compute the regression coefficients, the following table needs to be used:
Sum=x1234567891055y3.04.24.83.73.44.35.64.43.84.141.3xy38.414.414.81725.839.235.234.241233x2149162536496481100385y2917.6423.0413.6911.5618.4931.3619.3614.4416.81175.39 Based on the above table, the following is calculated:
xˉ=n1i=1∑nxi=1055=5.5
yˉ=n1i=1∑nyi=1041.3=4.13
SSxx=i=1∑nxi2−n1(i=1∑nxi)2=385−10552=82.5
SSyy=i=1∑nyi2−n1(i=1∑nyi)2=175.39−1041.32=4.821
SSxy=i=1∑nxiyi−n1(i=1∑nxi)(i=1∑nyi)=
=233−1055⋅41.3=5.85 The regression coefficients (the slope m, and the y-intercept n) are obtained as follows:
m=SSxxSSxy=82.55.85=0.0709
n=yˉ−xˉ⋅m=4.13−5.5⋅82.55.85=3.74 We find that the regression equation is:
y=3.74+0.0709x
4.2
y=3.74+0.0709x 2008: x=−1,y=3.74+0.0709(−1)=3.6691
3.6691 $mil in 2008.
2022: x=12,y=3.74+0.0709(12)=4.5908
4.5908 $mil in 2022.
Comments