Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

why we so squaring not absolute value? -->> it is easier to solve than other cost-functions.

In order to find the solution to a regression problem, one needs to minimize the cost-function. An efficient way to do it is by
differentiating the cost-function and comparing the derivative to zero.

When the cost-function is the square error, the derivative is a linear function of the error, and if the model is linear in its
parameters, a linear function of the parameters. So, finding the regression coefficients, when using square error (and the model
is linear) becomes solving a linear set of equations. And that is relatively easy to do.

why normal distribution? --->> because prediction of model does not deviate large
means least error and because most of the data are in center means SD is less

You might also like