Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Random number generator of 2 normal distributions partially correlated

  1. Oct 28, 2008 #1
    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.
     
  2. jcsd
  3. Oct 29, 2008 #2
    You can generate two samples from a standard normal distribution and then apply a linear transformation.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Random number generator of 2 normal distributions partially correlated
Loading...