本文介绍了对数正态分布的逆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找到给定对数正态分布的逆。
由于R中没有用于逆对数正态的内置函数,因此我需要设计自己的函数。

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.

我对随机变量'x'具有这种对数正态分布

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

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

在维基百科上说

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

其中G(Y)n是对F(X)的逆分布,并且X = 1 / Y。

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

但是,我对如何编码感到困惑R中的F(1 / y)以及用来定义该分布的单位-mu或1 / mu。

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.

我对F(x)的mu和sigma都有估计。

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

预先感谢。

推荐答案

通常,分位数分布是累积分布的倒数。这确实意味着:

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()

这篇关于对数正态分布的逆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 10:57