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
Open it from the menu
Click Regression in the menu bar; under Shrinkage choose Partial Least Squares Regression.
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.
Check the options
The options start at their defaults: Number of components, CV folds. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you want to predict or explain Response required | One numeric column. Continuous outcome variable (Y / dependent). |
|---|---|
| Columns that may explain it Predictors required | One numeric column. One or more numeric predictor columns (X); two or more for a genuine dimension reduction. |
| Number of components | Latent components to keep. 0 = choose automatically by cross-validated RMSE. Default: 0. |
| CV folds | Folds 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.
