Regression · Shrinkage

Partial Least Squares Regression

Regress a continuous outcome on supervised latent components that maximize predictor–outcome covariance, with VIP scores, X/Y variance captured per component, and a cross-validation curve.

In the menus Regression › Shrinkage › Partial Least Squares Regression

Also searched as pls partial least squares plsr

When to use it

Predict a continuous outcome from many correlated predictors when you want the components to be steered by the outcome: PLS beats PCR when the most predictive direction is not the highest-variance one.

When not to: You need classical p-values on individual coefficients (this cross-validated approach does not provide them), or you specifically want components that reflect only the predictors' own structure (unsupervised, like PCR) rather than being shaped by the outcome.

Step by step

  1. Open it from the menu

    Click Regression in the menu bar; under Shrinkage choose Partial Least Squares Regression.

  2. Fill in the form

    Choose the columns: What you want to predict or explain, Columns that may explain it. The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Number of components, CV folds. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Partial Least Squares Regression form
What you want to predict or explain Response requiredOne numeric column. Continuous outcome variable (Y / dependent).
Columns that may explain it Predictors requiredOne numeric column. One or more numeric predictor columns (X); two or more for a genuine dimension reduction.
Number of componentsLatent components to keep. 0 = choose automatically by cross-validated RMSE. Default: 0.
CV foldsFolds for the cross-validation curve (seeded, auto-reduced if there are too few rows). Default: 5.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

A worked example

Predicting penguin body mass from three correlated measurements (bill length, bill depth, flipper length) using PLS, component count chosen by 5-fold cross-validation (seed 42), and compared with PCR on the same data.

Result: The first PLS component alone captures 67.9% of the outcome variance; cross-validated RMSE is 457, 400 and 392 g for one, two and three components, against PCR's 475, 471 and 392 g. Cross-validation keeps all three components (so the card flags that the fit equals OLS, R-squared = 0.76). VIP: flipper length 1.28, bill length 0.88, bill depth 0.77.

At every component count below the full set, PLS predicts better than PCR: two PLS components already come within 8 g of the full model's error, while two PCR components barely improve on one. That is the supervised advantage the method is built for. With only three predictors, though, cross-validation still prefers the full model, so there is no compression to report; the VIP scores single out flipper length as the one predictor above 1.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • Which penguin measurements drive body mass, and how few supervised components are needed to predict it well?
  • Explain the partial least squares (PLS) regression in plain words.
  • What does cross-validation mean?

Last reviewed November 16, 2026.

Report an unclear step