Partial Least Squares Regression (PLS)

Machine Learning
Introduced by
Herman Wold; popularized by Svante Wold in chemometrics
Year
1975
Type
Supervised latent-variable regression

What does it do?

Partial least squares (PLS) regression predicts a response from many, often highly collinear predictors by projecting them onto a small number of latent components.

Unlike principal components regression, which picks components by predictor variance alone, PLS chooses them to maximize their covariance with the response, which makes the reduction supervised. It is widely used in chemometrics and spectroscopy, where predictors can outnumber observations.

The intuition behind the method

When predictors are numerous and correlated — think hundreds of overlapping spectral channels — ordinary regression is unstable or impossible. One fix, PCR, compresses the predictors into a few directions of greatest variance and regresses on those; but the directions that vary most need not be the ones that predict the response. PLS fixes this by building components that are simultaneously informative about the predictors and correlated with the target. It greedily extracts the direction in predictor space most aligned with the response, removes that information, and repeats. A handful of such supervised components usually captures the predictive signal compactly.

History

Partial least squares is attributed to Herman Wold. It was later adapted for regression and popularized in chemometrics by Svante Wold and colleagues, where wide, collinear spectral data made it especially useful. The Geladi and Kowalski (1986) tutorial and the Wold, Sjöström and Eriksson (2001) overview are standard references in this field. The approach has since been applied in genomics and, under the name PLS-SEM, in social-science path modelling, which is a distinct technique with its own estimation and validity criteria.

When to use it

Use PLS regression when you have many predictors that are strongly correlated, or more predictors than observations (p ≫ n), as in spectroscopy, chemometrics, genomics, and sensor data, and you want a stable predictive model built from a few latent components. Because its components are tuned to the response, it can often reach a given predictive accuracy with fewer components than PCR. It handles multivariate responses directly (PLS2). It assumes an approximately linear relationship, and because the criterion is covariance-based, predictor scaling matters, so standardization is standard practice. When predictors are few and well-conditioned, ordinary or penalized regression (ridge or lasso) is simpler and often preferable; PLS is most useful in the wide, collinear regime.

Limitations and considerations

  • Assumes an approximately linear relationship between predictors and response.
  • Sensitive to scaling: since the first weight vector is proportional to Xᵀy, predictors measured on large scales dominate unless they are standardized.
  • The number of components must be tuned, typically by cross-validation.
  • Latent components are harder to interpret than the original variables, and classical least-squares standard errors do not apply directly to the coefficients, so inference usually relies on approximations or resampling.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Components are built from the predictors and do not require inverting XᵀX, so the model remains computable when predictors are collinear or outnumber observations.
  • Because components are chosen using the response, they can capture predictive signal in fewer dimensions than PCR often needs.
  • Yields scores and loadings for the latent components, showing how the original predictors contribute to each direction.
  • Extends directly to multiple response variables (PLS2).

Applications

  • Calibration of spectroscopic instruments (NIR, Raman) to predict chemical concentrations.
  • Chemometric modelling of high-dimensional, collinear measurements.
  • Genomic and metabolomic prediction where features greatly outnumber samples.
  • Process-analytical and sensor modelling in manufacturing.
  • Social-science path modelling through partial least squares structural equation modelling (PLS-SEM). PLS-SEM is a distinct technique that shares the name but not the predictive regression described on this page; it has its own estimation, validity criteria and inference, and its path estimates should not be read as causal evidence on the basis of this page.

How it works

How it works

1

Each PLS component is a linear combination of the predictors, Xw, where the weight vector w has unit length. The criterion is the squared covariance between that component and the response. Covariance equals the spread of the component times its correlation with y, scaled by the spread of y, so it is large only when a direction both varies and tracks the response. This is what makes the reduction supervised.

Formula
\max_{w} \operatorname{Cov}(Xw,\ y)^2 \quad \text{s.t. } \|w\|=1
2

The optimal weight vector is proportional to the cross-covariance Xᵀy, which gives the first latent score t = Xw. Intuitively, the component points toward the predictors most associated with the response.

Formula
t = Xw,\quad w \propto X^\top y
3

After a component is extracted, its contribution is removed from both X and y, and the next component is extracted from the deflated matrices. The resulting scores are orthogonal across components. Repeating this yields m latent components ordered by their predictive relevance.

Formula
X \leftarrow X - t\,p^\top,\quad y \leftarrow y - t\,q,\ \text{repeat for } m \text{ components}
4

Regress the response on the retained components and express the result back in terms of the original predictors to obtain PLS regression coefficients. The number of components m is the key tuning parameter, selected by cross-validation to balance bias and variance; too few components underfit, and too many reintroduce noise.

Formula
\hat y = X\hat\beta_{\text{PLS}},\ \text{with } m \text{ chosen by cross-validation}

Common pitfalls

  • Failing to standardize predictors, which lets high-variance variables dominate the covariance criterion.
  • Retaining too many components and fitting noise, or too few and underfitting.
  • Confusing PLS with PCR: PLS uses the response when forming components, while PCR does not.
  • Selecting the number of components on the full dataset and then reporting the same data's prediction error, which overstates performance; the component choice should be validated out of sample.
  • Reading a large weight or loading as evidence that a predictor causes the response; PLS components are predictive directions in correlated data.

Frequently asked questions

How is PLS different from principal components regression?

Both reduce many predictors to a few components before regressing, but PCR chooses components by predictor variance alone (unsupervised), whereas PLS chooses them to maximize covariance with the response (supervised). Because PLS uses the target when forming components, it often needs fewer of them to reach the same predictive accuracy.

How many components should I keep?

The number of latent components is chosen by cross-validation, usually by selecting the number that minimizes cross-validated prediction error. If a simpler model is preferred, a smaller number giving prediction error close to the minimum can be chosen. Too few components underfit; too many begin to fit noise.

Why must I standardize the predictors?

PLS components maximize covariance, which depends on the scale of the predictors. Without standardization, variables measured on large scales dominate the components regardless of their relevance. Centring and scaling the predictors (and often the response) puts them on equal footing.

Related methods

Sources

  1. Wold, S., Sjöström, M., & Eriksson, L. (2001). PLS-regression: a basic tool of chemometrics. Chemometrics and Intelligent Laboratory Systems, 58(2), 109–130.

    Open DOI reference
  2. Geladi, P., & Kowalski, B. R. (1986). Partial least-squares regression: a tutorial. Analytica Chimica Acta, 185, 1–17.

    Open DOI reference