The distribution of y = a - b + s, where a and b are two lognormal random variables and s is a constant to be estimated, can be approximated by a lognormal distribution.
estimateDiffLognormal(mu_a, mu_b, sigma_a, sigma_b, corr = 0)pDiffLognormalSample(
mu_a,
mu_b,
sigma_a,
sigma_b,
corr = 0,
q = 0,
nSample = 1e+05
)
center parameter of the first term
center parameter of the second term
scale parameter of the first term
scale parameter of the second term
correlation between the two random variables
vector of quantiles
number of samples
estimateDiffLognormal: numeric vector with components mu, sigma, and shift, the components of the shifted lognormal distribution.
pDiffLognormalSample: vector of probabilities
estimateDiffLognormal
: Estimate the shifted-lognormal approximation to difference of two lognormals
pDiffLognormalSample
: Distribution function for the difference of two lognormals based on sampling.
Default provides the probability that the difference is significantly larger
than zero.