ArticleslgStudy

science

Partial least squares regression

Partial least squares regression is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Partial least squares regression rather than just read about it. In short: Partial least squares (PLS) regression is a statistical method that bears some relation to principal components regression and is a reduced rank regression; instead of finding hyperplanes of maximum variance between the response and independent variables, it finds a linear regression model by projecting the predicted variables and the observable variables to a new space of maximum covariance (see below). Because bot…

Partial least squares regression — main illustration
Partial least squares regression — illustration

Key takeaways

  • Partial least squares regression belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Partial least squares regression to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Partial least squares regression from memory before moving on to harder problems.

Reference excerpt

Partial least squares (PLS) regression is a statistical method that bears some relation to principal components regression and is a reduced rank regression; instead of finding hyperplanes of maximum variance between the response and independent variables, it finds a linear regression model by projecting the predicted variables and the observable variables to a new space of maximum covariance (see below). Because both the X and Y data are projected to new spaces, the PLS family of methods are known as bilinear factor models. Partial least squares discriminant analysis (PLS-DA) is a variant used when the Y is categorical. PLS is used to find the fundamental relations between two matrices (X and Y), i.e. a latent variable approach to modeling the covariance structures in these two spaces. A PLS model will try to find the multidimensional direction in the X space that explains the maximum multidimensional variance direction in the Y space. PLS regression is particularly suited when the matrix of predictors has more variables than observations, and when there is multicollinearity among X values. By contrast, standard regression will fail in these cases (unless it is regularized). Partial least squares was introduced by the Swedish statistician Herman O. A. Wold, who then developed it with his son, Svante Wold. An alternative term for PLS is projection to latent structures, but the term partial least squares is still dominant in many areas. Although the original applications were in the social sciences, PLS regression is today most widely used in chemometrics and related areas. It is also used in bioinformatics, sensometrics, neuroscience, and anthropology.

Core idea

We are given a sample of n paired observations (x→i,y→i),i∈1,…,n. In the first step j=1, the partial least squares regression searches for the normalized direction p→j, q→j that maximizes the covariance

maxp→j,q→jE⁡[(p→j⋅X→)⏟tj(q→j⋅Y→)⏟uj]. Note below, the algorithm is denoted in matrix notation.

Underlying model The general underlying model of multivariate PLS with ℓ components is

X=TPT+E Y=UQT+F where

X is an n×m matrix of predictors Y is an n×p matrix of responses T and U are n×ℓ matrices that are, respectively, projections of X (the X score, component or factor matrix) and projections of Y (the Y scores) P and Q are, respectively, m×ℓ and p×ℓ loading matrices and matrices E and F are the error terms, assumed to be independent and identically distributed random normal variables. The decompositions of X and Y are made so as to maximise the covariance between T and U. Note that this covariance is defined pair by pair: the covariance of column i of T (length n) with the column i of U (length n) is maximized. Additionally, the covariance of the column i of T with the column j of U (with i≠j) is zero. In PLSR, the loadings are thus chosen so that the scores form an orthogonal basis. This is a major difference with PCA where orthogonality is imposed onto loadings (and not the scores).

Algorithms A number of variants of PLS exist for estimating the factor and loading matrices T, U, P and Q. Most of them construct estimates of the linear regression between X and Y as Y=XB~+B~0. Some PLS algorithms are only appropriate for the case where Y is a column vector, while others deal with the general case of a matrix Y. Algorithms also differ on whether they estimate the factor matrix T as an orthogonal (that is, orthonormal) matrix or not. The final prediction will be the same for all these varieties of PLS, but the components will differ. PLS is composed of iteratively repeating the following steps k times (for k components):

finding the directions of maximal covariance in input and output space performing least squares regression on the input score deflating the input X and/or target Y

PLS1 PLS1 is a widely used algorithm appropriate for the vector Y case. It estimates T as an orthonormal matrix. (Caution: the t vectors in the code below may not be normalized appropriately; see talk.) In pseudocode it is expressed below (capital letters are matrices, lower case letters are vectors if they are superscripted and scalars if they are subscripted).

1 function PLS1(X, y, ℓ) 2 X(0)←X 3 w(0)←XTy/‖XTy‖, an initial estimate of w. 4 for k=0 to ℓ−1 5 t(k)←X(k)w(k) 6 tk←t(k)Tt(k) (note this is a scalar) 7 t(k)←t(k)/tk 8 p(k)←X(k)Tt(k) 9 qk←yTt(k) (note this is a scalar) 10 if qk=0 11 ℓ←k, break the for loop 12 if k<(ℓ−1) 13 X(k+1)←X(k)−tkt(k)p(k)T 14 w(k+1)←X(k+1)Ty 15 end for 16 define W to be the matrix with columns w(0),w(1),…,w(ℓ−1). Do the same to form the P matrix and q vector. 17 B←W(PTW)−1q 18 B0←q0−P(0)TB 19 return B,B0

This form of the algorithm does not require centering of the input X and Y, as this is performed implicitly by the algorithm. This algorithm features 'deflation' of the matrix X (subtraction of tkt(k)p(k)T), but deflation of the vector y is not performed, as it is not necessary (it can be proved that deflating y yields the same results as not deflating). The user-supplied variable l is the limit on the number of latent factors in the regression; if it equals the rank of the matrix X, the algorithm will yield the least squares regression estimates for B and B0

Extensions

OPLS In 2002 a new method was published called orthogonal projections to latent structures (OPLS). In OPLS, continuous variable data is separated into predictive and uncorrelated (orthogonal) information. This leads to improved diagnostics, as well as more easily interpreted visualization. However, these changes only improve the interpretability, not the predictivity, of the PLS models. Similarly, OPLS-DA (Discriminant Analysis) may be applied when working with discrete variables, as in classification and biomarker studies. The general underlying model of OPLS is

X=TPT+TY-orthPY-orthT+E Y=UQT+F or in O2-PLS

X=TPT+TY-orthPY-orthT+E Y=UQT+UX-orthQX-orthT+F

L-PLS Another extension of PLS regression, named L-PLS for its L-shaped matrices, connects 3 related data blocks to improve predictability. In brief, a new Z matrix, with the same number of columns as the X matrix, is added to the PLS regression analysis and may be suitable for including additional background information on the interdependence of the predictor variables.

… excerpt ends here. Continue reading the full article.

Illustrations

Partial least squares regression: Geometric interpretation of the deflation step in the input space
Geometric interpretation of the deflation step in the input space

Worked examples

Example 1 — a first encounter with Partial least squares regression

Start with the simplest possible case. Write down what Partial least squares regression claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Partial least squares regression before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Partial least squares regression ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Partial least squares regression

In research
Partial least squares regression appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Partial least squares regression in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Partial least squares regression is common in secondary-school and first-year university syllabi. It links to neighbouring topics Latent variable models, Least squares, so understanding it makes those chapters shorter.
In everyday life
Look for Partial least squares regression outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Partial least squares regression” →

How to study Partial least squares regression in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Partial least squares regression means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Partial least squares regression out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Partial least squares regression in simple terms?

Partial least squares (PLS) regression is a statistical method that bears some relation to principal components regression and is a reduced rank regression; instead of finding hyperplanes of maximum variance between the response and independent variables, it finds a linear regression model by proje…

Why does Partial least squares regression matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Partial least squares regression?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Partial least squares regression.

Tags

  • Latent variable models
  • Least squares

Keep exploring