logncdf
Lognormal cumulative distribution function
Syntax
Description
Examples
Input Arguments
Output Arguments
More About
Algorithms
The
logncdffunction uses the complementary error functionerfc. The relationship betweenlogncdfanderfcisThe complementary error function
erfc(x)is defined asThe
logncdffunction computes confidence bounds forpby using the delta method. The normal distribution cdf value oflog(x)with the parametersmuandsigmais equivalent to the cdf value of(log(x)–mu)/sigmawith the parameters 0 and 1. Therefore, thelogncdffunction estimates the variance of(log(x)–mu)/sigmausing the covariance matrix ofmuandsigmaby the delta method, and finds the confidence bounds of(log(x)–mu)/sigmausing the estimates of this variance. Then, the function transforms the bounds to the scale ofp. The computed bounds give approximately the desired confidence level when you estimatemu,sigma, andpCovfrom large samples.
Alternative Functionality
logncdfis a function specific to lognormal distribution. Statistics and Machine Learning Toolbox™ also offers the generic functioncdf, which supports various probability distributions. To usecdf, create aLognormalDistributionprobability distribution object and pass the object as an input argument or specify the probability distribution name and its parameters. Note that the distribution-specific functionlogncdfis faster than the generic functioncdf.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.
References
[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.
Extended Capabilities
Version History
Introduced before R2006a
