Continuous distribution

Log-normal distribution

A positive quantity built by multiplying many small independent factors, so that its logarithm is normal: incomes, file sizes, city populations, the time to finish a task. It is skewed to the right, and its mean is pulled above its median by the long tail.

Log-normal probability calculator

P(X ≤ 1) = 0.5

At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.

PDF

00.250.50.7502468f(x)mean

CDF

00.250.50.75102468F(x)

mean 1.133 · variance 0.3647 · sd 0.6039 · mode 0.7788 · entropy 0.7258 nats

Formulas

Parameters
  • , the mean of
  • , the standard deviation of
Support
PDF
CDF
Mean
Variance
Mode
MGF
Entropy

The median is . Note that and describe , not .

Worked example

Household income is modelled as log-normal with and (in dollars). What are the median and the mean income?

The median is . The mean is dollars, about 20% higher than the median because of the long right tail. answer checked by code

How it relates to others

All the relationships, as a diagram →

In Python

from scipy import stats
import numpy as np

X = stats.lognorm(s=0.5, scale=np.exp(0))
X.pdf(1.2)  # f(1.2) = 0.6221
X.cdf(1.2)  # P(X ≤ 1.2) = 0.6423
X.mean(), X.var()  # 1.133, 0.3647
X.ppf(0.95)  # 95th percentile
X.rvs(size=10, random_state=0)

rng = np.random.default_rng(0)
rng.lognormal(mean=0, sigma=0.5, size=10)

SciPy takes s = σ and scale = e^μ; NumPy takes μ and σ directly.

Choosing between this and its neighbours? Which distribution for waiting times and lifetimes? · Which distribution for extremes and heavy tails? · Which distribution for measurements and errors?

← Skew normalExponential →