東京大学 新領域創成科学研究科 メディカル情報生命専攻 2024年8月実施 問題8
Author
KardeniaPoyu
Description
以下で Rn×m は n 行 m 列实数値行列の集合を表すものとする。
正則行列 A∈Rn×n の特異値分解は以下で与えられる (n≥2)。
A=UΣVT
ここで、U∈Rn×n,V∈Rn×n は UTU=In,VTV=In をみたし、Σ=diag(σ1,…,σn)∈Rn×n は対角行列でその対角成分は σ1≥⋯≥σn>0 を満たす。ただし、MT は行列 M の転置を表し、Im∈Rm×m は単位行列である。
A のランク r 近似 A^ を以下で定義する (1≤r<n)。
A^=U^Σ^V^T
ここで、U^∈Rn×r,V^∈Rn×r は U,V の最初の r 列からなる行列であり、Σ^=diag(σ1,…,σr)∈Rr×r である。A^ は以下の最適化问题の一つの解 X を与えることが知られている。
Xmin∥A−X∥2subject to X∈Rn×n,rank(X)=r
ただし、∥M∥2=trace(MTM)=∑i,j(Mij)2 である。
以下の問いに導出も含めて答えよ。
(1) A^TA^,A^A^T の特異値分解を求めよ。
(2) A^+=V^Σ^−1U^T とするとき、AA^+A=A^ を示せ。
(3) 次の最適化問題の解を求めよ。
Xmin∥A−XXTA∥2subject to X∈Rn×r,XTX=Ir
(4) 次の最適化問題の解を求めよ。
Xmaxtrace(XTAATX)subject to X∈Rn×r,XTX=Ir
(5) B∈Rn×n,C∈Rn×n を用いて A=BC と書けるとする。次の最適化問題の解を求めよ。
Xmin∥BC−BXC∥2subject to X∈Rn×n,rank(X)=r
Kai
(1)
定義より、A^=U^Σ^V^T であり、U^TU^=Ir、V^TV^=Ir を満たす。
まず、A^TA^ について計算する。
A^TA^=(U^Σ^V^T)T(U^Σ^V^T)=V^Σ^TU^TU^Σ^V^T
Σ^ は対角行列であるため Σ^T=Σ^ であり、U^TU^=Ir より、
A^TA^=V^Σ^IrΣ^V^T=V^Σ^2V^T
これが A^TA^ のコンパクト特異値分解(あるいは固有値分解)の形である。n×n 行列としての完全な特異値分解で表すと、直交行列 V を用いて以下のようになる。
A^TA^=V(Σ^2000)VT
同様に、A^A^T について計算する。
A^A^T=(U^Σ^V^T)(U^Σ^V^T)T=U^Σ^V^TV^Σ^U^T
V^TV^=Ir より、
A^A^T=U^Σ^IrΣ^U^T=U^Σ^2U^T
完全な特異値分解で表すと、直交行列 U を用いて以下のようになる。
A^A^T=U(Σ^2000)UT
English:
By definition, A^=U^Σ^V^T, satisfying U^TU^=Ir and V^TV^=Ir.
First, we calculate A^TA^:
A^TA^=(U^Σ^V^T)T(U^Σ^V^T)=V^Σ^TU^TU^Σ^V^T
Since Σ^ is a diagonal matrix, Σ^T=Σ^. Using U^TU^=Ir, we have:
A^TA^=V^Σ^IrΣ^V^T=V^Σ^2V^T
This is the compact SVD (or eigenvalue decomposition) of A^TA^. As a full SVD for an n×n matrix using the orthogonal matrix V, it is written as:
A^TA^=V(Σ^2000)VT
Similarly, calculating A^A^T:
A^A^T=(U^Σ^V^T)(U^Σ^V^T)T=U^Σ^V^TV^Σ^U^T
Using V^TV^=Ir, we have:
A^A^T=U^Σ^IrΣ^U^T=U^Σ^2U^T
As a full SVD using the orthogonal matrix U, it is written as:
A^A^T=U(Σ^2000)UT
(2)
A^=U^Σ^V^T および A^+=V^Σ^−1U^T を左辺に代入して計算する。
A^A^+A^=(U^Σ^V^T)(V^Σ^−1U^T)(U^Σ^V^T)=U^Σ^(V^TV^)Σ^−1(U^TU^)Σ^V^T
V^TV^=Ir および U^TU^=Ir であるため、
A^A^+A^=U^Σ^IrΣ^−1IrΣ^V^T=U^(Σ^Σ^−1Σ^)V^T=U^Σ^V^T=A^
以上より、A^A^+A^=A^ が示された。
English:
Substitute A^=U^Σ^V^T and A^+=V^Σ^−1U^T into the left side:
A^A^+A^=(U^Σ^V^T)(V^Σ^−1U^T)(U^Σ^V^T)=U^Σ^(V^TV^)Σ^−1(U^TU^)Σ^V^T
Since V^TV^=Ir and U^TU^=Ir:
A^A^+A^=U^Σ^IrΣ^−1IrΣ^V^T=U^(Σ^Σ^−1Σ^)V^T=U^Σ^V^T=A^
Thus, A^A^+A^=A^ is proven.
(3)
P=XXT とおくと、XTX=Ir であるため P は階数 r の直交射影行列である。
目標は ∥A−PA∥2 を最小化することである。PA は行列 A の列空間を X が張る r 次元部分空間に射影したものであり、rank(PA)≤r である。
エッカート・ヤング・ミルスキーの定理(Eckart-Young-Mirsky Theorem)より、rank(Y)≤r を満たす行列 Y の中で ∥A−Y∥2 を最小化するものは Y=A^=U^Σ^V^T である。
したがって、XXTA=A^ を満たす X を見つければよい。
行列 A=UΣVT に対して U^U^TA を計算すると、
U^U^TA=U^U^T(U^Σ^V^T+U~Σ~V~T)=U^Σ^V^T=A^
となる(U~ は U の r+1 から n 列目)。
よって、X の列ベクトルが U^ の列ベクトルと同じ空間を張ればよい。
解は、任意の直交行列 Q∈Rr×r(QTQ=Ir)を用いて以下のように表される。
解: X=U^Q (最も基本的な解は X=U^)
English:
Let P=XXT. Since XTX=Ir, P is an orthogonal projection matrix of rank r.
The objective is to minimize ∥A−PA∥2. PA is the projection of the column space of A onto the r-dimensional subspace spanned by X, ensuring rank(PA)≤r.
By the Eckart-Young-Mirsky Theorem, the matrix Y that minimizes ∥A−Y∥2 subject to rank(Y)≤r is Y=A^=U^Σ^V^T.
Thus, we need to find X such that XXTA=A^.
Calculating U^U^TA for A=UΣVT, we get:
U^U^TA=U^U^T(U^Σ^V^T+U~Σ~V~T)=U^Σ^V^T=A^
(where U~ represents columns r+1 to n of U).
Therefore, the column space of X must span the same space as the columns of U^.
The solution, using any orthogonal matrix Q∈Rr×r (QTQ=Ir), is expressed as:
Solution: X=U^Q (The most basic solution is X=U^)
(4)
AAT=(UΣVT)(VΣUT)=UΣ2UT であり、これは固有値 σ12≥σ22≥⋯≥σn2 を持つ対称行列である。
最適化問題は maxXtrace(XTAATX) subject to XTX=Ir となる。
Ky Fanの定理(またはRayleigh-Ritzの定理の拡張)より、正規直交系を列に持つ行列 X に対する trace(XTMX) の最大値は、対称行列 M の上位 r 個の固有値の和(この場合は ∑i=1rσi2)に等しい。
この最大値は、X の列ベクトルが M の上位 r 個の固有値に対応する固有空間(主部分空間)を張るときに達成される。
AAT の上位 r 個の固有値に対応する固有ベクトルは、行列 U の最初の r 列、すなわち U^ である。
したがって、X は U^ と同じ空間を張る正規直交行列であればよい。
解: X=U^Q (Q∈Rr×r は任意の直交行列)
English:
AAT=(UΣVT)(VΣUT)=UΣ2UT, which is a symmetric matrix with eigenvalues σ12≥σ22≥⋯≥σn2.
The optimization problem is maxXtrace(XTAATX) subject to XTX=Ir.
By Ky Fan's Theorem (or the extended Rayleigh-Ritz theorem), the maximum of trace(XTMX) for an orthonormal matrix X is the sum of the r largest eigenvalues of the symmetric matrix M (in this case, ∑i=1rσi2).
This maximum is achieved when the column vectors of X span the eigenspace (principal subspace) corresponding to the r largest eigenvalues of M.
The eigenvectors corresponding to the r largest eigenvalues of AAT are the first r columns of U, which is U^.
Therefore, X must be an orthonormal matrix spanning the same space as U^.
Solution: X=U^Q (where Q∈Rr×r is an arbitrary orthogonal matrix)
(5)
正則行列 A が A=BC と表されるため、B∈Rn×n および C∈Rn×n も正則行列(逆行列を持つ)である。
最適化する目的関数は ∥A−BXC∥2 である。
Y=BXC と定義する。B,C が正則であるため、任意の行列 X に対して rank(Y)=rank(X) が成り立つ。
したがって、条件 rank(X)=r は rank(Y)=r と同値になる。
問題は以下のように書き換えられる。
Ymin∥A−Y∥2subject torank(Y)=r
エッカート・ヤング・ミルスキーの定理より、この最適化問題の解は Y=A^ である。
元の変数 X に戻すと、BXC=A^ を満たす X が求める解となる。
B,C は正則であるため、両辺に左から B−1、右から C−1 を掛ける。
解: X=B−1A^C−1
English:
Since the regular (invertible) matrix A is written as A=BC, the matrices B∈Rn×n and C∈Rn×n must also be regular (invertible).
The objective function to be optimized is ∥A−BXC∥2.
Let Y=BXC. Because B and C are invertible, rank(Y)=rank(X) holds for any matrix X.
Therefore, the condition rank(X)=r is completely equivalent to rank(Y)=r.
The problem can be rewritten as:
Ymin∥A−Y∥2subject torank(Y)=r
By the Eckart-Young-Mirsky Theorem, the solution to this optimization problem is Y=A^.
Reverting to the original variable X, the desired solution satisfies BXC=A^.
Since B and C are invertible, we multiply by B−1 on the left and C−1 on the right.
Solution: X=B−1A^C−1