Learn Before
Concept

Steps Involved in the PCA

This article uses a small dataset to show how PCA works steps by steps, it has the same result with sklearn library.

  • Step 1: Standardize the dataset.
  • Step 2: Calculate the covariance matrix for the features in the dataset.
  • Step 3: Calculate the eigenvalues and eigenvectors for the covariance matrix.
  • Step 4: Sort eigenvalues and their corresponding eigenvectors.
  • Step 5: Pick k eigenvalues and form a matrix of eigenvectors.
  • Step 6: Transform the original matrix.

0

4

Updated 2021-02-10

Tags

Data Science