1 / 26

Principle Component Analysis

Principle Component Analysis. Presented by: Sabbir Ahmed Roll: FH-227. Overview. Variance and Covariance Eigenvector and Eigenvalue Principle Component Analysis Application of PCA in Image Processing. Variance and Covariance(1/2).

lalo
Download Presentation

Principle Component Analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Principle Component Analysis Presented by:Sabbir AhmedRoll: FH-227

  2. Overview • Variance and Covariance • Eigenvector and Eigenvalue • Principle Component Analysis • Application of PCA in Image Processing

  3. Variance and Covariance(1/2) • The variance is a measure of how far a set of numbers is spread out. • The equation of variance is

  4. Variance and Covariance(2/2) • Covariance is a measure of how much two random variables change together. • The equation of variance is

  5. Covariance Matrix • Covariance Matrix is a n*n matrix where each element can be define as • A covariance matrix over 2 dimensional dataset is

  6. Eigenvector • The eigenvectors of a square matrix A are the non-zero vectors x such that, after being multiplied by the matrix, remain parallel to the original vector.

  7. Eigenvalue • For each Eigenvector, the corresponding Eigenvalue is the factor by which the eigenvector is scaled when multiplied by the matrix.

  8. Eigenvector and Eigenvalue (1/2) • The vector x is an eigenvector of the matrix A with eigenvalue λ (lambda) if the following equation holds:

  9. Eigenvector and Eigenvalue (2/2) • Calculating Eigenvalues • Calculating Eigenvector

  10. Principle Component Analysis (1/3) PCA (Principle Component Analysis) is defined as an orthogonal linear transformation that transforms the data to a new coordinate system such that the greatest variance comes to lie on the first coordinate, the second greatest variance on the second coordinate and so on.

  11. Principle Component Analysis (2/3)

  12. Principle Component Analysis (3/3)

  13. Principle Component • Each Coordinate in Principle Component Analysis is called Principle Component. Ci = bi1 (x1) + bi2 (x2) + … + bin(xn)where, Ci is the ith principle component, bij is the regression coefficient for observed variable j for the principle component i and xi are the variables/dimensions.

  14. Eigenvector and Principle Component • It turns out that the Eigenvectors of covariance matrix of the data set are the principle components of the data set. • Eigenvector with the highest eigenvalue is first principle component and with the 2nd highest eigenvalue is the second principle component and so on.

  15. Steps to find Principle Components • Adjust the dataset to zero mean dataset. • Find the Covariance Matrix M • Calculate the normalized Eigenvectors and Eigenvalues of M • Sort the Eigenvectors according to Eigenvalues from highest to lowest • Form the Feature vector F using the transpose of Eigenvectors. • Multiply the transposed dataset with F

  16. Example AdjustedDataSet = OriginalDataSet - Mean Adjusted Dataset Original Data

  17. Covariance Matrix

  18. Eigenvalues and Eigenvectors • The eigenvalues of matrix M are • Normalized Eigenvectors with corresponding eigenvales are

  19. Feature Vector • Sorted eigenvector • Feature vector

  20. Final Data (1/2) FinalData = F x AdjustedDataSetTransposed

  21. Final Data (2/2) FinalData = F x AdjustedDataSetTransposed

  22. Retrieving Original Data(1/2) FinalData = F x AdjustedDataSetTransposed AdjustedDataSetTransposed = F-1 x FinalData but, F-1=FT So, AdjustedDataSetTransposed =FT x FinalData and, OriginalDataSet = AdjustedDataSet + Mean

  23. Retrieving Original Data(2/2)

  24. Application of PCA in Image Processing • Pattern Recognition • Image Compression • Determination of Object Orientation and Rotation

  25. Question ?

  26. References • Principle Component Analysis in Wikipedia http://en.wikipedia.org/wiki/Principal_component_analysis • A tutorial on Principal Components Analysisby Lindsay I Smith http://www.sccg.sk/~haladova/principal_components.pdf • Principle Component Analysis in Image Processing by M. Mudrov´, A. Proch´zkahttp://dsp.vscht.cz/konference_matlab/matlab05/prispevky/mudrova/mudrova.pdf

More Related