The random variables X and Y are independent and identically distributed with normal mixture distribution. The components of the mixture have N(0,1) and N(3,1) distributions with mixing probabilities p1 and p2=1-p1 respectively. Generate a bivariate random sample from the joint distribution of (X,Y) and construct a contour plot. Adjust the levels of the contours so that the contours of the second mode are visible.
请问这道题应该怎么做?