Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating a random variable with known correlation to an existing one

Status
Not open for further replies.

mjodoin

Civil/Environmental
Jun 2, 2004
2
I have a vector of real-values X (computed from real data)and would like to generate a second random vector (X') that is correlated with this one to a specified extent.

For example given X, generate X' so that corr(XX')=0.60.

I thought this was a very simple problem and have tried to think though some basic regression and cholesky type solutions without success thus far. The few solutions seem to lack any elegance at all - randomly add/subtract error to each element and modify until correlation is about appropriate to account for different variances in the X. Any ideas? This seems like a 5 minute exercise that has run amuck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor