Describe how partial least squares (PLS) builds its first component, and how it differs from principal components regression (PCR). Take centred with , for samples: what are the first PLS direction and the one-component fit coefficients, and how do they compare with OLS?
Supervised learning, Partial least squares
Level L4 Advanced. Length Long. Nature Th+Mat Both.
What's being asked
Whether you know PLS chooses directions using (maximising covariance) while PCR uses only the variance of .
Key idea
The first PLS direction maximises over unit , giving . PCR instead takes the directions of largest variance of , ignoring .
Steps
- Standardise the columns and centre . PLS seeks with that maximises . By Cauchy–Schwarz the optimum is .
- Regress on to get . Then make the remaining columns of orthogonal to (deflate) and repeat for the next component.
- PCR picks the top eigenvectors of without looking at , so a high-variance direction that is unrelated to can be kept and a low-variance but predictive direction dropped. PLS trades some variance for relevance.
- Numbers: has norm 5, so .
- , and . So .
- One-component fit: .
- OLS: . They are identical because : all directions have equal variance, so a single PLS step already captures all the relevant signal (PCR cannot choose a direction here, since the eigenvalues tie).
Common mistakes
- Saying PLS ignores . That is PCR.
- Forgetting to centre and standardise first. PLS directions depend on the scales.
- Assuming more components always helps. The number of components is a tuning parameter set by cross-validation, and with components PLS equals OLS.
How long your answer should be
Half a page to one page; 6 minutes.
Read this
Previous in Supervised learning: A 1-D dataset has with and with , and the model is (no intercept). How do you show that the maximum-likelihood estimate does not exist, what happens to the Hessian, and how does an L2 penalty fix it?
Next in Supervised learning: How is the optimal leaf weight and the split gain derived in XGBoost's second-order objective? How do you apply it to 6 samples with logistic loss, current prediction (so ), labels in the left candidate leaf and in the right, , ?