Re: Multivariate Normal Distribution



On Sep 22, 5:30 pm, "Jimmy Bozikis" <dimi...@xxxxxxxxxxx> wrote:
Hi to all of u!
I want to simulate a multivariate normal distribution using
matlab!
Could someone help me on how to do that?

I think I just answered this question on this newsgroup a
day or two ago.

At any rate, the answer is to use the Cholesky decomposition.

Suppose you want N samples of multivariate m-vectors
with m x m covariance matrix C.

X = randn(N, m);
R = chol(C);
Y = C*X;

The matrix Y is multivariate normal, zero mean, covariance C.

- Randy

.



Relevant Pages

  • Re: EOF explained variance
    ... I am a intermediate user of matlab and I need your help... ... I try to calculate the explained variance for eof analysis, ... matlab shown "out of memory". ... covariance matrix of size 8036 x 8036, ...
    (comp.soft-sys.matlab)
  • Re: Bayes Decision Rule
    ... Multivariate Normal Distribution. ... becomes singular (there isn't inverse Covariance matrix). ... are those of the Statistics Department or of Purdue University. ... Herman Rubin, Department of Statistics, Purdue University ...
    (sci.stat.edu)
  • Re: Mahalanobis distance for covariance matrix
    ... Mahalanobis distance in matlab terms, ... for the column random variable vector x with mu = Eand covariance matrix S. ...
    (comp.soft-sys.matlab)
  • mvnrnd and positive semidefinite covariance matrices
    ... Does anyone know why Matlab's mvnrnd function requires that the ... generate random numbers from a multivariate normal distribution whose ... covariance matrix is not positive semidefinite? ...
    (comp.soft-sys.matlab)
  • Re: mvnrnd and positive semidefinite covariance matrices
    ... > Does anyone know why Matlab's mvnrnd function requires that the ... > covariance matrix is not positive semidefinite? ... I am using a multivariate normal distribution. ...
    (comp.soft-sys.matlab)