Maths Pca
Maths Pca
Maths Pca
Problem-01:
Get data.
Consider the two dimensional patterns (2, 1), (3, 5), (4, 3), (5, 6), (6, 7), (7, 8). x6 = (7, 8)
OR
CLASS 1 Step-02:
X=2,3,4
CLASS 2
Y=6,7,8 = ((2 + 3 + 4 + 5 + 6 + 7) / 6, (1 + 5 + 3 + 6 + 7 + 8) / 6)
= (4.5, 5)
Solution-
Thus,
Step-04:
Step-03: Now,
···
Now,
Covariance matrix
Step-05:
Calculate the eigen values and eigen vectors of the covariance matrix.
From here,
λ2 – 8.59λ + 3.09 = 0
Clearly, the second eigen value is very small compared to the first eigen value.
X = Eigen vector
λ = Eigen value
Eigen vector corresponding to the greatest eigen value is the principal component for the 3.67X1 + 5.67X2 = 8.22X2
given data set.
where-
M = Covariance Matrix
The given feature vector is (2, 1).
Lastly, we project the data points onto the new subspace as-
Problem-02:
Get more notes and other study material of Pattern Recognition.
Solution-