generate a random variable that is log normal distributed and has a correlation coefficent
Mostrar comentarios más antiguos
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 comentario
Image Analyst
el 1 de Mzo. de 2016
Editada: Image Analyst
el 1 de Mzo. de 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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Univariate Discrete Distributions en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
