We have a dataset of BMW car sales, with 11 variables, but for right now we will fit a linear regression model on it with a predictor variable being price and our response variable being sales. Not anything important just have a exam on monday, lets have some fun.
We have a SLR; simple linear regression model defined below
Where
The least squares methods is the devaitions from of
The goal is too minimize
Take the partial derivative of