Linear Regression, Gradient Descent, Machine Learning, Data Science, Getting Started.
A, line B, line C, etc — you calculate the sum of squares of the errors. If line B has a smaller value than line A, then line B is a better fit, etc. Error and square of error Error is your actual value minus your predicted value. The line of best fit minimizes the sum of the squares of all the