[Math] Constructing correlated random variables

normal distributionprobabilitystatistics

How do I construct two correlated random variables with correlation $\rho$ given two i.i.d normal r.v.? Do I just multiply the correlation matrix by a vector generated with two i.i.d normal variables?

Best Answer

If $X$ and $Y$ are independent random variables with the same variance, then

$$Z = \rho X + \sqrt{1-\rho^2} Y$$

is a random variable such that ${\rm Corr}(X,Z)=\rho$.

Additionally, if $X$ and $Y$ are standard normal, then $Z$ is also standard normal.