@EtoDemerzel
2017-11-22T21:52:56.000000Z
字数 4240
阅读 1494
监督学习
线性代数
the proof of Normal equation and, before that, some linear algebra equations, which will be used in the proof.
For two matrices and such that is square, .
Proof:
Corollary:
Some properties:
some facts of matrix derivative:
Proof: since
Proof 1:
assume to be a matrix, then will be a matrix while is a matrix.
Hence we have .Proof 2:
View this problem as a question of linear transformations. So are three linear transformations.
According to the property ,
,
.
Thus,
This expression can and should be viewed as a linear mapping acting on the vector , and this view gives us the desired result.
Proof:
( refers to the cofactor)
(if we don't include the intercept term)
since ,
Thus,
.
Combine Equations :
Hence
Notice it is a real number, or you can see it as a matrix, so
since and involves no elements.
then use equation with ,
To minmize , we set its derivative to zero, and obtain the normal equation: