The lognormal distribution and its three centers
The question
If ln X is normal with mean 0 and SD 0.7, half the values of X lie below 1. Where is their average?
Stage 1 asks you to place it by eye before the page computes it.
- 1 SeeGuess where the density balances, three rounds.
- 2 TryAnswer two questions, then move μ and σ.
- 3 ProveBuild the mean formula line by line.
- 4 ApplyIncomes, a stock price and a variance.
Before you start · 3 quick checks on logarithms, normal areas and areas under a density, about 3 min
Two ideas before you start
2 ideasExponentiate a normal value
Figure: the curve x = ey with a band of y values and the stretch of x values it lands on. It needs JavaScript.
Y from −1 to 0 X = e^Y from e^−1 ≈ 0.368 to 1 width ≈ 0.632
When Y is standard normal both bands have the same probability, Φ(1) − Φ(0) ≈ 0.3413. After x = ey the band right of 0 covers a stretch of X that is e ≈ 2.7 times as long.
Exact definition
Lognormal. Fix a real number \(\mu\) and a number \(\sigma \gt 0\). A random variable \(X\) is lognormal with parameters \(\mu\) and \(\sigma\) when \(X = e^{Y}\) for a normal \(Y \sim N(\mu, \sigma^2)\); equivalently, \(X \gt 0\) and \(\ln X \sim N(\mu, \sigma^2)\). So \(\mu\) and \(\sigma\) are the mean and the standard deviation of \(\ln X\), not of \(X\).
Its density is
\[\begin{aligned} f(x) &= \frac{1}{x\sigma\sqrt{2\pi}} \\ &\quad \cdot e^{-(\ln x - \mu)^2/(2\sigma^2)} \end{aligned}\]for \(x \gt 0\), and 0 for \(x \le 0\). It comes from the normal density of \(Y\) by the change of variables \(x = e^{y}\), as in the lesson on how a density changes under a transformation: the extra factor \(1/x\) is the derivative of \(\ln x\).
Three ways to name a center
Figure: the bell-shaped density of a standard normal Y with its mode, median or mean marked at 0. It needs JavaScript.
Mode: highest point, φ(0) ≈ 0.399
The mode is where the density is highest, the median splits the area in half, and the mean is the balance point. For the bell curve of Y all three sit at its center, here 0.
Exact definition
Let \(X\) have a density \(f\). A mode is a point where \(f\) takes its largest value. A median is a number \(m\) with \(P(X \le m) = \tfrac{1}{2}\); when the CDF is strictly increasing, there is exactly one. The mean is \(E[X] = \int_{-\infty}^{\infty} x f(x)\,dx\), when this integral converges absolutely.
The mean is the balance point: \(E[X - c] = E[X] - c\) is 0 exactly when \(c = E[X]\), so a plate cut in the shape of the density, resting on a pivot at \(c\), balances exactly at the mean. For \(N(\mu, \sigma^2)\) the density is symmetric about \(\mu\) and highest there, so the mode, the median and the mean are all \(\mu\); see the lesson on the normal distribution.
Fine print: names and parameters
Some books and software describe the same distribution by the scale \(e^{\mu}\) and the shape \(\sigma\), or by the mean and standard deviation of \(X\) itself; check which pair a formula uses before plugging in. A lognormal variable is always positive, and its density tends to 0 as \(x\) tends to 0 from above.
Find the balance point by eye
- Move the slider to put the dashed line where you think the density balances: your guess for the mean of \(X\).
- The dotted line is the median, 1. Press Check my guess to see the mean and the mode.
How the game works
In every round \(X = e^{Y}\), where \(Y\) is normal with mean \(\mu = 0\) and standard deviation \(\sigma\); \(\sigma\) grows from round to round. Your guess runs from 0.1 to 4 in steps of 0.01. In each round the axis runs far enough to the right that less than 0.1% of the probability lies beyond its end, so the figure shows the whole distribution except a part too thin to draw; that part changes the balance point by less than 1%. The label under the right end of the axis gives its share. Check my guess locks it, draws the mean and the mode, and says how far your guess is from the mean; a guess within 5% of the mean counts as close. After the third round a table compares your guesses with the means. Start over clears everything.
| σ | Your guess | Mean | Your guess is |
|---|
With \(Y = \mu + \sigma Z\) and \(Z\) standard normal, \(X = e^{\mu}e^{\sigma Z}\): every value of \(X\) is the value for \(\mu = 0\) multiplied by the same number \(e^{\mu}\). So the mode, the median and the mean are all multiplied by \(e^{\mu}\): the median is \(e^{\mu}\), the mode \(e^{\mu - \sigma^2}\) and the mean \(e^{\mu + \sigma^2/2}\).
Move μ and σ
Here \(X = e^{Y}\) with \(Y \sim N(\mu, \sigma^2)\). Answer the two questions first; the explorer opens after both.
The explorer and its goals open after you answer both questions.
Explorer
- Set \(\mu\) and \(\sigma\) with the sliders. The figure and the tiles follow.
- Reach the three goals below. Each goal starts again from \(\mu = 0\) and \(\sigma = 0.5\).
Goals
Where the mode, the median and the share come from
Median. The map \(y \mapsto e^{y}\) is increasing, so \(X \le e^{\mu}\) exactly when \(Y \le \mu\), which has probability \(\tfrac{1}{2}\). The CDF of \(X\) is strictly increasing on \((0, \infty)\), so \(e^{\mu}\) is the only median.
Mode. For \(x \gt 0\),
\[\begin{aligned} \ln f(x) &= -\ln x \\ &\quad - \frac{(\ln x - \mu)^2}{2\sigma^2} \\ &\quad - \ln(\sigma\sqrt{2\pi}), \end{aligned}\]so
\[\begin{aligned} &\frac{d}{dx}\ln f(x) \\ &= -\frac{1}{x}\left(1 + \frac{\ln x - \mu}{\sigma^2}\right). \end{aligned}\]This is positive while \(\ln x \lt \mu - \sigma^2\) and negative after, so \(f\) rises and then falls, with its highest point at \(x = e^{\mu - \sigma^2}\).
Share below the mean. \(X \le e^{\mu + \sigma^2/2}\) exactly when \(Y \le \mu + \sigma^2/2\), that is when \(Z = (Y - \mu)/\sigma \le \sigma/2\). So the share is \(\Phi(\sigma/2)\), which is above \(\tfrac{1}{2}\) for every \(\sigma \gt 0\) and does not depend on \(\mu\).
The mean of a lognormal
Let \(\mu\) be a real number, \(\sigma \gt 0\), \(Y \sim N(\mu, \sigma^2)\) and \(X = e^{Y}\). Then the median of \(X\) is \(e^{\mu}\) and
\[E[X] = e^{\mu + \sigma^2/2},\]which is larger than the median.
Write \(Y = \mu + \sigma Z\), where \(Z\) is standard normal with density \(\varphi(z) = \frac{1}{\sqrt{2\pi}}e^{-z^2/2}\), so \(X = e^{\mu + \sigma Z}\). The median was shown in stage 2. For the mean, choose the true statement in each line.
All moments. For a number \(k \ne 0\), \(X^k = e^{kY}\) and \(kY \sim N(k\mu, k^2\sigma^2)\), so the theorem applied to \(kY\) gives
\[E[X^k] = e^{k\mu + k^2\sigma^2/2},\]and the same formula holds for \(k = 0\).
Variance. With \(k = 2\),
\[\begin{aligned} \operatorname{Var}(X) &= E[X^2] - (E[X])^2 \\ &= e^{2\mu + 2\sigma^2} - e^{2\mu + \sigma^2} \\ &= e^{2\mu + \sigma^2}(e^{\sigma^2} - 1). \end{aligned}\]A fast-growing tail. Every moment is finite, but the moments grow so fast with \(k\) that \(E[e^{tX}]\) is infinite for every \(t \gt 0\): the lesson on moment generating functions discusses this case. The tail of \(X\) is still lighter than the power-law tails in the lesson on heavy tails, where some moments are infinite.
Problems
Each problem has hints and a full solution. Type each answer as a decimal, such as 0.25, or a fraction, such as 1/4.
Related: how a density changes under a transformation derives densities like the one above, and geometric Brownian motion shows how a lognormal price arises from a random process over time.
Further reading
- N. L. Johnson, S. Kotz and N. Balakrishnan, Continuous Univariate Distributions, Vol. 1, 2nd ed. (Wiley, 1994), chapter 14, “Lognormal Distributions.”
- G. Casella and R. L. Berger, Statistical Inference, 2nd ed. (Duxbury, 2002), section 3.3, “Continuous Distributions,” on the lognormal and its moments.
- J. C. Hull, Options, Futures, and Other Derivatives, 10th ed. (Pearson, 2018), chapter 15, “The Black–Scholes–Merton Model,” on the lognormal property of stock prices.