Simple Linear Regression, Regression Cost Function, Cost Function, Machine Learning.
different different best-fit lines to minimize the error. hθ(x)= θ1x Let θ1 = 1 (This is my slope value. Assumption this value equals to 1) Now according to the x values in the data hθ(x) values should be like this, x = 1 -> hθ(x) = 1 x = 2-> hθ(x) = 2 x = 3-> hθ(x) = 3 Now we can draw the best-fit