39
On the equivalence between TLS and MLPCA with applications in chemometrics Mieke Schuermans Katholieke Universiteit Leuven, Dept. Electrical Engineering, Leuven, Belgium TLS workshop, Leuven, August 21-23, 2006

On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

On the equivalence between TLS and MLPCAwith applications in chemometrics

Mieke SchuermansKatholieke Universiteit Leuven,Dept. Electrical Engineering,

Leuven, Belgium

TLS workshop, Leuven, August 21-23, 2006

Page 2: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 3: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 4: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 5: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 6: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 7: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 8: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 9: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 10: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Motivation: mixture analysis

Example: near-infrared spectroscopic data

• 31 three-component mixtures containing toluene,chlorobenzene and heptane

• spectra obtained over the range 400-2500 nm

Page 11: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Motivation: mixture analysis

The spectra form a 31× 1050 noisy data matrix D:

D =

y

(1)1 y

(1)2 . . . y

(1)1050

y(2)1 y

(2)2 . . . y

(2)1050

...

y(31)1 y

(31)2 . . . y

(31)1050

? : approximation matrix D of rank 3.

Page 12: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 13: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Weighted low rank approximation

Given: data matrix D ∈ Rm×n and r < rank(D)

?: nearest approximation D ∈ Rm×n with rank(D) ≤ r

Problem formulation

minbD

rank bD≤r

‖ D − D ‖2W = minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

Page 14: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Weighted low rank approximation

Given: data matrix D ∈ Rm×n and r < rank(D)

?: nearest approximation D ∈ Rm×n with rank(D) ≤ r

Problem formulation

minbD

rank bD≤r

‖ D − D ‖2W = minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

Page 15: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Weighted low rank approximation

Given: data matrix D ∈ Rm×n and r < rank(D)

?: nearest approximation D ∈ Rm×n with rank(D) ≤ r

Problem formulation

minbD

rank bD≤r

‖ D − D ‖2W = minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

Page 16: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Weighted low rank approximation

Given: data matrix D ∈ Rm×n and r < rank(D)

?: nearest approximation D ∈ Rm×n with rank(D) ≤ r

Problem formulation

minbD

rank bD≤r

‖ D − D ‖2W = minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

Page 17: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Weighted low rank approximation

Given: data matrix D ∈ Rm×n and r < rank(D)

?: nearest approximation D ∈ Rm×n with rank(D) ≤ r

Problem formulation

minbD

rank bD≤r

‖ D − D ‖2W = minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

with ∆D = D− D the estimated measurement noise and W thecovariance matrix of vec(∆D).

Page 18: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

TLS

Link

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 19: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

TLS

Link

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

TLS: problem formulation

Classical TLS problem formulation

Given: overdetermined set of linear equations AX ≈ B

Find: mind∆A,d∆B,bX

‖ [∆A ∆B ] ‖2F s.t. (A− ∆A)X = B − ∆B

X is called a TLS solution and [∆A ∆B ] the correspondingTLS correction.

Page 20: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

TLS

Link

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

TLS: problem formulation

Classical TLS problem formulation

Given: overdetermined set of linear equations AX ≈ B

Find: minbD,bX

‖ D − D ‖2F subject to D

[X−I

]= 0

Page 21: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

TLS

Link

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

TLS: problem formulation

Classical TLS problem formulation

Given: overdetermined set of linear equations AX ≈ B

Find: minbD,bX

‖ D − D ‖2F subject to D

[X−I

]= 0

Remember WLRA

minbD

rank bD≤r

‖ D − D ‖2W = minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

⇒ W ≡ I⇒ measurement errors on D = [A B] are i.i.d.

Page 22: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

TLS

Link

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

TLS: extensions

• Element-wise weighted TLS: uncorrelated m.e.W = diag(σ2

ij)

DETLS = argmin∑i ,j

(aij − aij

σaij

)2

+∑i ,j

(bij − bij

σbij

)2

• Generalized TLS: correlated m.e. + homoscedasticW = blkdiag(Wf , . . . ,Wf )

DGTLS = argmin ‖ [A− A B − B] W−1/2f ‖22

• Row-wise weighted TLS: row-wise correlated m.e. +heteroscdastic W = blkdiag(W1, . . . ,Wm)

DRTLS = argminm∑

i=1

‖ [Ai − Ai Bi − Bi ] W−1/2i ‖22

Page 23: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 24: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

WLRA in chemometrics: PCA and MLPCA method

Given: D ∈ Rm×n of true pseudorank r

PCA

Compute: DPCA = arg minT ,P

‖ D − D ‖2F s.t. D = TP>

ML if errors in dij are i.i.d.Algorithm: truncated SVD

MLPCA

Compute:

DMLPCA = arg minT ,P

vec>(D−D)W−1vec(D−D) s.t. D = TP>

ML if true error covariance matrix W is knownAlgorithm: Alternating LS

Page 25: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 26: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Are (extended)TLS and (ML)PCA equivalent?

Equivalent methods to solve the same kernel problem:

minbD

vec>(D − D)W−1vec(D − D) s.t. rank(D) ≤ r

Set D = [A B] ∈ Rm×n, with true pseudorank r .

Since

B ∈ R(A) ⇔ ∃ X : A XTLS = B ⇔ rank(D) ≤ r

⇔ ∃T ,P : D = TP>,

we have:DTLS = DMLPCA! YES!

Page 27: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

MLPCA and TLS: same kernel problem

minbD

vec>(D − D)W−1vec(D − D) s.t. rank(D) ≤ r

Page 28: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

MLPCA and TLS: same kernel problem

minbD

vec>(D − D)W−1vec(D − D) s.t. rank(D) ≤ r

different rank constraint representations

C1: D = TP>, where T ∈ Rm×r and P ∈ Rn×r

C2: D

[X−I

]= 0, where X ∈ Rr×(n−r)

C3:[X> − I

]D = 0, where X ∈ Rr×(m−r).

different algorithms used

A1: alternating least squares

A2: unconstrained nonlinear optimization

Page 29: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 30: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Performance comparison

Remember kernel WLRA problem

minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

with ∆D = D − D the estimated measurement noiseand W the covariance matrix of vec(∆D). A wide variety ofcases exist, depending on the error structure.

Case uncorrelated measurementerrors⇒ W is diagonal:

Page 31: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Performance comparison

Remember kernel WLRA problem

minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

with ∆D = D − D the estimated measurement noiseand W the covariance matrix of vec(∆D). A wide variety ofcases exist, depending on the error structure.

Case only row/column correl.measurement errors⇒ W is block diagonal withequal blocks:

Page 32: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Performance comparison

Remember kernel WLRA problem

minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

with ∆D = D − D the estimated measurement noiseand W the covariance matrix of vec(∆D). A wide variety ofcases exist, depending on the error structure.

Case only row/column correl.measurement errors⇒ W is block diagonal withunequal blocks:

Page 33: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Performance comparison

Remember kernel WLRA problem

minbD

rank bD≤r

vec>(D − D) W−1 vec(D − D)

with ∆D = D − D the estimated measurement noiseand W the covariance matrix of vec(∆D). A wide variety ofcases exist, depending on the error structure.

Case correlated measurem. err.⇒ W is a full matrix:

Page 34: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Experiment 1: Homoscedastic errors

Mixture analysis:

• 31× 1050 data matrix D containing NIR spectra• 31 times 3-component mixtures of toluene, chlorobenzene

and heptane• standard deviation of the first sample mixture used• D of rank 3 ?

relative error time (s)

MLPCA 0.1583429241 37.6150GTLS 0.1583429241 4.1760

Page 35: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Experiment 2: Heteroscedastic errors, uncorrelated

• Simulated 10× n (n = 10 to 200) datamatrix D = D0 + ∆D from chemicalmeasurements

• 10 times 2-component mixtures

• D of rank 2 ?

Figure: CPU time of MLPCA and RTLS

Page 36: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Experiment 3: Heterosced. errors, row-wise corr.

• Simulated m × n (m = 6 to 13, n = 20−m) data matrixD = D0 + ∆D from chemical measurements

• row-wise correlation by using a moving average filter

• Monte-Carlo simulations over 100 runs

• D of rank r (r = 1 to 4) ?

Page 37: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Experiment 3: Heterosced. errors, row-wise corr.

Which algorithm to use?⇓

Depending on the size of data matrix D

Page 38: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Outline

1 Introduction

2 Weighted low rank approximation problem

3 Link with TLS

4 WLRA in chemometrics: PCA and MLPCA

5 MLPCA and TLS equivalent?

6 Performance comparison

7 Conclusion

Page 39: On the equivalence between TLS and MLPCA with applications ...homepages.vub.ac.be/~imarkovs/workshop/s3l5.pdf · On the equivalence between TLS and MLPCA with applications in chemometrics

Introduction

WLRA

Link with TLS

In chemometr:PCA/MLPCA

MLPCA/TLSequivalent?

Performancecomparison

Conclusion

Conclusion

• The equivalence of (extended)TLS and (ML)PCA:same kernel problem, different algorithms

• Performance comparison: D ∈ Rm×n with m < n