A linear regression line has an equation of the form: y = a+ bx
where 'Y' is called the dependent variable or response.
and 'X' is called independent variable or predictors or explanatory variable
'a' is the y-intercept of the line and
'b' is the slope of the line.
From the above data,
∑x=247∑y=486∑xy=20485∑x2=11409∑y2=40022n=6
Based on the above table, the following is calculated:
Xˉ=n1∑Xi=6247=41.167
Yˉ=n1∑Yi=6486=81 SSXX=∑Xi2−n1(∑Xi)2=11409−6(247)2=120.83
SSYY=∑Yi2−n1(∑Yi)2=40022−6(486)2=656
SSXY=∑XiYi−n1(∑Xi)(∑Yi)=20485−6247×486=478
Therefore, based on the above calculations, the regression coefficients (the slope b, and the y-intercept a) are obtained as follows:
b=SSXXSSXY=1240.83478=0.3852 a=Yˉ−Xˉ⋅b=81−41.16×0.3852=65.14
Therefore, we find that the regression equation is:
y=a+bxy=65.14+0.3852x
Comments