In a linear regression problem, h(x) is the predicted value of the target variable, y is the actual value of the target variable, m is the number of training examples. What do we try to minimize?
In a linear regression problem, h(x) is the predicted value of the target variable, y is the actual value of the target variable, m is the number of training examples. What do we try to minimize? Correct Answer (h(x) – y)2 / 2*m
The objective is to find the difference between the predicted value and actual value of the target variable and to minimize this error. If we get a negative value, then no minimizing can be done, that’s why squaring is done. To get an average over the dataset, the squared value is divided by twice the number of training examples.