invers from covariance of a matrix*matrix'
Mostrar comentarios más antiguos
given a is a matrix, is the matrix of covariance of (a*a') is always singular?
2 comentarios
the cyclist
el 2 de En. de 2012
Can you please clarify? Are you interested in the singularity of cov(a) for arbitrary a, or of cov(b), for b = (a*a')?
eri
el 3 de En. de 2012
Respuesta aceptada
Más respuestas (1)
the cyclist
el 2 de En. de 2012
a = [1 0; 0 1]
is an example of a matrix for which (a*a') is not singular.
Did you mean non-singular?
8 comentarios
Titus Edelhofer
el 2 de En. de 2012
But cov(a) is indeed singular ... The examples I tried so far have a singular covariance but I haven't found a way to prove it's always the case ...
Walter Roberson
el 2 de En. de 2012
We uses inverse covariance a lot in our work, and we do not find them to be singular provided that the number of rows is at least the (number of columns plus 1).
Titus Edelhofer
el 2 de En. de 2012
Interesting. I was wondering already what sense inverse covariances might have. I tried with quadratic a's only.
eri
el 3 de En. de 2012
Walter Roberson
el 3 de En. de 2012
a*a' is always square, and if my recollection is correct, cov() of a square matrix is singular.
Titus Edelhofer
el 3 de En. de 2012
@Eri: trusting Walters recollection is usually a good bet ;-)
Walter Roberson
el 3 de En. de 2012
Just don't ask me _why_ it is singular. I didn't figure out Why, I just made sure square matrices could not get to those routines.
Walter Roberson
el 3 de En. de 2012
Experimentally, if you have a matrix A which is M by N, then rank(cov(A)) is min(M-1,N), and thus would be singular for a square matrix.
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!