What PCA Throws Away

Dimensionality Reduction & EmbeddingsHard+30 XP+30

What PCA Throws Away

A dimensionality-reduction pipeline is fitted on this training set of 555 samples with 222 features:

Samplex1x_1x1​x2x_2x2​
A000555
B111111333
C101010101010
D171717111111
E121212212121

The pipeline runs the four standard steps:

  1. Centre the data: ci=xi−xˉc_i = x_i - \bar{x}ci​=xi​−xˉ.
  2. Build the scatter matrix S=∑i=15ci ci⊤S = \sum_{i=1}^{5} c_i\, c_i^{\top}S=∑i=15​ci​ci⊤​ (a plain sum of outer products, with no division).
  3. Take uuu, the unit eigenvector of SSS with the largest eigenvalue, as PC1.
  4. Compress each sample to the single number ti=u⊤cit_i = u^{\top} c_iti​=u⊤ci​.

Each sample is then reconstructed back into 222-D as x^i=xˉ+ti u\hat{x}_i = \bar{x} + t_i\, ux^i​=xˉ+ti​u.

What is the total squared reconstruction error over the whole training set?

E=∑i=15∥xi−x^i∥2E = \sum_{i=1}^{5} \left\| x_i - \hat{x}_i \right\|^{2}E=∑i=15​∥xi​−x^i​∥2

Compressing the Data

Toggle to project every point onto the principal component.

2 numbers per point (x, y)

Instead of storing two coordinates, we now store one position along the line. The important pattern remains.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.