Simple Linear Regression, Regression Cost Function, Cost Function, Machine Learning.
create a best-fit line and find the minimum error for this line. Example Dataset Let's plot a graph of these data. Now I am going to use the above equation to draw my best-fit line. Graph with actual values Now my slope is θ1 and let’s assume our θ1= 1. Later on, we will change the slope to get the