Principal Component Analysis. Consider a collection of points.

21
Principal Component Analysis
  • date post

    22-Dec-2015
  • Category

    Documents

  • view

    217
  • download

    0

Transcript of Principal Component Analysis. Consider a collection of points.

Page 1: Principal Component Analysis. Consider a collection of points.

Principal Component Analysis

Page 2: Principal Component Analysis. Consider a collection of points.

Consider a collection of points

Page 3: Principal Component Analysis. Consider a collection of points.

Suppose you want to fit a line

Page 4: Principal Component Analysis. Consider a collection of points.

Consider variance ofdistribution on the line

Project onto the Line

Page 5: Principal Component Analysis. Consider a collection of points.

different variance

Different line . . .

Page 6: Principal Component Analysis. Consider a collection of points.

Maximum Variance

Page 7: Principal Component Analysis. Consider a collection of points.

Minimum Variance

Page 8: Principal Component Analysis. Consider a collection of points.

Given by eigenvectorsof covariance matrixof coordinatesof original points

Page 9: Principal Component Analysis. Consider a collection of points.

PCA notes…

• Input data set• Subtract the mean to get data set with 0-

mean• Compute the covariance matrix• Compute the eigenvalues and

eigenvectors of the covariance matrix• Choose components and form a feature

vector. Order by eigenvalues – highest to lowest

Page 10: Principal Component Analysis. Consider a collection of points.

PCA

• To compress, ignore components of lesser significance

• The feature vector F is a matrix is the matrix of ordered eigenvectors

• Derive the data set in the new coordinates:

• new_data = FT old_data

Page 11: Principal Component Analysis. Consider a collection of points.

Covariance

• C, of 2 random variables X and Y

),cov(),cov(),cov(

),cov(),cov(),cov(

),cov(),cov(),cov(

zzzyzx

zyyyyx

zxyxxx

C

1

))((),cov( 1

n

yyxxYX

n

iii

where

Page 12: Principal Component Analysis. Consider a collection of points.

Example

Page 13: Principal Component Analysis. Consider a collection of points.
Page 14: Principal Component Analysis. Consider a collection of points.
Page 15: Principal Component Analysis. Consider a collection of points.
Page 16: Principal Component Analysis. Consider a collection of points.

Choose bounding boxoriented this way

OOBB

Page 17: Principal Component Analysis. Consider a collection of points.

OOBB: Fitting

Covariance matrix ofpoint coordinates describesstatistical spread of cloud.

OBB is aligned with directions ofgreatest and least spread (which are guaranteed to be orthogonal).

Page 18: Principal Component Analysis. Consider a collection of points.

Good Box

OOBB

Page 19: Principal Component Analysis. Consider a collection of points.

Add points:worse Box

OOBB

Page 20: Principal Component Analysis. Consider a collection of points.

More points:terrible box

OOBB

Page 21: Principal Component Analysis. Consider a collection of points.

OOBB