[R] Mixture of Multivariate Gaussian Sample Data

Feng Zhang f0z6305 at labs.tamu.edu
Wed Dec 4 20:23:02 CET 2002


Hey, I am confused about how to generate the sample data from a mixture of
Multivariate Gaussian ditribution.
For example, there are 2 component Gaussian with prior
probability of 0.4 and 0.6,
the means and variances are
u1=[1 1]', Cov1=[1 0;0 1]
and
u2=[-1 -1]', Cov2=[1 0;0 1]
repectively.

So how can I generate a sample of 500 data from the above mixture
distribution?

Thanks.

Fred




More information about the R-help mailing list