I'd like to know if anyone can suggest a method for generating random correlation matrix with 90% of the entries (except 1) between $[-0.3, 0.3]$. The other 10% should be larger than 0.3 or smaller than -0.3.
Thanks!
|
I'd like to know if anyone can suggest a method for generating random correlation matrix with 90% of the entries (except 1) between $[-0.3, 0.3]$. The other 10% should be larger than 0.3 or smaller than -0.3. Thanks! |
|||||||||||||
|
|
Here's a heuristic that I coded up quickly that seems to do quite well:
It seems like most of the values after simulating 100 times are close to 90% within (-.3,.3). |
|||||||||||||
|
|
Edit: Never you mind, this won't work; see the comments... |
|||||||||||||||
|
|
Here's an older answer to a similar question on SO. It has some code that you could try/modify: Some other links: |
||||
|
|