Hexa Scholar

The lognormal distribution and its three centers

A tall heap of clay pebbles near the left end of a long wooden board, thinning into a sparse trail of pebbles far to the right.
Most pebbles pile up on the left, and a few lie far out to the right.

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. 1 SeeGuess where the density balances, three rounds.
  2. 2 TryAnswer two questions, then move μ and σ.
  3. 3 ProveBuild the mean formula line by line.
  4. 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 ideas

Exponentiate 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.

Band of Y

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.

Center

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.

1 See

Find the balance point by eye

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.

2 Try

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.

3 Prove

The mean of a lognormal

Theorem

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.

What else follows

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.

4 Apply

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.

Key point If \(\ln X \sim N(\mu, \sigma^2)\), every probability about \(X\) is a normal probability about \(\ln X\), so quantiles and the median map over directly: the median is \(e^{\mu}\). Expectations do not map over: the mean is \(e^{\mu + \sigma^2/2}\), the variance \(e^{2\mu + \sigma^2}(e^{\sigma^2} - 1)\), and the share of values below the mean is \(\Phi(\sigma/2)\).
Level Intro Prerequisites The normal distribution and its tail areas; logarithms and areas under a density (refreshed in Before you start) Time ~35 min

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