Docsity

Assignment 4 with Solutions - Pattern Recognition | EE 639, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
EE 639: Multimedia Information System
Pattern Recognition
Homework 4 Solution
1. paper review: no definitive answer.
2. If Σ is a symmetric positive definite matrix, then Σ can be factored into LLT, where Lis a lower-
triangular matrix with positive diagonal elements. Such a factorization is called the Cholesky decom-
position.
We can sampld z∼N(0,1) and choose x=µ+Lz to get x∼N(µ, Σ), since
E[x] = E[µ+Lz] = E[µ] + L·E[z] = µ+L·0 = µ(1)
and
Σx=E[Lz(Lz)T] = E[Lz zTLT] = L·E[zzT]·LT=LLT= Σ (2)
3. Recall from multivariate calculus, if x∈ <d,A∈ <d×d, and f(x,A) is a real-value function, we have
∂
∂x f=µ∂f
∂x1
∂f
∂x2
. . . ∂f
∂xd=µ∂f
∂xiT
i
∂
∂A f=µ∂f
∂aij ij
(a)
∂
∂x xTy=∂
∂x Ãd
X
i=1
xiyi!
= (y1y2. . . yd)T=yT
(b)
∂
∂x xTAx =
∂
∂xi
xT
Pja1jxj
.
.
.
Pjadjxj
T
i
=
∂
∂xiX
k
xkX
j
akj xj
T
i
=
∂
∂xiX
kX
j
xkakj xj
T
i
=
∂
∂xi
X
j
(aij +aji)xixj+ terms with no xi
T
i
1
pf2

Partial preview of the text

Download Assignment 4 with Solutions - Pattern Recognition | EE 639 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

EE 639: Multimedia Information System

Pattern Recognition

Homework 4 Solution

  1. paper review: no definitive answer.
  2. If Σ is a symmetric positive definite matrix, then Σ can be factored into LLT^ , where L is a lower- triangular matrix with positive diagonal elements. Such a factorization is called the Cholesky decom- position. We can sampld z ∼ N (0, 1) and choose x = μ + Lz to get x ∼ N (μ, Σ), since

E[x] = E[μ + Lz] = E[μ] + L · E[z] = μ + L · 0 = μ (1)

and Σx = E[Lz(Lz)T^ ] = E[LzzT^ LT^ ] = L · E[zzT^ ] · LT^ = LLT^ = Σ (2)

  1. Recall from multivariate calculus, if x ∈ 2 Pattern Recognition

j

(aij + aji)xj

T

i = xT^ A + xT^ AT

(c) Recall trace(AB) =

i

j aij^ bji. We first prove trace(ABC) = trace(CAB) = trace(BCA).

trace(ABC) =

i

j

aij (BC)ji

i

j

aij

k

bjkcki

i

j

k

aij bjkcki

j

k

i

bjkckiaij = trace(BCA)

k

i

j

ckiaij bjk = trace(CAB)

Since xT^ Ax is a real number, xT^ Ax = trace(xT^ Ax) = trace(xxT^ A):

∂ ∂A

xT^ Ax =

[

∂aij

trace(xxT^ a)

]

ij

=

∂aij

i

j

(xxT^ )ij aji

ij

[

(xxT^ )ji

]

ij = (xxT^ )T = xxT

(d)

∂ ∂A

log |A| =

[

∂aij

log |A|

]

ij = 1 |A|

[

∂aij

|A|

]

ij

= 1 |A|

[

∂aij

k

(−1)i+kaikMik

]

ij where Mik is the determinant of the submatrix of A with row i and column k deleted. =

|A|

[

(−1)i+j^ Mij

]

ij = A−^1