机器学习的数学基础(二)

第二题{Positive definite matrices}

题目

A matrix ARn×nA \in {R}^{n×n}​ is positive semi-definite (PSD), denoted A0A \ge 0​, if A=ATA = {A}^{T}​ and xTAx0{x}^T Ax \ge 0​ for all xRnx \in {R}^{n}​. A matrix AA​ is positive definite,denoted A>0A > 0​,if A=ATA={A}^{T}​ and xTAx>0{x}^TAx>0​ for all x0x\ne 0​, that is, all non-zero vectors x.The simplest example of a positive definite matrix is the identity I (the diagonal matrix with 1s on the diagonal and 0s elsewhere), which satisfies xTIx=x22=i=1nxi2{x}^TIx={\left\| x\right\|}_2^2 = \sum_{i=1}^{n}{{x}_{i}^2}​.

第一问

Let zRnz \in {R}^{n} be an n-vector. Show that A=zzTA = z{z}^T is positive semi-definite.

首先:AT=(zzT)T=zzT=AA^T = (zz^T)^T = zz^T=A

zzT=[z1z2zn][z1z2zn]=[z1z1z1z2z1znz2z1z2z2z2znznz1znz2znzn]zz^T=\begin{bmatrix} z_1 \\ z_2 \\ \vdots \\ z_n \end{bmatrix} \begin{bmatrix} z_1 & z_2 & \cdots & z_n \end{bmatrix}=\begin{bmatrix} z_1z_1 & z_1z_2 & \cdots & z_1z_n \\ z_2z_1 & z_2z_2 & \cdots & z_2z_n \\ \vdots &\vdots &\ddots & \vdots \\ z_nz_1 & z_nz_2 & \cdots &z_nz_n\end{bmatrix}​

Aij=zizj\therefore A_{ij} = z_iz_j

由第一题可知:
xTAx=i=1nj=1nAijxixj=i=1nj=1nzizjxixj=i=1nzixij=1nzixj=(i=1nzixi)20{x}^{T}Ax =\sum_{i=1}^{n}{\sum_{j=1}^{n}{{A}_{ij}{x}_{i}}{x}_{j}}=\sum_{i=1}^{n}{\sum_{j=1}^{n}{z_iz_j{x}_{i}}{x}_{j}}=\sum_{i=1}^{n}z_ix_i\sum_{j=1}^{n}z_ix_j={(\sum_{i=1}^{n}z_ix_i)}^2 \ge 0 for xRnx\in R^n

所以:A is PSD。

第二问

Let zRnz \in R^n​ be a non-zero n-vector. Let A=zzTA = zz^T​ . What is the null-space of A? What is the rank of A?

  • 知识点 null-space
    The nullspace of A consists of all solutions to Ax=0Ax=0. These vectors x are in RnR^n. The nullspace containing all solutions of Ax=0Ax=0 is denoted by N(A)N(A)​.

因为:z为非0向量,所以: Ax=0zzTx=0[z1z1z1z2z1znz2z1z2z2z2znznz1znz2znzn]x=0[z1z1z1z2z1zn000000]x=0[z1z2zn000000]x=0Ax=0 \Rightarrow zz^Tx=0 \Rightarrow \begin{bmatrix} z_1z_1 & z_1z_2 & \cdots & z_1z_n \\ z_2z_1 & z_2z_2 & \cdots & z_2z_n \\ \vdots &\vdots &\ddots & \vdots \\ z_nz_1 & z_nz_2 & \cdots &z_nz_n\end{bmatrix}x=0 \Rightarrow \begin{bmatrix} z_1z_1 & z_1z_2 & \cdots & z_1z_n \\ 0 & 0 & \cdots & 0 \\ \vdots &\vdots &\ddots & \vdots \\ 0 & 0 & \cdots &0 \end{bmatrix}x=0 \Rightarrow \begin{bmatrix} z_1 & z_2 & \cdots & z_n \\ 0 & 0 & \cdots & 0 \\ \vdots &\vdots &\ddots & \vdots \\ 0 & 0 & \cdots &0 \end{bmatrix}x=0​

可得 rank(A)=1rank(A) = 1.

可知:x1x_1为pivot variable,其他为free variables,所以 special solutions如下:

s1=[z2z100]s_1 = \begin{bmatrix} -z_2 \\ z_1 \\ 0\\ \vdots \\ 0 \end{bmatrix}

s2=[z30z10]s_2 = \begin{bmatrix} -z_3 \\ 0\\ z_1 \\ \vdots \\ 0 \end{bmatrix}

\vdots​

sn2=[zn100z10]s_{n-2}= \begin{bmatrix} -z_{n-1} \\ 0 \\ 0\\ \vdots \\ z_1\\ 0 \end{bmatrix}​

sn1=[zn000z1]s_{n-1}= \begin{bmatrix} -z_n \\ 0 \\ 0\\ \vdots \\ 0 \\ z_1 \end{bmatrix}​

A的Null Space是s1s_1​ s2s_2​sn1s_{n-1}​共n-1个special solutions的线性组合,即:

N(A)=c1s1+c2s2++cn1s(n1)=[i=1n1cizi+1c1z1cn1z1]N(A)= c_1s_1 + c_2s_2 + \cdots + c_{n-1}s_(n-1)= \begin{bmatrix} -\sum_{i=1}^{n-1}c_iz_{i+1} \\ c_1z_1\\ \vdots \\c_{n-1} z_1 \end{bmatrix}​

第三问

Let ARn×nA \in R^{n\times n} be positive semidefinite and BRm×nB \in R^{m \times n} be arbitrary, where m,nNm, n \in N. Is BABTBAB^T PSD? If so, prove it. If not, give a counterexample with explicit A, B.

  1. C=BABTC=BAB^T​,则CT=BABTC^T = BAB^T​, 且CRm×mC \in R^{m \times m}​.

  2. xRmx \in R^m, xTCx=xTBABTx=(BTx)TA(BTx)x^TCx = x^TBAB^Tx=(B^Tx)^TA(B^Tx)y=BTxy = B^Tx, yRny \in R^n, 因为 A是PSD,所以: yTAy0y^TAy \ge 0

    综合1,2,可得 C为PSD,即:BABTBAB^T为PSD。

相关文章:

  • 2021-10-11
  • 2021-11-10
  • 2022-01-19
  • 2021-06-01
  • 2022-01-14
猜你喜欢
  • 2021-06-17
  • 2021-12-19
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
相关资源
相似解决方案