Eigen Decomposition
Introduction
Eigen decomposition is very important in linear algebra. It is a factorization of a matrix into a canonical form. The matrix is denoted in terms of its eigenvalues and eigenvectors. Merely diagonalizable matrices may be factorized in this manner. The decomposition is named spectral decomposition when the matrix being factorized is a normal symmetric matrix.
In this article, we will understand the Eigen Decomposition in detail as it is a more advanced topic in Linear Algebra. This is similarly more relevant and useful in machine learning.
Description
The matrix decomposition of a square matrix A into supposed eigenvalues and eigenvectors is a very imperative one.?This decomposition usually drives below the name matrix diagonalization.
On the other hand, this name is less than optimal. Meanwhile, the process being defined is actually the decomposition of a matrix into a product of three other matrices. Only one of which is included is the diagonal. Similarly, due to all other standard types of matrix decomposition use the term decomposition in their names. For example, Cholesky decomposition, Hessenberg decomposition, and so on.
Therefore, the decomposition of a matrix into matrices is composed of its eigenvectors and eigenvalues. That is named Eigen decomposition in this work.
A vector is an eigenvector of a matrix if it fulfills the below equation.
A . v = lambda . v
This is known as the eigenvalue equation. Where;
Otherwise, lacking the dot notation.
Av = lambdav
A = Q . diag(V) . Q^-1
On the other hand, lacking the dot notation.
A = Qdiag(V)Q^-1
Where:
Eigenvectors and Eigenvalues
领英推荐
Calculation of Eigen decomposition
# eigendecompositionfrom numpy import array
from NumPy.linalg import eig
# define matrix
A = array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print(A)
# calculate eigendecomposition
values, vectors = eig(A)
print(values)
print(vectors)
?
[[1 2 3][4 5 6]
[7 8 9]]
[??1.61168440e+01??-1.11684397e+00??-9.75918483e-16]
[[-0.23197069 -0.78583024??0.40824829]
[-0.52532209 -0.08675134 -0.81649658]
[-0.8186735??0.61232756??0.40824829]]
For more details visit:https://www.technologiesinindustry4.com/2021/12/eigen-decomposition.html