| Discussion: | All Topics in Probability & Statistics |
| Topic: | need help in generating feasible correlation matrices |
| Post a new topic to the All Content in Probability & Statistics discussion |
| ||||||||
| Subject: | RE: need help in generating feasible correlation matrices |
| Author: | Giulianino |
| Date: | Jan 6 2005 |
Maybe you have already solved this little problem but if not then try:
in MatLab:
R = gallery('randcorr',n) %Where n is the size of the matrix
This will generate a random correlation matrix, which is positive definite.
The random numbers are drawn from a uniform distribution.
The routine is part of the LAPACK suite in my version of MatLab.
Julian Williams
University of Bath
| |||||||
| Post a new topic to the All Content in Probability & Statistics discussion | |||||||