DL_1: Eigendecomposition | 2.7.
-
date_range 14/05/2020 10:22 infosortDeep_Learninglabeldlalgebra
- You should read about eigenvectors and eigenvalues in MATH_6 to be able to understand the following.
2.7. Eigendecomposition
We can understand better about a mathematical object if we breakdown them. For example, we can represent the number by the prime numbers: . From this representation, we can conclude some property, such as is divisible by and not divisible by .
Similarly, we can decompose a matrix into a set of eigenvectors and eigenvalues, it called eigendecompose.
Note that: If is an eigenvector of matrix then () is a eigenvector too. For this reason, we only look for unit eigenvectors.
Suppose that a matrix has linearly independent eigenvectors with corresponding eigenvalues . The eigendecomposition of is:
where and
We have seen constructing matrices with specific eigenvectors and eigenvalues allows us to stretch space in desired directions.
However, not every matrix can be decomposed into eigenvectors and eigenvalues. In some cases, some eigenvalues are complex number. At this, we can use only real-valued eigenvalues and eigenvectors:
where is an orthogonal matrix composed of eigenvectors of . is diagonal matrix, where the eigenvalue is associated with the eigenvector in column of .
The eigendecomposition tells us some useful fact about the matrix:
The matrix is singular if and only if any the eigenvalues are zero.
The eigendecomposition of real symmetric matrix can be used to optimize quadratic expressions of the form subject to :
Whenever is equal to an eigenvector of , takes on the value of the corresponding eigenvalue.
, . We can prove it:
As is symmetric, is an orthogonal basis, and .
As is orthogonal, we have .
As ,
where , - it means . So we obtain is a convex combination of . Thus, , .
A matrix whose eigenvalues are all positive is called positive definite. A matrix whose eigenvalues are all positive or zero valued is called positive semidefinite. If all eigenvalues are negative, the matrix is negative definite.
Positive semidefinite matrices guarantee that , . Positive definite matrices guarantee that .
Reference:
- 2.7 | Deep Learning | Ian Goodfellow, Yoshua Bengio, Aaron Courville.
- Eigendecomposition - Optimization of quadratic expressions | Stack Exchange.