Borrar filtros
Borrar filtros

How to generate random numbers of two correlated variables following lognormal probability distribution?

1 visualización (últimos 30 días)
Let A and B are two random variables, following lognormal probability distribution. These two variables has a value of correlation between each other. I have to generate random numbers for these two variables.
Please suggest me any function or describe the process to do the necessary calculation for generation of these random numbers.

Respuesta aceptada

Thorsten
Thorsten el 24 de Nov. de 2014
If N has a normal distribution, exp(N) has a lognormal distribution:
x = -10:0.1:10;
N = randn(1, 10^6);
plot(x,hist(N, x), 'r', x, hist(exp(N), x), 'b')
legend({'normal', 'lognormal'})
  2 comentarios
Abhishek
Abhishek el 4 de Dic. de 2014
Sir, I want to know the command or function used in matlab to generate a set of random numbers following correlated or multivariate lognormal distribution, means the variables following lognormal distribution will be correlated to each other.
Thorsten
Thorsten el 4 de Dic. de 2014
Please open a new question if you have a new question. Others will not look at answered questions.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by