About the generation of correlated random variables
Afficher commentaires plus anciens
Hi everyone,
I have a question to ask on this forum. I want to create random variables from the correlation matrix, found from the PSD function.
How can I proceed,
Thank you.
2 commentaires
John D'Errico
le 16 Juin 2014
Modifié(e) : John D'Errico
le 16 Juin 2014
Random variables from WHAT distribution? (Sort of a trick question. Anything but a normal distribution will be somewhat difficult.)
ahmed abrous
le 17 Juin 2014
Modifié(e) : ahmed abrous
le 17 Juin 2014
Réponses (1)
Honglei Chen
le 16 Juin 2014
Here is an example
sigma = [1 0.2;0.2 1];
x = randn(1000,2)*chol(sigma);
corrcoef(x) % verify
Catégories
En savoir plus sur Spectral Estimation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!