How to generate intercorrelated multivariate random numbers?

16 vues (au cours des 30 derniers jours)
paasc
paasc le 27 Mar 2015
Modifié(e) : John D'Errico le 28 Mar 2015
Hi, how can I generate a matrix (say 100x60) of normally distributed variables where some of the variables are correlated with others and some of them aren't?
do I approach this with 'randn' or 'mvnrnd' function?
Thank you in advance!

Réponses (1)

John D'Errico
John D'Errico le 28 Mar 2015
Modifié(e) : John D'Errico le 28 Mar 2015
help mvnrnd
Did you read the help? Maybe you need to understand what a correlation matrix is, and how to convert that to a covariance matrix.

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by