Simple Linear Regression, Regression Cost Function, Cost Function, Machine Learning.
can draw the best-fit line with these values and this line will pass through the origin(x = 0, y= 0). Here now my predicted points are in yellow color and the actual points are in blue color. Now let’s calculate my error value using J(θ1). Here we assume like θ0 = 0 and the J(θ0, θ1) will be J(θ1)