Regression line
Vertical residuals are appropriate when x is treated as known and y is predicted.
Two notions of the best line for denoising
PCA and linear regression can both replace a noisy cloud with a line, but they optimize different distances and answer different questions.
The essential idea: regression minimizes vertical error; PCA minimizes orthogonal reconstruction error.
Vertical residuals are appropriate when x is treated as known and y is predicted.
Orthogonal residuals are appropriate when all coordinates are noisy measurements.
Increase noise in both coordinates. See when the regression and PCA directions visibly separate.
Choose regression for directional prediction and PCA for symmetric geometric denoising.