NOTE · 2020笔记 · 2020
Probabilistic Interpretation of Sum of Square Loss Function
One way to interpret the form of "square" in square loss.
Square Loss Function (in Linear Regression)
For linear regression, the way that we used to find the optimal parameters \overrightarrow \theta is called gradient descent, which we seek for \overrightarrow \theta that minimize the loss function:
That is:
Interpret the Loss Function as MLE
In linear regression, we assume the model to be:
where \epsilon is called the error term which conposes of unmodelled factors and random noise. And under general assumption, \epsilon^{(i)}s are gaussian random variables that are independent from each other
Geometrically, this is the whole story of the square in “square loss”: the line \theta^Tx is not the data, it is the mean of the data, and every observation is drawn from a bell hanging off that line.
Under this assumption, the distribution of y can be expressed as
That indicates
The likelihood function
The log likelihood function
We can see here
So we can see minimizing loss function \mathcal{J} is actually equivalent to find the maximum likelihood estimation of \overrightarrow y. This is the equivalence written along the bottom of the figure above: the squares are not an arbitrary choice of penalty, they are what a Gaussian error term turns into once you take a log.