Processing math: 100%

Tuesday, September 18, 2018

Tips for linear algebra

Recently, I was asked about some equation on Pattern Recognition and Machine learning by my friend. Hence, I will share some of them here :) In this article, we're gonna work on two following equations on page 80, ( Let Σ be variance-covariance matrix, u be eigen vector, λ be eigen value. )
Σ=Di=1λiuiuTi

Σ1=Di=11λiuiuTi

1. Prerequisite Knowledge

To understand the above two equations, there are two prerequisite knowledge.

  • Inverse matrix of diagonal matrix
    Suppose we have n x n diagonal matrix as following,
D=(λ10λ20λn)

         This matrix is *invertible*, if all of elemnts on the main diagonal is non-zero.
         Then, *Inverse matrix* of D has *reciprocals* of the elements in the main diagonal
         as below. D=(1λ101λ201λn)

  • Inverse matrix of orthogonal matrix
    If the matrix we wanna know about inverse matrix is orthogonal matrix, you can cut down on time to compute inverse matrix. Let's say matrix D is orthogonal matrix. Then inverse matrix of D would be transoposed D.

2. Derivation of equation

From the definition of eigen vector,

Σui=λiui

Therefore,

Σ(u1,u2,,uD)=(λ1u1,λ2u2,,λDuD)

Since (u1,u2,,uD) is orthogonal matrix , we can apply "Inverse matrix of othogonal matrix" we discussed above.

Σ=(λ1u1,λ2u2,,λDuD)(u1,u2,,uD)TΣ=(λ1u1,λ2u2,,λDuD)(uT1uT2uTD)

As a result we can get equation (2.48) Σ=Di=1λiuiuTi

Equation (1) can be expressed as below, Σ(u1,u2,,uD)=(u1,u2,,uD)(λ10λ20λn)

Multiply inverse matrix of co-variance matrix from left on both side,

Σ1(u1,u2,,uD)(λ10λ20λn)=(u1,u2,,uD)

Now is the time to apply inverse matrix of diagonal matrix we disscussed above,

Σ1=(u1,u2,,uD)(1λ101λ201λn)(uT1uT2uTD)

Finally, we can get (2.49) :), Σ1=Di=11λiuiuTi

No comments:

Post a Comment