[Math] Generating random values from non-normal and correlated distributions

probabilityprobability theorystatistics

I have a random variable X that is a mixture of a binomial and two normals (see what the probability density function would look like (first chart))
and I have another random variable Y of similar shape but with different values for each normally distributed side.

X and Y are also correlated, here's an example of data that could be plausible :

    X     Y
1.  0    -20
2. -5     2
3. -30    6
4.  7    -2
5.  7     2

As you can see, that was simply to represent that my random variables are either a small positive (often) or a large negative (rare) and have a certain covariance.

My problem is : I would like to be able to sample correlated and random values from these two distributions.

I could use Cholesky decomposition for generating correlated normally distributed random variables, but the random variables we are talking here are not normal but rather a mixture of a binomial and two normals.

Many thanks!

Best Answer

If you want to sample $(X,Y)$ you need to find out what is their distribution function. If you know the the conditional densities $p(X|Y)$ and $p(Y|X)$ you can use Gibbs sampling.