generate a random variable that is log normal distributed and has a correlation coefficent
Show older comments
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 Comment
Image Analyst
on 1 Mar 2016
Edited: Image Analyst
on 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.
Accepted Answer
More Answers (0)
Categories
Find more on Correlation and Convolution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!