Академический Документы
Профессиональный Документы
Культура Документы
Go to...
Home » Math basics » Linear algebra » What are eigenvectors and eigenvalues?
1 Introduction
2 Calculating the eigenvalues
3 Calculating the first eigenvector
4 Calculating the second eigenvector
5 Conclusion
Introduction
Eigenvectors and eigenvalues have many important applications in computer vision and machine learning in
general. Well known examples are PCA (Principal Component Analysis) for dimensionality reduction or
EigenFaces for face recognition. An interesting use of eigenvectors and eigenvalues is also illustrated in my post
about error ellipses. Furthermore, eigendecomposition forms the base of the geometric interpretation of
covariance matrices, discussed in an more recent post. In this article, I will provide a gentle introduction into
this mathematical concept, and will show how to manually obtain the eigendecomposition of a 2D square
matrix.
An eigenvector is a vector whose direction remains unchanged when a linear transformation is applied to it.
Consider the image below in which three vectors are shown. The green square is only drawn to illustrate the
linear transformation that is applied to each of these three vectors.
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 1/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
Eigenvectors (red) do not change direction when a linear transformation (e.g. scaling) is
applied to them. Other vectors (yellow) do.
The transformation in this case is a simple scaling with factor 2 in the horizontal direction and factor 0.5 in the
vertical direction, such that the transformation matrix is defined as:
A vector is then scaled by applying this transformation as . The above figure shows
that the direction of some vectors (shown in red) is not affected by this linear transformation. These vectors are
called eigenvectors of the transformation, and uniquely define the square matrix . This unique, deterministic
relation is exactly the reason that those vectors are called ‘eigenvectors’ (Eigen means ‘specific’ in German).
In general, the eigenvector of a matrix is the vector for which the following holds:
(1)
where is a scalar value called the ‘eigenvalue’. This means that the linear transformation on vector is
completely defined by .
(2)
However, assuming that is not the null-vector, equation (2) can only be defined if is not
invertible. If a square matrix is not invertible, that means that its determinant must equal zero. Therefore, to
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 2/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
(3)
In the following sections we will determine the eigenvectors and eigenvalues of a matrix , by solving
equation (3). Matrix in this example, is defined by:
(4)
(5)
(6)
Since the discriminant is strictly positive, this means that two different values for exist:
(7)
We have now determined the two eigenvalues and . Note that a square matrix of size always
has exactly eigenvalues, each with a corresponding eigenvector. The eigenvalue specifies the size of the
eigenvector.
Check
We can now determine the out my by
eigenvectors top-4 of must-read
plugging the eigenvalues from
machine equation
learning (7) into equation (1) that
books
originally defined the problem. The eigenvectors are then found by solving this system of equations.
We first do this for eigenvalue , in order to find the corresponding first eigenvector:
Since this is simply the matrix notation for a system of equations, we can write it in its equivalent form:
(8)
(9)
Since an eigenvector simply represents an orientation (the corresponding eigenvalue represents the
magnitude), all scalar multiples of the eigenvector are vectors that are parallel to this eigenvector, and are
therefore equivalent (If we would normalize the vectors, they would all be equal). Thus, instead of further
solving the above system of equations, we can freely chose a real value for either or , and determine
the other one by using equation (9).
For this example, we arbitrarily choose , such that . Therefore, the eigenvector that
corresponds to eigenvalue is
(10)
(11)
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 4/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
(13)
We then arbitrarily choose , and find . Therefore, the eigenvector that corresponds to
eigenvalue is
(14)
Conclusion
In this article we reviewed the theoretical concepts of eigenvectors and eigenvalues. These concepts are of
great importance in many techniques used in computer vision and machine learning, such as dimensionality
reduction by means of PCA, or face recognition by means of EigenFaces.
Summary
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 5/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
an example.
Share
»
Why divide the sample variance by N-1?
Comments
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 6/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
Reply
Khon says:
March 5, 2015 at 11:53 pm
Reply
Reply
Arslan says:
June 14, 2015 at 2:42 pm
Nice Article
Reply
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 7/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
amazing.Thanks a lot.
Reply
Reply
your post.
Reply
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 8/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
Think you may now have x_21 and x_22 the wrong way
Reply
Patrick Ng says:
November 16, 2015 at 6:15 am
lambda I) is invertible?
Reply
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 9/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
equivalent.
the-determinant ).
So, if two of the columns of the matrix are
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 10/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
Reply
Reply
Reply
Nrupatunga says:
December 2, 2015 at 8:17 am
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 11/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
orientation”.
statement?
Thank you
Nrupatunga
Reply
Hi Nrupatunga,
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 12/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
magnitude.
Reply
Nrupatunga says:
December 2, 2015 at 9:47 am
silly to ask.
Thank you
Reply
Reply
arun says:
October 1, 2016 at 3:30 pm
Reply
Great explanation.
sign.
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 14/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
zh says:
July 21, 2017 at 6:50 am
Great work
Reply
Follow On Twitter
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 15/16
10/2/2019 What are eigenvectors and eigenvalues? - Computer vision for dummies
Article Topics
Statistics (2)
Other (2)
Recent Posts
Hybrid deep learning for modeling driving behavior from sensor data
Rss Feed
RSS - Posts
RSS - Comments
https://www.visiondummy.com/2014/03/eigenvalues-eigenvectors/ 16/16