Re: Generating a Matrix of Random values with a specified Correlation



On Sep 25, 9:13 am, willgarri...@xxxxxxxxx wrote:
Hello,

I'm trying to generate two columns of random values where each value
is between 1 and 5 where the matrix as a whole has a specified
correlation.

Ideally this is what I'm looking for:

Example algorithm:

1. Generate 20 random values between 1 and 5 in array A.
2. Generate 20 random values between 1 and 5 in array B.
3. Create a 3rd array (array C), where array B is sorted so that array
A and array C have a correlation of X.

Does anyone have any ideas on how to do this?

This may be a horrible way to solve this problem. If so, does anyone
have any ideas on how else I could go about it?

Thank you.

What has array B got to do with the correlation between A & C? ,

Bill J
.



Relevant Pages

  • Re: java based supercomputer
    ... checking the correlation beteween an array of data and another array ... java psuedo remote threads will take a considerrably less time. ... Does your algorithm lend itself well to paralellization? ... the only bottleneck i can see is checking the correlation value ...
    (comp.lang.java.programmer)
  • Re: using a named cell in a fuction
    ... Josh wrote: ... > row has a different title that matches an array of cells. ... > correlation of the arrays matching its column and row, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: coorelating randomly generated data
    ... correlation between them (such as small cap and large cap stocks) ... ItemDefs: array of ... ... {Initialization of the Item Value recs:} ...
    (borland.public.delphi.non-technical)
  • Re: java based supercomputer
    ... checking the correlation beteween an array of data and another array ... java psuedo remote threads will take a considerrably less time. ... Does your algorithm lend itself well to paralellization? ... the only bottleneck i can see is checking the correlation value ...
    (comp.lang.java.programmer)
  • Re: Generating a Matrix of Random values with a specified Correlation
    ... (array C), where array B is sorted so that array A and array C have a ... correlation of X. ...  Let's suppose the desired correlation x> rho (where of course x ... chances of understanding your response. ...
    (sci.math)

Loading