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

  1. Finding eigenvalues: We solve the characteristic equation to find values of (eigenvalues).
  2. Finding eigenvectors: For each eigenvalue , we solve to find the corresponding eigenvector .
  3. Building matrices:
  • is a diagonal matrix with eigenvalues on the diagonal
  • is a matrix with eigenvectors as columns