東京大学 新領域創成科学研究科 メディカル情報生命専攻 2015年8月実施 問題8
Author
zephyr, 祭音Myyura
Description
Answer the following questions about linear algebra.
(1)
Compute the inverse matrix of the following matrix,
(1225).
(2)
Consider data points (xi,yi),i=1,…,n in a two-dimensional space. Variance with respect to the x-axis, variance with respect to the y-axis, and covariance are respectively defined as
σx=n1i=1∑n(xi−xˉ)2,σy=n1i=1∑n(yi−yˉ)2,σxy=n1i=1∑n(xi−xˉ)(yi−yˉ)
where xˉ,yˉ denote the averages with respect to the x and y axes, respectively.
A: Compute the variance-covariance matrix
(σxσxyσxyσy)
for the following data points, (−2,−2),(2,2),(1,−1),(−1,1).
B: Compute all eigenvalues and eigenvectors of the variance-covariance matrix.
(3)
Prove that, if the eigenvalues of a regular matrix A are λ1,…,λn, those of the inverse matrix A−1 are 1/λ1,…,1/λn.
回答以下关于线性代数的问题。
(1)
计算以下矩阵的逆矩阵,
(1225).
(2)
考虑数据点 (xi,yi),i=1,…,n 在二维空间中。相对于 x 轴的方差、相对于 y 轴的方差和协方差分别定义为
σx=n1i=1∑n(xi−xˉ)2,σy=n1i=1∑n(yi−yˉ)2,σxy=n1i=1∑n(xi−xˉ)(yi−yˉ)
其中 xˉ,yˉ 分别表示相对于 x 和 y 轴的平均值。
A: 计算方差-协方差矩阵
(σxσxyσxyσy)
对于以下数据点,(−2,−2),(2,2),(1,1),(−1,1)。
B: 计算方差-协方差矩阵的所有特征值和特征向量。
(3)
证明,如果一个正规矩阵 A 的特征值是 λ1,…,λn,那么其逆矩阵 A−1 的特征值是 1/λ1,…,1/λn。
题目描述
回答下列线性代数问题:
-
求矩阵
(1225)
的逆矩阵。
-
对二维数据点 (xi,yi)(i=1,…,n),定义
σx=n1i=1∑n(xi−xˉ)2,σy=n1i=1∑n(yi−yˉ)2,
σxy=n1i=1∑n(xi−xˉ)(yi−yˉ),
其中 xˉ,yˉ 为两坐标的均值。
-
对数据点
(−2,−2), (2,2), (1,−1), (−1,1)
求方差—协方差矩阵
(σxσxyσxyσy).
-
求该方差—协方差矩阵的全部特征值与特征向量。
-
证明:若可逆矩阵 A 的特征值为 λ1,…,λn,则 A−1 的相应特征值为 1/λ1,…,1/λn。
注:Description 的英文题干及 Kai 均给出第三个数据点为 (1,−1);原有中文译文在此处写成了 (1,1),以上按两处一致的信息重组。
Kai
(1)
To find the inverse of the matrix
A=(1225),
we use the formula for the inverse of a 2×2 matrix:
A−1=det(A)1(d−c−ba),
where A=(acbd) and det(A)=ad−bc.
For our matrix,
a=1,b=2,c=2,d=5.
First, compute the determinant:
det(A)=(1⋅5)−(2⋅2)=5−4=1.
Then, the inverse is
A−1=11(5−2−21)=(5−2−21).
(2)
A: Variance-Covariance Matrix
Given data points (−2,−2),(2,2),(1,−1),(−1,1), we first compute the mean values:
xˉ=4−2+2+1−1=0,yˉ=4−2+2−1+1=0.
Next, we compute the variances and covariances:
σxx=41i=1∑4(xi−xˉ)2=41[(2)2+(2)2+(1)2+(1)2]=410=2.5,
σyy=41i=1∑4(yi−yˉ)2=41[(2)2+(2)2+(1)2+(1)2]=410=2.5,
σxy=41i=1∑4(xi−xˉ)(yi−yˉ)=41[(−2)(−2)+(2)(2)+(1)(−1)+(−1)(1)]=46=1.5.
Thus, the variance-covariance matrix is:
C=(2.51.51.52.5).
B: Eigenvalues and Eigenvectors
To find the eigenvalues λ of C, solve the characteristic equation:
det(C−λI)=0.
For our matrix C,
C−λI=(2.5−λ1.51.52.5−λ),
the determinant is:
det(C−λI)=(2.5−λ)(2.5−λ)−(1.5)(1.5)=λ2−5λ+4=0.
Solving for λ, we get:
λ2−5λ+4=0⟹(λ−4)(λ−1)=0⟹λ1=4,λ2=1.
To find the eigenvectors corresponding to the eigenvalues λ1=4 and λ2=1, we solve the equation (C−λI)v=0.
For λ1=4
C−4I=(2.5−41.51.52.5−4)=(−1.51.51.5−1.5).
The equation (C−4I)v=0 becomes:
(−1.51.51.5−1.5)(v1v2)=(00).
This gives us the system of equations:
−1.5v1+1.5v2=0,1.5v1−1.5v2=0.
From the first equation, we obtain v1=v2. Therefore, an eigenvector corresponding to λ1=4 is:
v1=(11).
For λ2=1
C−1I=(2.5−11.51.52.5−1)=(1.51.51.51.5).
The equation (C−1I)v=0 becomes:
(1.51.51.51.5)(v1v2)=(00).
This gives us the system of equations:
1.5v1+1.5v2=0,1.5v1+1.5v2=0.
From the first equation, we obtain v1=−v2. Therefore, an eigenvector corresponding to λ2=1 is:
v2=(1−1).
Thus, all eigenvectors corresponding to λ1=4 are
c(11) with c=0, and all eigenvectors corresponding to λ2=1 are
c(1−1) with c=0.
(3)
Let A be a regular matrix with eigenvalues λ1,λ2,…,λn and corresponding eigenvectors v1,v2,…,vn. By definition, we have:
Avi=λivi⟹A−1Avi=A−1(λivi)⟹vi=λiA−1vi⟹A−1vi=λi1vi.
Since A is invertible, every λi is nonzero. Conversely, an eigenvalue μ of A−1 gives the eigenvalue 1/μ of A by the same argument. Thus, the eigenvalues of A−1 are exactly λi1 for i=1,2,…,n.
Knowledge
矩阵逆 方差协方差矩阵 特征值和特征向量
解题技巧和信息
- 计算逆矩阵时,确保熟记 2×2 矩阵的逆矩阵公式。
- 计算方差-协方差矩阵时,需准确计算均值、方差和协方差。
- 找特征值和特征向量时,熟悉特征值方程和特征向量的计算方法。
- 证明部分注意利用特征值和特征向量的定义和性质。
重点词汇
- Inverse matrix: 逆矩阵
- Variance-Covariance matrix: 方差-协方差矩阵
- Eigenvalue: 特征值
- Eigenvector: 特征向量
参考资料
- Gilbert Strang, Linear Algebra and Its Applications, Chapter 3.
- Axler, Sheldon, Linear Algebra Done Right, Chapter 5.