Free Lognormal Distribution Calculator
Evaluate the probability density function f(x) at a given x
Must be > 0
Must be > 0
Results
Select a mode and enter parameters to compute lognormal distribution values
What Is a Lognormal Distribution?
A lognormal distribution (also called log‑normal) is a continuous probability distribution that applies to positive random variables only. Its defining property is that a variable is lognormally distributed when its natural logarithm follows a normal distribution. Equivalently, if is normally distributed with mean and standard deviation , then follows a lognormal distribution. Because the exponential function always produces a positive output, every lognormal variable is strictly greater than zero.
Parameters of the Lognormal Distribution
The distribution is characterized by two log normal distribution parameters:
- – the scale parameter (mean of the underlying normal distribution).
- – the shape parameter (standard deviation of the underlying normal distribution).
It is important to remember that and are not the mean and standard deviation of itself; they describe the normally distributed logarithm. The actual mean, variance, and other measures of are derived from these parameters using exponential transformations.
Probability Density Function (PDF) and Cumulative Distribution Function (CDF)
The probability density function of the lognormal distribution for is:
The cumulative distribution function (CDF) gives the probability that and is expressed using the standard normal CDF :
This direct link between normal and lognormal distributions makes all lognormal PDF CDF computations straightforward when using a log normal probability calculator.
Quantile Function
The lognormal quantile function (inverse CDF) for a probability is:
This function is essential for generating random samples from the lognormal distribution and for determining thresholds given a cumulative probability.
Mean, Variance, and Other Key Measures
The lognormal mean variance and other common measures are expressed directly in terms of and . For a lognormal variable :
- Mean:
- Median:
- Mode:
- Variance:
- Skewness:
These closed-form formulas allow instant computation once the log normal distribution parameters are known.
Applications of the Lognormal Distribution
The lognormal distribution appears in many real‑world contexts where variables are positive and result from multiplicative processes. Typical applications include:
- Reliability engineering – modeling failure times of mechanical or electronic components.
- Finance and economics – stock prices, asset returns, income distributions.
- Hydrology – monthly maximum daily rainfall or river discharge.
- Internet analytics – comment lengths, time spent reading a post, network traffic per unit time.
In each case, the assumption that the data are lognormally distributed provides a realistic fit for right‑skewed, positive data.
How to Use This Lognormal Distribution Calculator
This free online statistics tool offers six distinct computation modes:
- Select a mode – choose from pdf, cdf, quantile, sample generator, common measures (mean/variance), or skewness.
- Enter the parameters – input the scale parameter and the shape parameter .
- Provide additional input – for pdf/cdf, enter the value ; for quantile, enter the probability ; for sample generation, specify the sample size.
- Get instant results – the calculator returns the requested quantity and, where applicable, displays a plot.
Whether you need to evaluate the lognormal PDF CDF, compute the lognormal quantile function, or derive the lognormal mean variance for a given set of parameters, this tool streamlines the entire process.
FAQ
1. What is the difference between μ and σ for the lognormal distribution?
μ is the scale parameter (mean of ln X) and σ is the shape parameter (standard deviation of ln X). They are not the mean and standard deviation of X itself; the actual mean and variance of X are derived from μ and σ using exponential expressions.
2. How do I calculate the probability density (PDF) at a specific x?
Select the 'pdf' mode, enter μ and σ, and provide the x value. The calculator applies f(x) = 1/(x σ √(2π)) exp(-(ln x - μ)²/(2σ²)) and returns the density instantly.
3. What is the formula for the mean of a lognormal distribution?
The mean of a lognormal variable X is E[X] = exp(μ + σ²/2), where μ and σ are the distribution's parameters (mean and standard deviation of the underlying normal).
4. Can this calculator generate random samples from a lognormal distribution?
Yes. Choose the 'sample generator' mode, specify the sample size, and the calculator will generate values using the quantile function Q(p) = exp(μ + σ Φ⁻¹(p)) applied to uniform random numbers.
5. Why is the lognormal distribution commonly used for stock prices and income?
Stock prices and incomes are positive and arise from multiplicative growth. The product of many independent positive random factors tends to follow a lognormal distribution, which naturally captures right skewness and positivity.
How to Use
- Select the calculation mode: PDF, CDF, Quantile, or Common Measures.
- Enter the scale parameter μ and shape parameter σ for the lognormal distribution.
- If required, enter the argument x or probability p, then view the results instantly.