Random number generator of 2 normal distributions partially correlated

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 3K views
statwannabe
Messages
1
Reaction score
0
I am trying to generate 2 normal random distributions (x1,...,xn) (y1,...,yn) that have a predefined degree of correlation between them. The constrain is that I am trying to have the same mean and stdev for both of them.
 
Physics news on Phys.org
You can generate two samples from a standard normal distribution and then apply a linear transformation.