For a Covariance matrix , we want to find:
Where:
- is a diagonal matrix containing the eigenvalues
- is a matrix whose columns are the corresponding eigenvectors
Steps
- Finding eigenvalues: We solve the characteristic equation to find values of (eigenvalues).
- Finding eigenvectors: For each eigenvalue , we solve to find the corresponding eigenvector .
- Building matrices:
- is a diagonal matrix with eigenvalues on the diagonal
- is a matrix with eigenvectors as columns