[关闭]
@EtoDemerzel 2017-11-22T13:52:56.000000Z 字数 4240 阅读 1371

CS 229 notes Supervised Learning

监督学习 线性代数


Forword

the proof of Normal equation and, before that, some linear algebra equations, which will be used in the proof.

The normal equation

Linear algebra preparation

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)

Least squares revisited

(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:

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注