Search

Search papers and lessons

Log-Normal Distribution

Level 2 · 9 min read

A log-normal variable is one whose logarithm follows a normal distribution, so it is always positive and has a long right tail, which suits quantities that grow by multiplying.

On this page

  • Colour = topic mix
  • Probability
  • Discrete math
  • Calculus
  • ReadReady to readNot yet

TL;DR

A log-normal random variable is one whose logarithm is normally distributed. Taking the logarithm turns it into an ordinary bell curve, so the variable itself is always positive and has a long tail to the right. It is the natural model for quantities that grow by repeated multiplication rather than by repeated addition.

Builds on: Gaussian (Normal) Distribution, Logarithm · Leads to: Shadow Fading

Where it's used

Wireless signal strength. A radio signal loses strength as it passes obstacles such as buildings, and the loss in decibels is often modelled as normal. Because the decibel scale is a logarithm of power, the received power itself is log-normal. Engineers use this to set coverage margins for a mobile network. See Shadow Fading.

Particle sizes. In a dust or aerosol sample, the diameters of particles often follow a log-normal pattern, because each particle grows or breaks apart by a random proportion. Air-quality and pharmaceutical engineers use the fitted curve to describe a sample in a single number and a spread.

Incomes and firm sizes. Many studies find that the sizes of firms and some incomes are roughly log-normal. The idea behind it is that each year a firm grows or shrinks by a random percentage, so its size is a product of many random factors, and the logarithm of the size adds them up.

How it works

Take a quantity that starts at 1 and is multiplied, each step, by a random factor. Keep the example small: each step doubles or halves the value with equal chance.

  1. Start with a value. Let X0=1X_0 = 1. Check: the starting value is positive, which is where the log-normal lives.

  2. Multiply by a random factor. After one step, X1=2X_1 = 2 or X1=0.5X_1 = 0.5, each with probability one half. Check: both values are still positive.

  3. Take the logarithm. Use base 2 for simplicity. Then log⁡2X1\log_2 X_1 is +1+1 or −1-1, so the log moves by a fixed amount in either direction. Check: each multiplication by 2 adds 1 to the base-2 log, and each halving subtracts 1.

  4. Add up many steps. After nn steps, the log is a sum of nn random ±1\pm 1 moves. The Central Limit Theorem says that such a sum, rescaled, looks like a bell curve when nn is large. Check: after 2 steps the log is −2-2, 00 or +2+2, with probabilities one quarter, one half and one quarter.

  5. Exponentiate back. If the base-2 log is normal, the original value is X=2log⁡2XX = 2^{\log_2 X}. Switching to the natural log only multiplies the log by the constant ln⁡2\ln 2, so a normal base-2 log is the same as a normal natural log, the form used in The math. A normal log gives a value that is positive, with a long right tail, because the exponential stretches the high side much more than the low side. Check: a log of +3+3 gives X=8X = 8, while a log of −3-3 gives X=0.125X = 0.125. The high side is further from 1 than the low side.

flowchart LR
  A[Start at 1] --> B[Multiply by a random factor each step]
  B --> C[Logarithm: random factors become random additions]
  C --> D[Sum of many additions looks normal]
  D --> E[Exponentiate back: a log-normal value]

The diagram shows the logic. Products become sums in the log scale, sums of many small effects look normal, and exponentiating gives the log-normal.

The math

Definition

Definition: Log-normal distribution

A positive random variable XX is log-normal with parameters μ\mu and σ>0\sigma \gt 0 when Y=ln⁡XY = \ln X is normal with mean μ\mu and standard deviation σ\sigma. We write X∼LogNormal(μ,σ2)X \sim \text{LogNormal}(\mu, \sigma^2). The parameters μ\mu and σ\sigma are on the log scale, not the original scale.

Step 3 in symbols: the log is normal

Let Y=ln⁡XY = \ln X, so Y∼N(μ,σ2)Y \sim \mathcal{N}(\mu, \sigma^2). Here N\mathcal{N} denotes the Gaussian (Normal) Distribution. Because X=eYX = e^Y, every probability about XX can be turned into a probability about YY. For example, P(X≤x)=P(Y≤ln⁡x)P(X \le x) = P(Y \le \ln x).

Step 5 in symbols: the density

Use the Change of Variables Formula to convert the normal density of YY into a density for XX. The result is

f(x)=1x σ2πexp⁡ ⁣(−(ln⁡x−μ)22σ2),x>0f(x) = \frac{1}{x \, \sigma \sqrt{2\pi}} \exp\!\left( -\frac{(\ln x - \mu)^2}{2\sigma^2} \right), \qquad x \gt 0

The factor 1/x1/x comes from the stretch of the change of variables. It is the difference between a log-normal and a normal curve.

The median, mean and spread

The median is the value with half the probability below it. Since P(X≤x)=P(Y≤ln⁡x)P(X \le x) = P(Y \le \ln x), the median is where ln⁡x=μ\ln x = \mu, so

median=eμ\text{median} = e^{\mu}

The mean uses the moment generating function of the normal, E[etY]=eμt+σ2t2/2\mathbb{E}[e^{tY}] = e^{\mu t + \sigma^2 t^2 / 2}. Setting t=1t = 1 gives

E[X]=eμ+σ2/2\mathbb{E}[X] = e^{\mu + \sigma^2 / 2}

The mean is always larger than the median, which is the signature of a right-skewed distribution. The mean is larger by the factor eσ2/2e^{\sigma^2/2}.

Worked examples

Example
1. Standard normal log, tiny numbers

Take μ=0\mu = 0 and σ=1\sigma = 1, so ln⁡X\ln X is a standard normal.

  1. The median is e0=1e^0 = 1.
  2. The mean is e0+1/2=e0.5≈1.649e^{0 + 1/2} = e^{0.5} \approx 1.649.
  3. Probability that X≤eX \le e: this is P(ln⁡X≤1)=P(Z≤1)P(\ln X \le 1) = P(Z \le 1) for a standard normal ZZ.
  4. From a normal table, P(Z≤1)≈0.841P(Z \le 1) \approx 0.841.
  5. Check: the mean, 1.649, is above the median, 1, as the skew predicts.

Answer: the median is 1, the mean is about 1.649, and P(X≤e)≈0.841P(X \le e) \approx 0.841.

Example
2. A growing quantity, the standard case

Let ln⁡X\ln X be normal with μ=2\mu = 2 and σ=0.5\sigma = 0.5.

  1. Median: e2≈7.389e^2 \approx 7.389.
  2. Mean: e2+0.52/2=e2.125≈8.373e^{2 + 0.5^2/2} = e^{2.125} \approx 8.373.
  3. Probability that X>10X \gt 10: P(ln⁡X>ln⁡10)=P(Y>2.3026)P(\ln X \gt \ln 10) = P(Y \gt 2.3026).
  4. Standardise: (2.3026−2)/0.5≈0.605(2.3026 - 2)/0.5 \approx 0.605.
  5. From a normal table, P(Z>0.605)≈0.27P(Z \gt 0.605) \approx 0.27.
  6. Interpretation: about 27 percent of the time, XX is above 10, even though its median is about 7.4.

Answer: the median is 7.389, the mean is 8.373, and P(X>10)≈0.27P(X \gt 10) \approx 0.27.

Example
3. Particle sizes, realistic numbers

This example is illustrative. Particle diameters DD, in micrometres, have ln⁡D\ln D normal with μ=ln⁡2\mu = \ln 2 and σ=0.4\sigma = 0.4, so the median diameter is 2 micrometres.

  1. Probability that a particle is at most 1 micrometre: P(ln⁡D≤0)P(\ln D \le 0).
  2. Standardise: (0−ln⁡2)/0.4=−0.6931/0.4≈−1.733(0 - \ln 2)/0.4 = -0.6931/0.4 \approx -1.733.
  3. P(Z≤−1.733)=1−P(Z≤1.733)≈1−0.958=0.042P(Z \le -1.733) = 1 - P(Z \le 1.733) \approx 1 - 0.958 = 0.042.
  4. Try it: find P(D≤4)P(D \le 4). Use the same method and then explain the answer.

Answer: P(D≤4)=P(ln⁡D≤ln⁡4)=P(Z≤(ln⁡4−ln⁡2)/0.4)=P(Z≤1.733)≈0.958P(D \le 4) = P(\ln D \le \ln 4) = P(Z \le (\ln 4 - \ln 2)/0.4) = P(Z \le 1.733) \approx 0.958. This equals 1−0.0421 - 0.042. The answer is symmetric because 1 and 4 are the same ratio away from the median 2, one half and twice, so they sit the same distance from the median on the log scale.

Common mistakes and tradeoffs

It is tempting to think that the parameters μ\mu and σ\sigma are the mean and standard deviation of XX. In fact they describe ln⁡X\ln X. The mean of XX is eμ+σ2/2e^{\mu + \sigma^2/2}, and its standard deviation depends on both parameters. Always read the parameters on the log scale.

It is tempting to think that the logarithm of a normal variable is log-normal. In fact it is the other way round: the logarithm of a log-normal variable is normal. A normal variable can be negative, while a log-normal variable cannot.

It is tempting to use the mean as the typical value. In fact for a skewed distribution the median is often the better summary, and the mean is pulled up by the long right tail. This is why incomes are usually reported with medians.

Use the log-normal when the quantity is positive, the logarithm looks symmetric, and the process is multiplicative. Do not use it when the data have many exact zeros, or when the tail is heavier than the log-normal allows. In those cases a gamma or Pareto distribution may fit better. A normal model is simpler, but it can give negative values for quantities that cannot be negative.

History

The normal curve itself dates to the work of Abraham de Moivre in the 1730s and 1740s, on the approximation of binomial probabilities. Pierre-Simon Laplace and Carl Friedrich Gauss later developed it further, which is why it is also called the Gaussian.

The log-normal grew out of the idea that a quantity made by many random multiplicative effects should be log-normal. In 1931 the French economist Robert Gibrat proposed that firm growth is proportional and random, which produces log-normal firm sizes. The idea spread into engineering and the natural sciences, where it describes many measured sizes and signal strengths.

Recap

  • A log-normal variable XX has ln⁡X\ln X normal with mean μ\mu and standard deviation σ\sigma.
  • It is always positive, and its distribution is right-skewed.
  • Its median is eμe^{\mu}, and its mean is eμ+σ2/2e^{\mu + \sigma^2/2}.
  • It arises when many random multiplicative factors act on a quantity.
  • To see it used in a real model, read Shadow Fading, which applies the log-normal to signal strength.

Check yourself

QuestionRecall: if ln⁡X\ln X is normal with mean μ\mu, what is the median of XX?Show answer

The median is eμe^{\mu}, because the median of ln⁡X\ln X is μ\mu, and the exponential maps the median of the log to the median of XX.

QuestionComputation: let ln⁡X\ln X be normal with μ=1\mu = 1 and σ=0.5\sigma = 0.5. What is the median of XX, and what is the mean?Show answer

The median is e1≈2.718e^{1} \approx 2.718. The mean is e1+0.52/2=e1.125≈3.080e^{1 + 0.5^2/2} = e^{1.125} \approx 3.080.

QuestionWhy: why is the mean of a log-normal larger than its median?Show answer

The log-normal is right-skewed. A few large values pull the average upward, while half the probability lies below the median. The gap is the factor eσ2/2e^{\sigma^2/2}, which is greater than 1 whenever σ>0\sigma \gt 0.

QuestionApplied: a company models daily sales as log-normal. Its manager reads the parameter μ\mu as the average daily sales. Is that right?Show answer

No. The parameter μ\mu is the mean of the log of sales, so eμe^{\mu} is the median of sales. The average sales is eμ+σ2/2e^{\mu + \sigma^2/2}, which is larger. The manager should use the mean formula for the average and the median for a typical day.

Sources