Principal Component Analysis - Dimensionality Reduction
Asked Answered
S

1

5

When we talk about PCA we say that we use it to reduce the dimensionality of the data. I have 2-d data, and using PCA reduced the dimensionality to 1-d.

Now,

The first component will be in such a way that it captures the maximum variance. What does it mean that the 1st component has max. variance?

Also, if we take 3-d data and reduce its dimensionality to 2-d then the 1st component will be built with max variance along the x-axis or y-axis?

Selfaddressed answered 15/6, 2022 at 11:50 Comment(0)
T
6

PCA works by first centering the data at the origin (subtracting the mean from each data point), and then rotating it to be in line with the axes (diagonalizing the covariance matrix into a “variance” matrix). The components are then sorted so that the diagonal of the variance matrix is in descending order, which translates to the first component having the largest variance, the second having the next largest variance, etc. Later, you squish your original data by zero-ing out less important components (projecting onto principal components), and then undoing the aforementioned transformations.

To answer your questions:

  1. The first component having the max variance means that its corresponding entry in the variance matrix is the largest one.

  2. I suppose it depends on what you call your axes.

Source: Probability and Statistics for Computer Science by David Forsyth.

Tenuous answered 16/6, 2022 at 7:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.