Calculation of feature vectors in Pca Covariance Matrix

Source: Internet
Author: User

Dimensions n> Number of samples m of the matrix in face recognition.

 

Calculate the principal component of matrix A. According to the principle of PCA, it is to calculate the feature values and feature vectors of the covariance matrix a' A of A, But A' A may be relatively large, therefore, according to the size of a' A, the feature values of A' or A' A can be calculated. The feature values of the original Matrix and Its transpose matrix are the same, but the feature vectors are different.

Assume that our data is stored by row. A is a matrix of M * n, n> M, M is the number of samples, and N is a dimension. Then, the covariance matrix should be a', a' A is a matrix of N * n dimensions. This matrix is very large and is not conducive to finding feature values and feature vectors. Therefore, first obtain the feature value of A', which is a matrix of M * m dimension.

By Matrix properties, the feature value of a' is the feature value of a'. The relationship between the feature vectors of a' A and those of a' is derived below.

 

B = A' A; C = ';

C * Y = C * Y-> AA '* Y = C * Y; left by'

A' A * (a' * y) = C * (a' * y) --> B * (a' * y) = C * (a' * y );

Therefore, the feature vector a' * y of B has the same feature value as C.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.