Simple Linear Regression, Regression Cost Function, Cost Function, Machine Learning.
will get the value by expanding this values like this, J(θ1) = 1/2*3 [All 3 dataset Sum (predicted value - actual true value)^2] J(θ1) = 1/2*3 [ (0.5 -1)^2 + (1 - 2)^2 + (1.5 - 3)^2} J(θ1) = 1/2*3 [ (-0.5)^2 + (-1)^2 + (-1.5)^2} J(θ1) = 0.58 Now my J(θ1) value which is the error is 0.58. It is a