# Thread: How to generate two random vectors correlated to three existing vectors

1. ## How to generate two random vectors correlated to three existing vectors

Let's have three vectors that are given and cannot change (M, N and O). I have to generate two random vectors X and Y. The correlation that has to be kept is given by the correlation matrix C. The correlation matrix show the correlation between all the vectors (M, N, O , X and Y).

Does anyone know, how to achive this in general? Some kind of SAS code would help as well.

2. ## Re: How to generate two random vectors correlated to three existing vectors

http://en.wikipedia.org/wiki/Partial_correlation

But in general you will need to find the conditional joint pdf for the generation.

3. ## Re: How to generate two random vectors correlated to three existing vectors

Actually no. Partial correlation is a theory for completely different things. It does not help generating new random variables.

4. ## Re: How to generate two random vectors correlated to three existing vectors

So as said before do you know / can you specify the conditional joint pdf

And can it be completely characterized by a given correlation matrix (i.e. is it the only parameter of the distribution)?

 Tweet