Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

covariance or correlation matrix in mvnrnd

82 views
Skip to first unread message

Kay Zhang

unread,
Apr 20, 2010, 6:44:04 AM4/20/10
to
I tried to use mvnrnd to create a random component distributed on N(0,sigma^2). But I am not sure the "sigma" in mvnrnd is covariance matrix or correlation matrix? According to the definition in Matlab help, it is covariance matrix, but actually I doubt it is correlation matrix.

Peter Perkins

unread,
Apr 20, 2010, 8:50:26 AM4/20/10
to

MVNRND accepts a covariance matrix. Every correlation matrix is also a covariance matrix, for variables that all have variance 1. If you pass MVNRND a correlation matrix, then you'll be generating values fromjust such a standardized distribution.

0 new messages