This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Lognormal Distribution

Fit, evaluate, generate random samples from lognormal distribution

Statistics and Machine Learning Toolbox™ offers several ways to work with the lognormal distribution.

  • Create a probability distribution object LognormalDistribution by fitting a probability distribution to sample data or by specifying parameter values. Then, use object functions to evaluate the distribution, generate random numbers, and so on.

  • Work with the lognormal distribution interactively by using the Distribution Fitter app. You can export an object from the app and use the object functions.

  • Use distribution-specific functions with specified distribution parameters. The distribution-specific functions can accept parameters of multiple lognormal distributions.

  • Use generic distribution functions (cdf, icdf, pdf, random) with a specified distribution name ('Lognormal') and parameters.

To learn about the lognormal distribution, see Lognormal Distribution.

Objects

LognormalDistributionLognormal probability distribution object

Apps

Distribution FitterFit probability distributions to data

Functions

expand all

Create LognormalDistribution Object

makedistCreate probability distribution object
fitdistFit probability distribution object to data

Work with LognormalDistribution Object

cdfCumulative distribution function
icdfInverse cumulative distribution function
iqrInterquartile range
meanMean of probability distribution
medianMedian of probability distribution
negloglikNegative loglikelihood of probability distribution
paramciConfidence intervals for probability distribution parameters
pdfProbability density function
proflikProfile likelihood function for probability distribution
randomRandom numbers
stdStandard deviation of probability distribution
truncateTruncate probability distribution object
varVariance of probability distribution
logncdfLognormal cumulative distribution function
lognpdfLognormal probability density function
logninvLognormal inverse cumulative distribution function
lognlikeLognormal negative loglikelihood
lognstatLognormal mean and variance
lognfitLognormal parameter estimates
lognrndLognormal random numbers
mleMaximum likelihood estimates
mlecovAsymptotic covariance of maximum likelihood estimators
Probability Distribution FunctionInteractive density and distribution plots
randtoolInteractive random number generation

Topics

Lognormal Distribution

The lognormal distribution is a probability distribution whose logarithm has a normal distribution.