27
Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

Embed Size (px)

Citation preview

Page 1: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

Quick guide to PLS

Use [Alt-Tab] to go to LatentiX (if running)

Press [Page Down] or [Enter] to continue

Press [ESC] to end the show

Page 2: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

2

Dioxin and fatty acid data

• Problem

To develop a PLS model that can predict the dioxin concentration (y) in ng/(kg fat) in fish meal samples from fatty acids profiles (X).

In total 64 samples were analysed and gas chromatography was used for the determination of 32 fatty acids (including an unidentified group). The results are given in % of all 32 fatty acids.

The very expensive and complex dioxin analyses were performed by a German laboratory.

• Data

The dimension of the data structure is 64 objects x 34 variables.

The first two variables are the species code (herring, sprat, blue whiting, sand eel etc. in total 15 species) and the dioxin content.

Variables 3 to 34 are the chromatographic variables.

Source: Rapid dioxin assessment in fish products by fatty acid pattern recognition, Marc Bassompierre, Lars Munck, Rasmus Bro and Søren Balling Engelsen, Analyst, 129, 553-558, 2004.

Page 3: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

3

Get the data

Page 4: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

4

The data in the WorkBench

Page 5: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

5

Select the fatty acid variables

Write 3:34 and press [ENTER] or selectthe fatty acid variables in the Variables listbox

Page 6: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

6

Define a variable set

Page 7: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

7

Give the set a name, e.g. X

Page 8: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

8

Now select dioxin in the listbox

The plot window always show the actual selection inthe Objects and Variables listboxes

Page 9: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

9

Plot dioxin as a function of the objects

Click on this icon

Page 10: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

10

Define a variable set containing only the dioxin variable

Page 11: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

11

Give the set a name, e.g. y

Page 12: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

12

Autoscale the X data

First select X in the Sets box

Then select autoscale

Page 13: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

13

The effect is shown instantly in the plot

Click Transform to see how the transformationaffects the data

Page 14: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

14

Make a PLS model

Select PLS in the dropdown menu

Page 15: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

15

Select the dependent variable(s)

First select y in the Sets box

Then select y (or click on Dioxin in the listbox)

Page 16: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

16

Autoscale y

Page 17: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

17

Choose cross validation

Select CV: Syst123 (Venetian blinds)

Page 18: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

18

Choose the number of segments

In this case we use eight segments

Page 19: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

19

Calculate the PLS model

Press Calculate

Then press OK

Page 20: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

20

Plot the error

Page 21: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

21

RMSEC & RMSECV

Select both using CTRL

Page 22: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

22

U vs T plot

Page 23: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

23

U vs T plot

Change the markers & labels

TIP: use the arrows keys to change the number of components

Page 24: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

24

Plot regression coefficicents

Page 25: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

25

Regression coefficients

Change the markers & labels

TIP: use the arrows keys to change the number of components

Page 26: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

26

Plot Actual vs Predicted

Page 27: Quick guide to PLS Use [Alt-Tab] to go to LatentiX (if running) Press [Page Down] or [Enter] to continue Press [ESC] to end the show

27

Actual vs Predicted for six components

Change the markers & labels

TIP: use the arrows keys to change the number of components

THE END