Log-normal to normal
Mostrar comentarios más antiguos
Hi all,
lognpdf samples from a log-normal with mean m and variance v of the associated normal. however, is there a function that allows to pass the log-normal mean and variance to get log-normal probability densities, or alternatively a conversion function from log-normal mean and var to normal?
Thanks!
Respuestas (2)
Star Strider
el 22 de Mayo de 2015
1 voto
The documentation for lognpdf in the Description section has equations for mapping to and from the parameters for the lognormal distribution. You have to code them, but that doesn’t seem to be difficult.
Image Analyst
el 22 de Mayo de 2015
0 votos
Am I missing something, or isn't it simply mean() and var()? Just pass your log-normal generated samples into mean() and var() and it will give you the mean and variance of the log-normal data.
1 comentario
Lisa
el 22 de Mayo de 2015
Categorías
Más información sobre Lognormal Distribution 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!