Re: generating random matrix with negative eigenvalues



In article <ef3ccda.6@xxxxxxxxxxxxxxxxxxxxxxx>, "Cenny Taslim"
<usro@xxxxxxxxxxxx> wrote:
....
I just tried your method and it seemed to be what I wanted. Although
like you pointed out, I wasn't sure how random the resulting matrices
are. Would I occasionally get symmetric/asymmetric matrices. What
about matrices with negative eigenvalues that have imaginary parts
also? Should I produce them the same way?
....
Cenny
------------------------
With D a diagonal matrix and V a real unitary matrix (as generated by
orth(randn(n)) ), then A = V*D*V' will always yield a symmetric matrix,
and its eigenvalues will be the same as those of D, namely its diagonal
elements. This remains true even if some of the elements of D are
complex-valued. You can easily demonstrate this by taking the
non-conjugate transpose of both sides of the equation A = V*D*V' and
noting that the right side remains unchanged if V is real and D is a
diagonal matrix.

The worry I alluded to with respect to 'orth' pertains essentially to
concerns about how much dependence there is in orth's algorithm on the
ordering that is present in the columns or rows of its argument matrix.
It may conceivably act preferentially on the earlier columns or rows as
the algorithm proceeds. If you begin with a random ordering of the
eigenvalues in D (say, by using 'randperm'), I am reasonably sure that you
will obtain a random (uniform) sampling of A matrices possessing that
given set of eigenvalues. On the other hand, if, say, the D values were
to be sorted by size, then I am not so sure about the randomness of the
resulting A = V*D*V' for the given set.

Roger Stafford
.



Relevant Pages

  • Re: logarithm of matrix
    ... you will see that V contains the eigenvectors of A and D is a diagonal matrix with the eigenvalues along the main diagonal. ... Mty algorithm also has an expin it, which often outputs inf or - ...
    (comp.soft-sys.matlab)
  • Re: The cosine of a matrix
    ... Lancaster. ... I have a related question, though: is it true that for a matrix A we ... it sums the (diagonal matrix of) eigenvalues to 1 and leads ...
    (sci.math)
  • Re: The cosine of a matrix
    ... I have a related question, though: is it true that for a matrix A we ... it sums the (diagonal matrix of) eigenvalues to 1 and leads ... do not know whether it is also valid for defective matrices (I ... The original poster ignores the possibility where the two eigenvalues are ...
    (sci.math)
  • Re: logarithm of matrix
    ... I have an 8x8 symmetric matrix that I want the logarithm of. ... As it is explained there,U* is transpose of U and D is a diagonal matrix whose diagonal elements are the corresponding eigenvalues of A. ...
    (comp.soft-sys.matlab)