Lognormal cumulative distribution function
The logncdf
function uses the complementary error function
erfc
. The relationship between
logncdf
and erfc
is
The complementary error function erfc(x)
is defined
as
The logncdf
function computes confidence bounds for
p
by using the delta method. The normal distribution cdf value of
log(x)
with the parameters mu
and
sigma
is equivalent to the cdf value of
(log(x)–mu)/sigma
with the parameters 0 and 1. Therefore, the
logncdf
function estimates the variance of
(log(x)–mu)/sigma
using the covariance matrix of
mu
and sigma
by the delta method, and finds
the confidence bounds of (log(x)–mu)/sigma
using the estimates of this
variance. Then, the function transforms the bounds to the scale of p
.
The computed bounds give approximately the desired confidence level when you estimate
mu
, sigma
, and pCov
from large
samples.
logncdf
is a function specific to lognormal distribution.
Statistics and Machine Learning Toolbox™ also offers the generic function cdf
, which supports various probability distributions. To use
cdf
, create a LognormalDistribution
probability distribution object and pass the object as
an input argument or specify the probability distribution name and its parameters. Note
that the distribution-specific function logncdf
is faster than
the generic function cdf
.
Use the Probability Distribution Function app to create an interactive plot of the cumulative distribution function (cdf) or probability density function (pdf) for a probability distribution.
[1] Abramowitz, M., and I. A. Stegun. Handbook of Mathematical Functions. New York: Dover, 1964.
[2] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993.
cdf
| erfc
| lognfit
| logninv
| lognlike
| LognormalDistribution
| lognpdf
| lognrnd
| lognstat