Question: Problem 4 ( programming ) This example shows how SVD can be used to find dominant modes. Given N vectors, a 1 , dots, a

Problem 4(programming)
This example shows how SVD can be used to find dominant modes. Given N vectors, a1,dots,aN,
we form a matrix A=[a1,dots,aN], which is MN matrix. It is known that the dominant modes
can be obtained via SVD (eigenvectors corresponding to largest singular values of matrix A,
{:i2), denote them by v1,dots,vl. We will show what that means for the most dominant v1. It can
be shown that
minvj=1N||aj-(:aj,v:)v||2
is minimal for v=v1, assuming ||v||=1.
(a) Take 20 random vectors with dimension 80(you can simply use A=rand(80,20)) and do
SVD and identify the most dominant eigenvectors.
(b) Find the error for the projection defined as
Err=j=1N||aj-(:aj,v1:)v1||2.
Compute relative error
E=Errj=1N||aj||2.
(c) Take an arbitrary random vector v, normalize it, and find the corresponding projection
j=1N||aj-(:aj,v:)v||2
Problem 4 ( programming ) This example shows how

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!