Key takeaways
- Eigendecomposition is essential for understanding matrix properties in machine learning.
- Eigenvectors and eigenvalues play a crucial role in methods like Principal Component Analysis (PCA).
- Correlation among risk factors can be assessed using a covariance matrix in financial analysis.
- A foundational knowledge of linear algebra enhances a beginner's ability to grasp data science concepts.
- The term 'eigen' signifies something that belongs to the parent matrix, highlighting its intrinsic nature.
Suppose there are a string of assets whose value needs to be assessed based on the risk factors. These risk factors usually are correlated. To ensure profitability with a tolerable level of risk is the primary goal of a risk analyst. To calculate the correlation and risk tolerance, the analyst might use a covariance matrix. Switching to maths might sound abrupt but, that’s how things are done in the real world. A college level maths concept to tackle a million dollar problem.
Assuming a basic knowledge of linear algebra and matrices, this article introduces the reader to the significance of eigendecomposition in the field of machine learning.
Eigen (pronounced eye-gan) is a German word that means “own” or “innate”, as in belonging to the parent matrix.
Eigenvectors are unit vectors, which means that their length or magnitude is equal to 1. They are often referred to as right vectors, which simply means a column vector. Whereas, eigenvalues are coefficients applied to eigenvectors that give the vectors their length or magnitude.
Eigendecomposition is used to decompose a matrix into eigenvectors and eigenvalues which are eventually applied in methods used in machine learning, such as in the Principal Component Analysis method or PCA. Decomposing a matrix in terms of its eigenvalues and its eigenvectors gives valuable insights into the properties of the matrix.

Eigenvalues In Principal Component Analysis
Machine learning involves lots of data. If in any way we are able to reduce the data size without losing actual representation of those values then its a piece of pie for programmers. Principal Component Analysis or PCA is performed for dimensionality reduction. With larger datasets, finding significant features gets difficult. So, in order to check for the correlation between two variables and if they could be dropped off the table to make the machine learning model more robust. Talking about PCA let’s have a brief look at how it is performed:- Firstly, the data needs to be centred — meaning subtracting the average or the mean from every attribute.
- Now computing the covariance matrix gets easier.
- Covariance between two variables gives how much they are dependent or independent of each other.
- If two variables say X and Y are said to be in positive correlation if Y increases with an increase in X and decreases with a decrease in X.

Sample Code to calculate eigenvalues in Python
from numpy import array
from numpy.linalg import eig
A = array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print(A)
values, vectors = eig(A)
print(values)
print(vectors)
Conclusion
The knowledge of manipulating the matrices by performing a transpose or a rotation is very essential. Though these operations can now be called with a single line of code in Python, having an intuition of how a transformed matrix changes in a coordinate space comes in handy while interpreting the outcomes.Also See:
https://youtu.be/PFDu9oVAE-gSpotted an error? Tell our editors. Read our editorial standards and corrections.




