[R] Mixture of Multivariate Gaussian Sample Data

Feng Zhang
2002-12-04T20:23:02Z

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