Inverse of the lognormal distribution

大憨熊 提交于 2019-12-12 04:58:18

问题


I need to find the inverse of a given lognormal distribution. Since there is no inbuilt function in R for inverse lognormal, I need to design my own.

I have this lognormal distribution for a random variable 'x'

 f_lambda <- function(x,mu,sig) {dlnorm(x, meanlog = mu, sdlog = sig,log=FALSE)}

On wikipedia it says

 G(y) = 1- F(1/y)

where G(Y)n is the inverse distribution to F(X) and X= 1/Y.

But, I am confused as to how to encode F(1/y) in r and what to use to define that distribution - mu or 1/mu.

I have estimates of mu and sigma for F(x).

Thanks in advance.


回答1:


In general, the quantile distribution is the inverse of a cumulative distribution. This really means:

which means that to find the inverse of the lognormal distribution you can use

qlnorm()


来源:https://stackoverflow.com/questions/44525601/inverse-of-the-lognormal-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!