这一章主要讲了内积、范数、投影和正交化。几何向量的长度和角度。
3.1 Norms
几何向量(geometric vectors)是从原点开始的有向线段,向量的长度是“端”到原点的距离
范数(Norms)
![\underset{x}{\rightarrow}](https://i-blog.csdnimg.cn/blog_migrate/573d40432ab165fa8fd830d74b75e9ee.gif)
![\left | \left | \underset{x}{\rightarrow}\right | \right |](https://i-blog.csdnimg.cn/blog_migrate/b735dd9200889c04df408b0d437c79c7.gif)
![\left | \left | \lambda \underset{x}{\rightarrow} \right | \right |= \left | \lambda \right |\left | \left | \underset{x}{\rightarrow} \right | \right |](https://i-blog.csdnimg.cn/blog_migrate/e1e81daf610fe5db57cfe2d80225cc83.gif)
![\left \| \underset{x }{\rightarrow} +\underset{y}{\rightarrow}\right \|\leqslant \left \| \underset{x}{\rightarrow} \right \|+\left \| \underset{y}{\rightarrow} \right \|](https://i-blog.csdnimg.cn/blog_migrate/697e91b4ac6c5d7bb3f65c16a0dff8ee.gif)
![\left \| \underset{x}{\rightarrow} \right \|\geqslant 0; \left \| \underset{x}{\rightarrow} \right \|= 0\Leftrightarrow \underset{x}{\rightarrow}=\underset{0}{\rightarrow}](https://i-blog.csdnimg.cn/blog_migrate/74daddc50fdb00f6aa351f77564012c8.gif)
![l_{1}](https://i-blog.csdnimg.cn/blog_migrate/11ed6187ee72f6f4cbf2370aac403332.gif)
![l_{2}](https://i-blog.csdnimg.cn/blog_migrate/b465e4ffc816a5d04d1a5d44938a534a.gif)
![l_{p}](https://i-blog.csdnimg.cn/blog_migrate/414664e92a78a2001621414c8073376c.gif)
![l_{\infty }](https://i-blog.csdnimg.cn/blog_migrate/c489c208eed55649a29b628d741a549e.gif)
![l_{1}](https://i-blog.csdnimg.cn/blog_migrate/11ed6187ee72f6f4cbf2370aac403332.gif)
![\left \| \underset{x}{\rightarrow} \right \|_{1}=\sum_{i=1}^{n}\left | x_{i} \right |](https://i-blog.csdnimg.cn/blog_migrate/03ddc9383244f6745d38d6edea453c8a.gif)
![l_{2}](https://i-blog.csdnimg.cn/blog_migrate/b465e4ffc816a5d04d1a5d44938a534a.gif)
![\left \| \underset{x}{\rightarrow} \right \|_{2}= \sqrt{\sum_{i=1}^{n}x_{i}^{2}}= \sqrt{\underset{x}{\rightarrow}^{T}\cdot \underset{x}{\rightarrow}}](https://i-blog.csdnimg.cn/blog_migrate/d69219f0eb0f664441e4f20b9e764ab6.gif)
范数:
范数:
3.2 Inner Products
内积(Inner Products)
一个向量的长度可以用内积表示,两个向量之间的角度和向量之间的距离也可以用内积表示。内积主要的目的是为了判断向量之间是否正交。
3.2.1 Dot Products
点积(Dot Products):点积是内积的一种。
3.2.2 General Inner Products
双线性映射,向量空间V,向量
,
, 满足:
![\forall](https://i-blog.csdnimg.cn/blog_migrate/b1ff0b00f8af4056e4c53620482a45b3.gif)
![\underset{x}{\rightarrow},\underset{y}{\rightarrow}\in V](https://i-blog.csdnimg.cn/blog_migrate/49bec16c85d8df8dba736b301aaa455c.gif)
![\Omega \left ( \underset{x}{\rightarrow},\underset{y}{\rightarrow} \right )=\Omega \left ( \underset{y}{\rightarrow} ,\underset{x}{\rightarrow}\right )](https://i-blog.csdnimg.cn/blog_migrate/1e26109a78e5fc6d4249d2cda6b822a0.gif%20%5Cleft%20%28%20%5Cunderset%7Bx%7D%7B%5Crightarrow%7D%2C%5Cunderset%7By%7D%7B%5Crightarrow%7D%20%5Cright%20%29%3D%5COmega%20%5Cleft%20%28%20%5Cunderset%7By%7D%7B%5Crightarrow%7D%20%2C%5Cunderset%7Bx%7D%7B%5Crightarrow%7D%5Cright%20%29)
![\Omega](https://i-blog.csdnimg.cn/blog_migrate/1e26109a78e5fc6d4249d2cda6b822a0.gif)
2.若对,
,
, 则称
是正定的(positive defifinite)
![\Omega](https://i-blog.csdnimg.cn/blog_migrate/1e26109a78e5fc6d4249d2cda6b822a0.gif)
![\Omega\left ( \underset{x}{\rightarrow} ,\underset{y}{\rightarrow}\right )](https://i-blog.csdnimg.cn/blog_migrate/1e26109a78e5fc6d4249d2cda6b822a0.gif%5Cleft%20%28%20%5Cunderset%7Bx%7D%7B%5Crightarrow%7D%20%2C%5Cunderset%7By%7D%7B%5Crightarrow%7D%5Cright%20%29)
![\left \langle \underset{x}{\rightarrow},\underset{y}{\rightarrow} \right \rangle](https://i-blog.csdnimg.cn/blog_migrate/fa74b70038ede34fb14ea746dd5aa605.gif)
![\left ( V,\left \langle \cdot ,\cdot \right \rangle \right )](https://i-blog.csdnimg.cn/blog_migrate/d756db021d7d43f2eeeec8a407f0658b.gif)
3.2.3 Symmetric, Positive Defifinite Matrices
对称正定矩阵(Symmetric, Positive Defifinite Matrices)由内积定义得到的,在机器学习中有重要的作用。
一个具有内积的n维向量空间V,向量空间V中的一组有序的基向量,向量空间中的向量
可以由基向量线性表示,
,
,根据内积的双线性,对all
都有:
内积<·,·>由A唯一确定,内积是对称的,意味着A也是对称的。
Defifinition 3.4 当,
,A被称为对称正定矩阵或者正定矩阵;若
,则A被称为对称半正定矩阵。
3.3 Lengths and Distances
将内积当作点积的时候,内积可以诱导出二范数。
Definition 3.6 (距离和矩阵)的距离
3.4 Angles and Orthogonality
Orthogonality(正交性)
orthogonal(正交的)
orthonormal(正交规范)
两个向量之间的角度w:
Definition3.7(正交性)当且仅当=0,两向量正交。若向量
正交,且
,则
是正交规范的(orthonoemal)。
若两个向量正交,则两向量垂直(当内积当作点积时), 若内积不是点积,则两向量不垂直。Example3.7证明了这一点。
Definition 3.8(正交矩阵)正交矩阵的两种定义:
1.
2.方阵
矩阵是对象,一张数表存信息;矩阵是一种对向量操作的算子,有旋转和伸缩两种操作,A,表示A作用在
上,对
进行伸缩和旋转,但是当矩阵A固定时,对不同的向量的作用效果不一定相同。但是当A是正交矩阵时,矩阵A具有保长性和保角性。
保长性:
,正交矩阵A对所有向量的伸缩比例都是1;
保角性:
3.5 Orthonormal Basis
Orthonormal Basis(正交基)
Definition3.9(正交基)基向量的正交性:
3.6 Orthogonal Complement
Orthogonal Complement(正交补):两个子空间正交,三维空间中,过原点的平面和过原点的直线垂直。
3.7 Inner Product of Functions
函数的内积