1. Age, X is the independent variable
8,3,6,9,2,5,6,3 2. Price, Y the dependent variable
45,210,100,33,267,134,109,235
3.
Xˉ=n1i∑Xi=842=5.25
Yˉ=n1i∑Yi=81133=141.625
SSXX=i∑Xi2−n1(i∑Xi)2
=264−8(42)2=43.5
SSYY=i∑Yi2−n1(i∑Yi)2
=213565−8(1133)2=53103.875
SSXY=i∑XiYi−n1(i∑Xi)(i∑Yi)
=4450−842(1133)=−1498.25
β1=SSXXSSXY=43.5−1498.25=−34.442529
β0=Yˉ−β1⋅Xˉ=141.625+43.51498.25(5.25)
=322.448276The regression equation is:
Y=322.448276−34.442529X
4.
Y(7)=322.448276−34.442529(7)=81.35The price of a 7-year-old car of this mode will be 81.35.
5.
Y(18)=322.448276−34.442529(18)
=−297.52<0
A 18-year-old car of this mode does not exist.
322.448276−34.442529X≥0
X≤9.36The price of a 9-year-old car of this mode will be 12.47.
A 10-year-old car of this mode does not exist.
Comments