Simple Linear Regression, Regression Cost Function, Cost Function, Machine Learning.
equals to 0.5) Now according to the x values in the data hθ(x) values should be like this, x = 1 -> hθ(x) = 0.5 x = 2-> hθ(x) = 1 x = 3-> hθ(x) = 1.5 Now we can draw the best-fit line with these values and this line will pass through the origin(x = 0, y= 0). So here red points are my predicted