generate a random variable that is log normal distributed and has a correlation coefficent
Afficher commentaires plus anciens
I am trying to generate random shear wave velocity profiles. I have the mean and standard deviation for several different layers and the correlation coefficient between them. for example the top layer has a mean of 230 a standard deviation of 40. The second layer has a mean of 290 and stdev of 20. The correlation coefficient between layers is 0.7. How can I generate random profiles that include the correlation.
1 commentaire
Image Analyst
le 1 Mar 2016
Modifié(e) : Image Analyst
le 1 Mar 2016
Are you using a normal distribution? Or log-normal like your tag? Are you using random() or randn()? Good question. I know how to get a set of random numbers, but not how to make sure that that first set has a specified correlation with some second set of random numbers.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Correlation and Convolution 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!
