Simple Linear Regression, Regression Cost Function, Cost Function, Machine Learning.
Now in the dataset I have 3 points. So that m will be 3. m=3 Now the summation of i =1 to 3 means the entire summation of 1,2 and 3 value. So I 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 [ (1 -1)^2 +