Post · 1 min read· p. 142

Linear algebra fact

Here is interesting linear algebra fact: let AA be an n×nn \times n matrix and uu be a vector such that u⊤A=λu⊤u^{\top}A = \lambda u^{\top}. Then for any matrix BB, u⊤((A−B)(λI−B)−1)=u⊤u^{\top}((A-B)(\lambda I - B)^{-1}) = u^{\top}.

The proof is just basic algebra: u⊤(A−B)(λI−B)−1=(λu⊤−u⊤B)(λI−B)−1=u⊤(λI−B)(λI−B)−1=u⊤u^{\top}(A-B)(\lambda I - B)^{-1} = (\lambda u^{\top} - u^{\top}B)(\lambda I - B)^{-1} = u^{\top}(\lambda I - B)(\lambda I - B)^{-1} = u^{\top}.

Why care about this? Let's imagine that AA is a (not necessarily symmetric) stochastic matrix, so $1^{\top}A = 1^{\top}$. Let A−BA-B be a low-rank approximation to AA (so A−BA-B consists of all the large singular values, and BB consists of all the small singular values). Unfortunately since AA is not symmetric, this low-rank approximation doesn't preserve the eigenvalues of AA and so we need not have $1^{\top}(A-B) = 1^{\top}$. The (I−B)−1(I-B)^{-1} can be thought of as a "correction" term such that the resulting matrix is still low-rank, but we've preserved one of the eigenvectors of AA.