Learn Before
Relation

Least Squares Coefficient Estimates

For the equation y^=βˉ0+βˉ1x\hat{y}=\bar{\beta}_0+\bar{\beta}_1x, RSS is minimized (and the regression is "best") when β^1=i=1n(xixˉ)(yiyˉ)i=1n(xixˉ)2\hat{\beta}_1=\dfrac{\sum_{i=1}^n (x_i-\bar{x})(y_i-\bar{y})}{\sum_{i=1}^n (x_i-\bar{x})^2} and β^0=yˉβ^1xˉ\hat{\beta}_0=\bar{y}-\hat{\beta}_1\bar{x}, where xˉ,yˉ\bar{x},\bar{y} are the sample means.

0

1

Updated 2020-06-13

Tags

Data Science