2.3 Why Minimizing Orthogonal Error Is Identical to Maximizing Projected Spread

Why is the equivalence between minimizing reconstruction error and maximizing projected variance considered one of the most profound insights in applied mathematics? Because it bridges two completely different philosophies of data analysis: lossy compression (how accurately can we reconstruct our inputs?) and information theory (how well can we distinguish different observations from one another along a low-dimensional summary?).

In this Article

1. From Point-Wise Pythagoras to Dataset-Wide Optimization

In Microlearning 2.2, we proved that for every individual centered data point xi\mathbf{x}_i and any unit vector u\mathbf{u}:

ei2(u)=∥xi−(uTxi)u∥2=∥xi∥2−(uTxi)2e_i^2(\mathbf{u}) = \|\mathbf{x}_i - (\mathbf{u}^T\mathbf{x}_i)\mathbf{u}\|^2 = \|\mathbf{x}_i\|^2 - (\mathbf{u}^T\mathbf{x}_i)^2

Summing over all i=1,…,ni = 1, \dots, n and dividing by nn gives the dataset-level objective function:

1n∑i=1nei2(u)⏟MSE(u)=1n∑i=1n∥xi∥2⏟Etotal (Constant)−1n∑i=1n(uTxi)2⏟V(u) (Projected Variance)\underbrace{\frac{1}{n}\sum_{i=1}^n e_i^2(\mathbf{u})}_{\text{MSE}(\mathbf{u})} = \underbrace{\frac{1}{n}\sum_{i=1}^n \|\mathbf{x}_i\|^2}_{E_{\text{total}} \text{ (Constant)}} - \underbrace{\frac{1}{n}\sum_{i=1}^n (\mathbf{u}^T\mathbf{x}_i)^2}_{V(\mathbf{u}) \text{ (Projected Variance)}}

In optimization theory, minimizing Constant−V(u)\text{Constant} - V(\mathbf{u}) over u\mathbf{u} has the exact same set of optimal solutions u∗\mathbf{u}^* as maximizing V(u)V(\mathbf{u}):

arg⁡min⁡∥u∥=1 MSE(u)=arg⁡max⁡∥u∥=1 V(u)\underset{\|\mathbf{u}\|=1}{\arg\min} \, \text{MSE}(\mathbf{u}) = \underset{\|\mathbf{u}\|=1}{\arg\max} \, V(\mathbf{u})

2. Why Maximizing Variance Preserves Pairwise Distinguishability

There is an even deeper geometric way to view this duality: what happens to the distance between any two shadows x^i\hat{\mathbf{x}}_i and x^k\hat{\mathbf{x}}_k on the line? By the Pythagorean theorem applied to the pairwise difference vector xi−xk\mathbf{x}_i - \mathbf{x}_k:

∥xi−xk∥2⏟True 2D Distance2=(zi−zk)2⏟1D Shadow Distance2+∥ri−rk∥2⏟Residual Difference2\underbrace{\|\mathbf{x}_i - \mathbf{x}_k\|^2}_{\text{True 2D Distance}^2} = \underbrace{(z_i - z_k)^2}_{\text{1D Shadow Distance}^2} + \underbrace{\|\mathbf{r}_i - \mathbf{r}_k\|^2}_{\text{Residual Difference}^2}

Because ∥ri−rk∥2≥0\|\mathbf{r}_i - \mathbf{r}_k\|^2 \ge 0, projecting onto a line can only shrink pairwise distances: (zi−zk)2≤∥xi−xk∥2(z_i - z_k)^2 \le \|\mathbf{x}_i - \mathbf{x}_k\|^2. If you pick a bad axis, distinct data points collapse on top of each other's shadows! Maximizing the variance V(u)=12n2∑i=1n∑k=1n(zi−zk)2V(\mathbf{u}) = \frac{1}{2n^2}\sum_{i=1}^n \sum_{k=1}^n (z_i - z_k)^2 prevents shadow collisions by keeping the projected shadows as far apart—and as faithful to their true 2D distances—as possible.

   BAD AXIS (Low Variance / High Error):         GOOD AXIS (Max Variance / Min Error):
   Shadows collide! Points become indistinguishable.  Shadows stay spread out and distinct!

          * x_1                                                    * x_3
          |                                                  * x_2  \
          |    * x_2                                   * x_1  \      (o)
          |    |    * x_3                               \     (o)    /
          v    v    v                                   (o)   /     /
   ------(o)--(o)--(o)------> u_bad                     /    /     /  <-- u_optimal
      (Crushed together!)                            (Well-separated shadows!)

3. The Signal-to-Noise Interpretation of Principal Axes

When Is High Variance Synonymous with Signal? If your measurement noise is isotropic (equally small in all directions with variance σnoise2\sigma_{\text{noise}}^2), while the true underlying physical phenomenon varies strongly along a latent direction u∗\mathbf{u}^*, then the direction of maximum variance automatically maximizes the Signal-to-Noise Ratio (SNR).

4. Worked Numerical Trade-Off Calculation

Suppose a centered 5D dataset has total scatter Etotal=50.0E_{\text{total}} = 50.0. We test three candidate unit vectors:

Candidate Unit VectorMeasured Shadow Variance V(u)V(\mathbf{u})Implied Reconstruction Error MSE(u)=50−V(u)\text{MSE}(\mathbf{u}) = 50 - V(\mathbf{u})Percentage of Total Information Retained
Direction uA\mathbf{u}_A12.512.537.537.525%25\%
Direction uB\mathbf{u}_B35.035.015.015.070%70\%
Optimal PC1 u∗\mathbf{u}^*42.542.57.57.585%85\%

5. Active Recall Check and Key Takeaways

Quick Check: Test Your Understanding

Question: Why can the 1D shadow distance ∣zi−zk∣|z_i - z_k| between two observations never exceed their true Euclidean distance ∥xi−xk∥\|\mathbf{x}_i - \mathbf{x}_k\|?

Answer: By the Cauchy-Schwarz inequality (or the Pythagorean identity on xi−xk\mathbf{x}_i - \mathbf{x}_k), ∣zi−zk∣=∣uT(xi−xk)∣≤∥u∥ ∥xi−xk∥=∥xi−xk∥|z_i - z_k| = |\mathbf{u}^T(\mathbf{x}_i - \mathbf{x}_k)| \le \|\mathbf{u}\| \, \|\mathbf{x}_i - \mathbf{x}_k\| = \|\mathbf{x}_i - \mathbf{x}_k\| since ∥u∥=1\|\mathbf{u}\| = 1. Maximizing variance chooses u\mathbf{u} to make ∣zi−zk∣2|z_i - z_k|^2 as close to the upper bound ∥xi−xk∥2\|\mathbf{x}_i - \mathbf{x}_k\|^2 as possible on average.

  • Equivalence of Objectives: arg⁡min⁡MSE(u)=arg⁡max⁡V(u)\arg\min \text{MSE}(\mathbf{u}) = \arg\max V(\mathbf{u}) because their sum is fixed at EtotalE_{\text{total}}.
  • Pairwise Distance Preservation: Maximizing variance maximizes the average squared distance between projected points, preventing distinct observations from collapsing onto the same shadow.
  • Canonical References: See Shlens' PCA Tutorial on Signal-to-Noise Ratio and Variance.

Take a Quiz Based on This Article

Test your understanding with AI-generated questions tailored to this content

Adaptive Learning with SynLearn

Explore this article through guided practice that adapts to your answers

✓Step-by-step concepts & lessons
✓Active recall & adaptive feedback
✓Personalized spaced repetition
variance-maximization
error-minimization
duality
pca
data-compression
statistics