Generalised Eigenvalue Problem

Econometrics questions and discussions

Generalised Eigenvalue Problem

Postby atrad » Mon May 21, 2007 1:20 pm

Hi.

I'd like to solve a generalised eigenvalue problem and get both eigenvalues and eigenvectors. Is it possible to do this in a straightforward manner in RATS6.1 or do I have to upgrade to RATS6.35 (I understand RATS 6.35 has a general option in the eigen instruction).

Many thanks
atrad
 
Posts: 5
Joined: Mon Apr 30, 2007 1:45 pm

Postby TomDoan » Mon May 21, 2007 3:20 pm

If you're trying to solve |A-lambda B|=0 for lambda (where A and B are symmetric), you can solve transform this to a standard eigenvalue problem by taking any matrix S (such as the Choleski decomposition) that satisfies SS'=B and finding the eigenvalues of S**-1 x A x S**-1'.

eigen inv(s)*a*tr(inv(s)) eigval eigvect
compute evect=tr(inv(s))*eigvect
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Postby atrad » Tue May 22, 2007 1:00 am

Thanks for your quick reply - I have also come across this solution method. Thanks also for the code you put out on PCA in the frequency domain.
atrad
 
Posts: 5
Joined: Mon Apr 30, 2007 1:45 pm


Return to General Econometrics

Who is online

Users browsing this forum: No registered users and 1 guest