Singular Value Decomposition (@svd)
Posted: Fri Jun 14, 2013 2:28 am
Hi,
For a given (N x M) matrix A, the theorem on singular value decomposition states that:
A = U * S * V
where the columns of U are the eigenvectors of AA' and the columns of V are eigenvectors of A'A. And S is a diagonal matrix containing the square roots of non-negative eigenvalues from U in descending order.
In Eviews, the command @svd(A) returns the U matrix for A. I was wondering if there is a way to directly get the diagonal matrix S. Can anyone help?
Thanks.
For a given (N x M) matrix A, the theorem on singular value decomposition states that:
A = U * S * V
where the columns of U are the eigenvectors of AA' and the columns of V are eigenvectors of A'A. And S is a diagonal matrix containing the square roots of non-negative eigenvalues from U in descending order.
In Eviews, the command @svd(A) returns the U matrix for A. I was wondering if there is a way to directly get the diagonal matrix S. Can anyone help?
Thanks.