Engineering assignments
Engineering assignments
Intro To Machine
Learning
Note 8
Get data.
The given feature vectors are-
x1 = (2, 1)
x2 = (3, 5)
x3 = (4, 3)
x4 = (5, 6)
x5 = (6, 7)
x6 = (7, 8)
Covariance matrix
= (m1 + m2 + m3 + m4 + m5 + m6) / 6
So, we have-
From here,
(2.92 (3.67 x 3.67) = 0
16.56 2 13.47 = 0
2
1 2 = 0.38.
Clearly, the second eigen value is very small compared to the first eigen value.
So, the second eigen vector can be left out.
Eigen vector corresponding to the greatest eigen value is the principal component for the given data
set.
1.
We use the following equation to find the eigen vector-
where-
M = Covariance Matrix
X = Eigen vector
On simplification, we get-
5.3X1 = 3.67X2
3.67X1 = 2.55X2