Partial Least Squares
Study guides: Exam MAS-I, Exam ACIA-CAPSTONE
A Partial Least Squares (PLS) fit is a supervised dimension reduction method: it builds M new features Z_1, \ldots, Z_M as linear combinations of the p predictors, using the response to choose them, and then fits a least squares linear regression of the response on the new features. Each new feature is
Z_m = \sum_{j=1}^{p} \phi_{jm} X_j
\phi_{1m}, \ldots, \phi_{pm}are the weights of the predictorsX_1, \ldots, X_pin themth feature.
After the p predictors are standardized, the weight of each predictor in the first feature is the slope of the simple linear regression of the response on that predictor:
\phi_{j1} = \frac{\sum_{i=1}^{n}(x_{ij} - \bar{x}_j)(y_i - \bar{y})}{\sum_{i=1}^{n}(x_{ij} - \bar{x}_j)^2}
x_{ij}is the value of predictorX_jfor observationi, and\bar{x}_jis its mean.y_iis the response of observationi, and\bar{y}is the mean response.
Each slope is proportional to the correlation between the response and the predictor, so Z_1 puts the most weight on the predictors most strongly related to the response. For the second feature, each predictor is regressed on Z_1, and Z_2 is computed from the residuals in the same way as Z_1 was computed from the data. This is repeated until there are M features. The response is then regressed on Z_1, \ldots, Z_M:
y_i = \theta_0 + \sum_{m=1}^{M} \theta_m z_{im} + \varepsilon_i
z_{im}is the value ofZ_mfor observationi.\theta_0, \ldots, \theta_Mare the regression coefficients, and\varepsilon_iis the error term.
Four policies have standardized predictors
x_1andx_2and claim costyas below. What is the first PLS feature, and what is the fitted value of policy 4 withM = 1?
Policy x_1x_2y1 -1-1.42 2 -10.26 3 1-0.24 4 11.48
- The mean response is 5, so
y - \bar{y}is-3,1,-1and3, and each predictor has mean 0 and\sum x_{ij}^2 = 4.- The weights are
\phi_{11} = 4/4 = 1.0and\phi_{21} = 8.8/4 = 2.2.- The values of
Z_1 = X_1 + 2.2X_2are-4.08,-0.56,0.56and4.08.- Regressing
yonz_1gives\hat\theta_1 = 23.36/33.92 = 0.6887and\hat\theta_0 = 5.- The fitted value of policy 4 is
5 + 0.6887(4.08) = 7.81.
Partial least squares and principal components regression
| Principal Components Regression | Partial least squares | |
|---|---|---|
| Directions chosen from | The predictors only | The predictors and the response |
| Type of method | Unsupervised directions | Supervised directions |
| First direction | Explains the predictors best | Explains the response better, the predictors less well |
In both methods each direction is a linear combination of all p predictors, so neither performs variable selection. The directions are derived features, and a small weight on one direction does not mean that a predictor is unimportant. The number of directions M is chosen by cross-validation. In practice PLS often performs no better than ridge regression or principal components regression, because using the response can reduce bias but can also increase variance.