- Source: Log-normal distribution
- Logaritma
- Statistika
- Ilmu aktuaria
- Bakteri
- Variabel acak
- Integral Gauss
- Statistika matematika
- Radon
- Hipotesis Riemann
- Koi... Mil Gaya
- Log-normal distribution
- Normal distribution
- Generalized normal distribution
- Log-logistic distribution
- List of probability distributions
- Skew normal distribution
- Half-normal distribution
- Reference range
- Benford's law
- Geometric standard deviation
How to Train Your Dragon: Snoggletog Log (2019)
Ghostbusters II (1989)
Artikel: Log-normal distribution GudangMovies21 Rebahinxxi
In probability theory, a log-normal (or lognormal) distribution is a continuous probability distribution of a random variable whose logarithm is normally distributed. Thus, if the random variable X is log-normally distributed, then Y = ln(X) has a normal distribution. Equivalently, if Y has a normal distribution, then the exponential function of Y, X = exp(Y) , has a log-normal distribution. A random variable which is log-normally distributed takes only positive real values. It is a convenient and useful model for measurements in exact and engineering sciences, as well as medicine, economics and other topics (e.g., energies, concentrations, lengths, prices of financial instruments, and other metrics).
The distribution is occasionally referred to as the Galton distribution or Galton's distribution, after Francis Galton. The log-normal distribution has also been associated with other names, such as McAlister, Gibrat and Cobb–Douglas.
A log-normal process is the statistical realization of the multiplicative product of many independent random variables, each of which is positive. This is justified by considering the central limit theorem in the log domain (sometimes called Gibrat's law). The log-normal distribution is the maximum entropy probability distribution for a random variate X—for which the mean and variance of ln(X) are specified.
Definitions
= Generation and parameters
=Let
Z
{\displaystyle \ Z\ }
be a standard normal variable, and let
μ
{\displaystyle \mu }
and
σ
{\displaystyle \sigma }
be two real numbers, with
σ
>
0
{\displaystyle \sigma >0}
. Then, the distribution of the random variable
X
=
e
μ
+
σ
Z
{\displaystyle X=e^{\mu +\sigma Z}}
is called the log-normal distribution with parameters
μ
{\displaystyle \mu }
and
σ
{\displaystyle \sigma }
. These are the expected value (or mean) and standard deviation of the variable's natural logarithm,
ln
(
X
)
{\displaystyle \ln(X)}
, not the expectation and standard deviation of
X
{\displaystyle \ X\ }
itself.
This relationship is true regardless of the base of the logarithmic or exponential function: If
log
a
(
X
)
{\displaystyle \ \log _{a}(X)\ }
is normally distributed, then so is
log
b
(
X
)
{\displaystyle \ \log _{b}(X)\ }
for any two positive numbers
a
,
b
≠
1
.
{\displaystyle \ a,b\neq 1~.}
Likewise, if
e
Y
{\displaystyle \ e^{Y}\ }
is log-normally distributed, then so is
a
Y
,
{\displaystyle \ a^{Y}\ ,}
where
0
<
a
≠
1
{\displaystyle 0
.
In order to produce a distribution with desired mean
μ
X
{\displaystyle \mu _{X}}
and variance
σ
X
2
,
{\displaystyle \ \sigma _{X}^{2}\ ,}
one uses
μ
=
ln
(
μ
X
2
μ
X
2
+
σ
X
2
)
{\displaystyle \ \mu =\ln \left({\frac {\mu _{X}^{2}}{\ {\sqrt {\mu _{X}^{2}+\sigma _{X}^{2}\ }}\ }}\right)\ }
and
σ
2
=
ln
(
1
+
σ
X
2
μ
X
2
)
.
{\displaystyle \ \sigma ^{2}=\ln \left(1+{\frac {\ \sigma _{X}^{2}\ }{\mu _{X}^{2}}}\right)~.}
Alternatively, the "multiplicative" or "geometric" parameters
μ
∗
=
e
μ
{\displaystyle \ \mu ^{*}=e^{\mu }\ }
and
σ
∗
=
e
σ
{\displaystyle \ \sigma ^{*}=e^{\sigma }\ }
can be used. They have a more direct interpretation:
μ
∗
{\displaystyle \ \mu ^{*}\ }
is the median of the distribution, and
σ
∗
{\displaystyle \ \sigma ^{*}\ }
is useful for determining "scatter" intervals, see below.
= Probability density function
=A positive random variable
X
{\displaystyle \ X\ }
is log-normally distributed (i.e.,
X
∼
Lognormal
(
μ
,
σ
2
)
{\displaystyle \ X\sim \operatorname {Lognormal} \left(\ \mu ,\sigma ^{2}\ \right)\ }
), if the natural logarithm of
X
{\displaystyle \ X\ }
is normally distributed with mean
μ
{\displaystyle \mu }
and variance
σ
2
:
{\displaystyle \ \sigma ^{2}\ :}
ln
(
X
)
∼
N
(
μ
,
σ
2
)
{\displaystyle \ln(X)\sim {\mathcal {N}}(\mu ,\sigma ^{2})}
Let
Φ
{\displaystyle \ \Phi \ }
and
φ
{\displaystyle \ \varphi \ }
be respectively the cumulative probability distribution function and the probability density function of the
N
(
0
,
1
)
{\displaystyle \ {\mathcal {N}}(\ 0,1\ )\ }
standard normal distribution, then we have that the probability density function of the log-normal distribution is given by:
f
X
(
x
)
=
d
d
x
P
X
[
X
≤
x
]
=
d
d
x
P
X
[
ln
X
≤
ln
x
]
=
d
d
x
Φ
(
ln
x
−
μ
σ
)
=
φ
(
ln
x
−
μ
σ
)
d
d
x
(
ln
x
−
μ
σ
)
=
φ
(
ln
x
−
μ
σ
)
1
σ
x
=
1
x
σ
2
π
exp
(
−
(
ln
x
−
μ
)
2
2
σ
2
)
.
{\displaystyle {\begin{aligned}f_{X}(x)&={\frac {\rm {d}}{{\rm {d}}x}}\ \operatorname {\mathbb {P} _{\mathit {X}}} \,\!{\bigl [}\ X\leq x\ {\bigr ]}\\[6pt]&={\frac {\rm {d}}{{\rm {d}}x}}\ \operatorname {\mathbb {P} _{\mathit {X}}} \,\!{\bigl [}\ \ln X\leq \ln x\ {\bigr ]}\\[6pt]&={\frac {\rm {d}}{{\rm {d}}x}}\operatorname {\Phi } \!\!\left({\frac {\ \ln x-\mu \ }{\sigma }}\right)\\[6pt]&=\operatorname {\varphi } \!\left({\frac {\ln x-\mu }{\sigma }}\right){\frac {\rm {d}}{{\rm {d}}x}}\left({\frac {\ \ln x-\mu \ }{\sigma }}\right)\\[6pt]&=\operatorname {\varphi } \!\left({\frac {\ \ln x-\mu \ }{\sigma }}\right){\frac {1}{\ \sigma \ x\ }}\\[6pt]&={\frac {1}{\ x\ \sigma {\sqrt {2\ \pi \ }}\ }}\exp \left(-{\frac {\ (\ln x-\mu )^{2}\ }{2\ \sigma ^{2}}}\right)~.\end{aligned}}}
= Cumulative distribution function
=The cumulative distribution function is
F
X
(
x
)
=
Φ
(
(
ln
x
)
−
μ
σ
)
{\displaystyle F_{X}(x)=\Phi \left({\frac {(\ln x)-\mu }{\sigma }}\right)}
where
Φ
{\displaystyle \ \Phi \ }
is the cumulative distribution function of the standard normal distribution (i.e.,
N
(
0
,
1
)
{\displaystyle \ \operatorname {\mathcal {N}} (\ 0,\ 1)\ }
).
This may also be expressed as follows:
1
2
[
1
+
erf
(
ln
x
−
μ
σ
2
)
]
=
1
2
erfc
(
−
ln
x
−
μ
σ
2
)
{\displaystyle {\frac {1}{2}}\left[1+\operatorname {erf} \left({\frac {\ln x-\mu }{\sigma {\sqrt {2}}}}\right)\right]={\frac {1}{2}}\operatorname {erfc} \left(-{\frac {\ln x-\mu }{\sigma {\sqrt {2}}}}\right)}
where erfc is the complementary error function.
= Multivariate log-normal
=If
X
∼
N
(
μ
,
Σ
)
{\displaystyle {\boldsymbol {X}}\sim {\mathcal {N}}({\boldsymbol {\mu }},\,{\boldsymbol {\Sigma }})}
is a multivariate normal distribution, then
Y
i
=
exp
(
X
i
)
{\displaystyle Y_{i}=\exp(X_{i})}
has a multivariate log-normal distribution. The exponential is applied elementwise to the random vector
X
{\displaystyle {\boldsymbol {X}}}
. The mean of
Y
{\displaystyle {\boldsymbol {Y}}}
is
E
[
Y
]
i
=
e
μ
i
+
1
2
Σ
i
i
,
{\displaystyle \operatorname {E} [{\boldsymbol {Y}}]_{i}=e^{\mu _{i}+{\frac {1}{2}}\Sigma _{ii}},}
and its covariance matrix is
Var
[
Y
]
i
j
=
e
μ
i
+
μ
j
+
1
2
(
Σ
i
i
+
Σ
j
j
)
(
e
Σ
i
j
−
1
)
.
{\displaystyle \operatorname {Var} [{\boldsymbol {Y}}]_{ij}=e^{\mu _{i}+\mu _{j}+{\frac {1}{2}}(\Sigma _{ii}+\Sigma _{jj})}(e^{\Sigma _{ij}}-1).}
Since the multivariate log-normal distribution is not widely used, the rest of this entry only deals with the univariate distribution.
= Characteristic function and moment generating function
=All moments of the log-normal distribution exist and
E
[
X
n
]
=
e
n
μ
+
n
2
σ
2
/
2
{\displaystyle \operatorname {E} [X^{n}]=e^{n\mu +n^{2}\sigma ^{2}/2}}
This can be derived by letting
z
=
ln
(
x
)
−
(
μ
+
n
σ
2
)
σ
{\displaystyle z={\tfrac {\ln(x)-(\mu +n\sigma ^{2})}{\sigma }}}
within the integral. However, the log-normal distribution is not determined by its moments. This implies that it cannot have a defined moment generating function in a neighborhood of zero. Indeed, the expected value
E
[
e
t
X
]
{\displaystyle \operatorname {E} [e^{tX}]}
is not defined for any positive value of the argument
t
{\displaystyle t}
, since the defining integral diverges.
The characteristic function
E
[
e
i
t
X
]
{\displaystyle \operatorname {E} [e^{itX}]}
is defined for real values of t, but is not defined for any complex value of t that has a negative imaginary part, and hence the characteristic function is not analytic at the origin. Consequently, the characteristic function of the log-normal distribution cannot be represented as an infinite convergent series. In particular, its Taylor formal series diverges:
∑
n
=
0
∞
(
i
t
)
n
n
!
e
n
μ
+
n
2
σ
2
/
2
{\displaystyle \sum _{n=0}^{\infty }{\frac {(it)^{n}}{n!}}e^{n\mu +n^{2}\sigma ^{2}/2}}
However, a number of alternative divergent series representations have been obtained.
A closed-form formula for the characteristic function
φ
(
t
)
{\displaystyle \varphi (t)}
with
t
{\displaystyle t}
in the domain of convergence is not known. A relatively simple approximating formula is available in closed form, and is given by
φ
(
t
)
≈
exp
(
−
W
2
(
−
i
t
σ
2
e
μ
)
+
2
W
(
−
i
t
σ
2
e
μ
)
2
σ
2
)
1
+
W
(
−
i
t
σ
2
e
μ
)
{\displaystyle \varphi (t)\approx {\frac {\exp \left(-{\frac {W^{2}(-it\sigma ^{2}e^{\mu })+2W(-it\sigma ^{2}e^{\mu })}{2\sigma ^{2}}}\right)}{\sqrt {1+W(-it\sigma ^{2}e^{\mu })}}}}
where
W
{\displaystyle W}
is the Lambert W function. This approximation is derived via an asymptotic method, but it stays sharp all over the domain of convergence of
φ
{\displaystyle \varphi }
.
Properties
= Probability in different domains
=The probability content of a log-normal distribution in any arbitrary domain can be computed to desired precision by first transforming the variable to normal, then numerically integrating using the ray-trace method. (Matlab code)
= Probabilities of functions of a log-normal variable
=Since the probability of a log-normal can be computed in any domain, this means that the cdf (and consequently pdf and inverse cdf) of any function of a log-normal variable can also be computed. (Matlab code)
= Geometric or multiplicative moments
=The geometric or multiplicative mean of the log-normal distribution is
GM
[
X
]
=
e
μ
=
μ
∗
{\displaystyle \operatorname {GM} [X]=e^{\mu }=\mu ^{*}}
. It equals the median. The geometric or multiplicative standard deviation is
GSD
[
X
]
=
e
σ
=
σ
∗
{\displaystyle \operatorname {GSD} [X]=e^{\sigma }=\sigma ^{*}}
.
By analogy with the arithmetic statistics, one can define a geometric variance,
GVar
[
X
]
=
e
σ
2
{\displaystyle \operatorname {GVar} [X]=e^{\sigma ^{2}}}
, and a geometric coefficient of variation,
GCV
[
X
]
=
e
σ
−
1
{\displaystyle \operatorname {GCV} [X]=e^{\sigma }-1}
, has been proposed. This term was intended to be analogous to the coefficient of variation, for describing multiplicative variation in log-normal data, but this definition of GCV has no theoretical basis as an estimate of
CV
{\displaystyle \operatorname {CV} }
itself (see also Coefficient of variation).
Note that the geometric mean is smaller than the arithmetic mean. This is due to the AM–GM inequality and is a consequence of the logarithm being a concave function. In fact,
E
[
X
]
=
e
μ
+
1
2
σ
2
=
e
μ
⋅
e
σ
2
=
GM
[
X
]
⋅
GVar
[
X
]
.
{\displaystyle \operatorname {E} [X]=e^{\mu +{\frac {1}{2}}\sigma ^{2}}=e^{\mu }\cdot {\sqrt {e^{\sigma ^{2}}}}=\operatorname {GM} [X]\cdot {\sqrt {\operatorname {GVar} [X]}}.}
In finance, the term
e
−
1
2
σ
2
{\displaystyle e^{-{\frac {1}{2}}\sigma ^{2}}}
is sometimes interpreted as a convexity correction. From the point of view of stochastic calculus, this is the same correction term as in Itō's lemma for geometric Brownian motion.
= Arithmetic moments
=For any real or complex number n, the n-th moment of a log-normally distributed variable X is given by
E
[
X
n
]
=
e
n
μ
+
1
2
n
2
σ
2
.
{\displaystyle \operatorname {E} [X^{n}]=e^{n\mu +{\frac {1}{2}}n^{2}\sigma ^{2}}.}
Specifically, the arithmetic mean, expected square, arithmetic variance, and arithmetic standard deviation of a log-normally distributed variable X are respectively given by:
E
[
X
]
=
e
μ
+
1
2
σ
2
,
E
[
X
2
]
=
e
2
μ
+
2
σ
2
,
Var
[
X
]
=
E
[
X
2
]
−
E
[
X
]
2
=
(
E
[
X
]
)
2
(
e
σ
2
−
1
)
=
e
2
μ
+
σ
2
(
e
σ
2
−
1
)
,
SD
[
X
]
=
Var
[
X
]
=
E
[
X
]
e
σ
2
−
1
=
e
μ
+
1
2
σ
2
e
σ
2
−
1
,
{\displaystyle {\begin{aligned}\operatorname {E} [X]&=e^{\mu +{\tfrac {1}{2}}\sigma ^{2}},\\[4pt]\operatorname {E} [X^{2}]&=e^{2\mu +2\sigma ^{2}},\\[4pt]\operatorname {Var} [X]&=\operatorname {E} [X^{2}]-\operatorname {E} [X]^{2}=(\operatorname {E} [X])^{2}(e^{\sigma ^{2}}-1)=e^{2\mu +\sigma ^{2}}(e^{\sigma ^{2}}-1),\\[4pt]\operatorname {SD} [X]&={\sqrt {\operatorname {Var} [X]}}=\operatorname {E} [X]{\sqrt {e^{\sigma ^{2}}-1}}=e^{\mu +{\tfrac {1}{2}}\sigma ^{2}}{\sqrt {e^{\sigma ^{2}}-1}},\end{aligned}}}
The arithmetic coefficient of variation
CV
[
X
]
{\displaystyle \operatorname {CV} [X]}
is the ratio
SD
[
X
]
E
[
X
]
{\displaystyle {\tfrac {\operatorname {SD} [X]}{\operatorname {E} [X]}}}
. For a log-normal distribution it is equal to
CV
[
X
]
=
e
σ
2
−
1
.
{\displaystyle \operatorname {CV} [X]={\sqrt {e^{\sigma ^{2}}-1}}.}
This estimate is sometimes referred to as the "geometric CV" (GCV), due to its use of the geometric variance. Contrary to the arithmetic standard deviation, the arithmetic coefficient of variation is independent of the arithmetic mean.
The parameters μ and σ can be obtained, if the arithmetic mean and the arithmetic variance are known:
μ
=
ln
(
E
[
X
]
2
E
[
X
2
]
)
=
ln
(
E
[
X
]
2
Var
[
X
]
+
E
[
X
]
2
)
,
σ
2
=
ln
(
E
[
X
2
]
E
[
X
]
2
)
=
ln
(
1
+
Var
[
X
]
E
[
X
]
2
)
.
{\displaystyle {\begin{aligned}\mu &=\ln \left({\frac {\operatorname {E} [X]^{2}}{\sqrt {\operatorname {E} [X^{2}]}}}\right)=\ln \left({\frac {\operatorname {E} [X]^{2}}{\sqrt {\operatorname {Var} [X]+\operatorname {E} [X]^{2}}}}\right),\\[4pt]\sigma ^{2}&=\ln \left({\frac {\operatorname {E} [X^{2}]}{\operatorname {E} [X]^{2}}}\right)=\ln \left(1+{\frac {\operatorname {Var} [X]}{\operatorname {E} [X]^{2}}}\right).\end{aligned}}}
A probability distribution is not uniquely determined by the moments E[Xn] = enμ + 1/2n2σ2 for n ≥ 1. That is, there exist other distributions with the same set of moments. In fact, there is a whole family of distributions with the same moments as the log-normal distribution.
= Mode, median, quantiles
=The mode is the point of global maximum of the probability density function. In particular, by solving the equation
(
ln
f
)
′
=
0
{\displaystyle (\ln f)'=0}
, we get that:
Mode
[
X
]
=
e
μ
−
σ
2
.
{\displaystyle \operatorname {Mode} [X]=e^{\mu -\sigma ^{2}}.}
Since the log-transformed variable
Y
=
ln
X
{\displaystyle Y=\ln X}
has a normal distribution, and quantiles are preserved under monotonic transformations, the quantiles of
X
{\displaystyle X}
are
q
X
(
α
)
=
e
μ
+
σ
q
Φ
(
α
)
=
μ
∗
(
σ
∗
)
q
Φ
(
α
)
,
{\displaystyle q_{X}(\alpha )=e^{\mu +\sigma q_{\Phi }(\alpha )}=\mu ^{*}(\sigma ^{*})^{q_{\Phi }(\alpha )},}
where
q
Φ
(
α
)
{\displaystyle q_{\Phi }(\alpha )}
is the quantile of the standard normal distribution.
Specifically, the median of a log-normal distribution is equal to its multiplicative mean,
Med
[
X
]
=
e
μ
=
μ
∗
.
{\displaystyle \operatorname {Med} [X]=e^{\mu }=\mu ^{*}~.}
= Partial expectation
=The partial expectation of a random variable
X
{\displaystyle X}
with respect to a threshold
k
{\displaystyle k}
is defined as
g
(
k
)
=
∫
k
∞
x
f
X
(
x
∣
X
>
k
)
d
x
.
{\displaystyle g(k)=\int _{k}^{\infty }xf_{X}(x\mid X>k)\,dx.}
Alternatively, by using the definition of conditional expectation, it can be written as
g
(
k
)
=
E
[
X
∣
X
>
k
]
P
(
X
>
k
)
{\displaystyle g(k)=\operatorname {E} [X\mid X>k]P(X>k)}
. For a log-normal random variable, the partial expectation is given by:
g
(
k
)
=
∫
k
∞
x
f
X
(
x
∣
X
>
k
)
d
x
=
e
μ
+
1
2
σ
2
Φ
(
μ
+
σ
2
−
ln
k
σ
)
{\displaystyle g(k)=\int _{k}^{\infty }xf_{X}(x\mid X>k)\,dx=e^{\mu +{\tfrac {1}{2}}\sigma ^{2}}\,\Phi \!\left({\frac {\mu +\sigma ^{2}-\ln k}{\sigma }}\right)}
where
Φ
{\displaystyle \Phi }
is the normal cumulative distribution function. The derivation of the formula is provided in the Talk page. The partial expectation formula has applications in insurance and economics, it is used in solving the partial differential equation leading to the Black–Scholes formula.
= Conditional expectation
=The conditional expectation of a log-normal random variable
X
{\displaystyle X}
—with respect to a threshold
k
{\displaystyle k}
—is its partial expectation divided by the cumulative probability of being in that range:
E
[
X
∣
X
<
k
]
=
e
μ
+
σ
2
2
⋅
Φ
[
ln
(
k
)
−
μ
−
σ
2
σ
]
Φ
[
ln
(
k
)
−
μ
σ
]
E
[
X
∣
X
⩾
k
]
=
e
μ
+
σ
2
2
⋅
Φ
[
μ
+
σ
2
−
ln
(
k
)
σ
]
1
−
Φ
[
ln
(
k
)
−
μ
σ
]
E
[
X
∣
X
∈
[
k
1
,
k
2
]
]
=
e
μ
+
σ
2
2
⋅
Φ
[
ln
(
k
2
)
−
μ
−
σ
2
σ
]
−
Φ
[
ln
(
k
1
)
−
μ
−
σ
2
σ
]
Φ
[
ln
(
k
2
)
−
μ
σ
]
−
Φ
[
ln
(
k
1
)
−
μ
σ
]
{\displaystyle {\begin{aligned}E[X\mid X
= Alternative parameterizations
=In addition to the characterization by
μ
,
σ
{\displaystyle \mu ,\sigma }
or
μ
∗
,
σ
∗
{\displaystyle \mu ^{*},\sigma ^{*}}
, here are multiple ways how the log-normal distribution can be parameterized. ProbOnto, the knowledge base and ontology of probability distributions lists seven such forms:
LogNormal1(μ,σ) with mean, μ, and standard deviation, σ, both on the log-scale
P
(
x
;
μ
,
σ
)
=
1
x
σ
2
π
exp
[
−
(
ln
x
−
μ
)
2
2
σ
2
]
{\displaystyle P(x;{\boldsymbol {\mu }},{\boldsymbol {\sigma }})={\frac {1}{x\sigma {\sqrt {2\pi }}}}\exp \left[-{\frac {(\ln x-\mu )^{2}}{2\sigma ^{2}}}\right]}
LogNormal2(μ,υ) with mean, μ, and variance, υ, both on the log-scale
P
(
x
;
μ
,
v
)
=
1
x
v
2
π
exp
[
−
(
ln
x
−
μ
)
2
2
v
]
{\displaystyle P(x;{\boldsymbol {\mu }},{\boldsymbol {v}})={\frac {1}{x{\sqrt {v}}{\sqrt {2\pi }}}}\exp \left[-{\frac {(\ln x-\mu )^{2}}{2v}}\right]}
LogNormal3(m,σ) with median, m, on the natural scale and standard deviation, σ, on the log-scale
P
(
x
;
m
,
σ
)
=
1
x
σ
2
π
exp
[
−
ln
2
(
x
/
m
)
2
σ
2
]
{\displaystyle P(x;{\boldsymbol {m}},{\boldsymbol {\sigma }})={\frac {1}{x\sigma {\sqrt {2\pi }}}}\exp \left[-{\frac {\ln ^{2}(x/m)}{2\sigma ^{2}}}\right]}
LogNormal4(m,cv) with median, m, and coefficient of variation, cv, both on the natural scale
P
(
x
;
m
,
c
v
)
=
1
x
ln
(
c
v
2
+
1
)
2
π
exp
[
−
ln
2
(
x
/
m
)
2
ln
(
c
v
2
+
1
)
]
{\displaystyle P(x;{\boldsymbol {m}},{\boldsymbol {cv}})={\frac {1}{x{\sqrt {\ln(cv^{2}+1)}}{\sqrt {2\pi }}}}\exp \left[-{\frac {\ln ^{2}(x/m)}{2\ln(cv^{2}+1)}}\right]}
LogNormal5(μ,τ) with mean, μ, and precision, τ, both on the log-scale
P
(
x
;
μ
,
τ
)
=
τ
2
π
1
x
exp
[
−
τ
2
(
ln
x
−
μ
)
2
]
{\displaystyle P(x;{\boldsymbol {\mu }},{\boldsymbol {\tau }})={\sqrt {\frac {\tau }{2\pi }}}{\frac {1}{x}}\exp \left[-{\frac {\tau }{2}}(\ln x-\mu )^{2}\right]}
LogNormal6(m,σg) with median, m, and geometric standard deviation, σg, both on the natural scale
P
(
x
;
m
,
σ
g
)
=
1
x
ln
(
σ
g
)
2
π
exp
[
−
ln
2
(
x
/
m
)
2
ln
2
(
σ
g
)
]
{\displaystyle P(x;{\boldsymbol {m}},{\boldsymbol {\sigma _{g}}})={\frac {1}{x\ln(\sigma _{g}){\sqrt {2\pi }}}}\exp \left[-{\frac {\ln ^{2}(x/m)}{2\ln ^{2}(\sigma _{g})}}\right]}
LogNormal7(μN,σN) with mean, μN, and standard deviation, σN, both on the natural scale
P
(
x
;
μ
N
,
σ
N
)
=
1
x
2
π
ln
(
1
+
σ
N
2
/
μ
N
2
)
exp
(
−
[
ln
x
−
ln
μ
N
1
+
σ
N
2
/
μ
N
2
]
2
2
ln
(
1
+
σ
N
2
/
μ
N
2
)
)
{\displaystyle P(x;{\boldsymbol {\mu _{N}}},{\boldsymbol {\sigma _{N}}})={\frac {1}{x{\sqrt {2\pi \ln \left(1+\sigma _{N}^{2}/\mu _{N}^{2}\right)}}}}\exp \left(-{\frac {{\Big [}\ln x-\ln {\frac {\mu _{N}}{\sqrt {1+\sigma _{N}^{2}/\mu _{N}^{2}}}}{\Big ]}^{2}}{2\ln(1+\sigma _{N}^{2}/\mu _{N}^{2})}}\right)}
Examples for re-parameterization
Consider the situation when one would like to run a model using two different optimal design tools, for example PFIM and PopED. The former supports the LN2, the latter LN7 parameterization, respectively. Therefore, the re-parameterization is required, otherwise the two tools would produce different results.
For the transition
LN2
(
μ
,
v
)
→
LN7
(
μ
N
,
σ
N
)
{\displaystyle \operatorname {LN2} (\mu ,v)\to \operatorname {LN7} (\mu _{N},\sigma _{N})}
following formulas hold
μ
N
=
exp
(
μ
+
v
/
2
)
{\textstyle \mu _{N}=\exp(\mu +v/2)}
and
σ
N
=
exp
(
μ
+
v
/
2
)
exp
(
v
)
−
1
{\textstyle \sigma _{N}=\exp(\mu +v/2){\sqrt {\exp(v)-1}}}
.
For the transition
LN7
(
μ
N
,
σ
N
)
→
LN2
(
μ
,
v
)
{\displaystyle \operatorname {LN7} (\mu _{N},\sigma _{N})\to \operatorname {LN2} (\mu ,v)}
following formulas hold
μ
=
ln
(
μ
N
/
1
+
σ
N
2
/
μ
N
2
)
{\textstyle \mu =\ln \left(\mu _{N}/{\sqrt {1+\sigma _{N}^{2}/\mu _{N}^{2}}}\right)}
and
v
=
ln
(
1
+
σ
N
2
/
μ
N
2
)
{\textstyle v=\ln(1+\sigma _{N}^{2}/\mu _{N}^{2})}
.
All remaining re-parameterisation formulas can be found in the specification document on the project website.
= Multiple, reciprocal, power
=Multiplication by a constant: If
X
∼
Lognormal
(
μ
,
σ
2
)
{\displaystyle X\sim \operatorname {Lognormal} (\mu ,\sigma ^{2})}
then
a
X
∼
Lognormal
(
μ
+
ln
a
,
σ
2
)
{\displaystyle aX\sim \operatorname {Lognormal} (\mu +\ln a,\ \sigma ^{2})}
for
a
>
0.
{\displaystyle a>0.}
Reciprocal: If
X
∼
Lognormal
(
μ
,
σ
2
)
{\displaystyle X\sim \operatorname {Lognormal} (\mu ,\sigma ^{2})}
then
1
X
∼
Lognormal
(
−
μ
,
σ
2
)
.
{\displaystyle {\tfrac {1}{X}}\sim \operatorname {Lognormal} (-\mu ,\ \sigma ^{2}).}
Power: If
X
∼
Lognormal
(
μ
,
σ
2
)
{\displaystyle X\sim \operatorname {Lognormal} (\mu ,\sigma ^{2})}
then
X
a
∼
Lognormal
(
a
μ
,
a
2
σ
2
)
{\displaystyle X^{a}\sim \operatorname {Lognormal} (a\mu ,\ a^{2}\sigma ^{2})}
for
a
≠
0.
{\displaystyle a\neq 0.}
= Multiplication and division of independent, log-normal random variables
=If two independent, log-normal variables
X
1
{\displaystyle X_{1}}
and
X
2
{\displaystyle X_{2}}
are multiplied [divided], the product [ratio] is again log-normal, with parameters
μ
=
μ
1
+
μ
2
{\displaystyle \mu =\mu _{1}+\mu _{2}}
[
μ
=
μ
1
−
μ
2
{\displaystyle \mu =\mu _{1}-\mu _{2}}
] and
σ
{\displaystyle \sigma }
, where
σ
2
=
σ
1
2
+
σ
2
2
{\displaystyle \sigma ^{2}=\sigma _{1}^{2}+\sigma _{2}^{2}}
.
More generally, if
X
j
∼
Lognormal
(
μ
j
,
σ
j
2
)
{\displaystyle X_{j}\sim \operatorname {Lognormal} (\mu _{j},\sigma _{j}^{2})}
are
n
{\displaystyle n}
independent, log-normally distributed variables, then
Y
=
∏
j
=
1
n
X
j
∼
Lognormal
(
∑
j
=
1
n
μ
j
,
∑
j
=
1
n
σ
j
2
)
.
{\displaystyle Y=\textstyle \prod _{j=1}^{n}X_{j}\sim \operatorname {Lognormal} {\Big (}\textstyle \sum _{j=1}^{n}\mu _{j},\ \sum _{j=1}^{n}\sigma _{j}^{2}{\Big )}.}
= Multiplicative central limit theorem
=The geometric or multiplicative mean of
n
{\displaystyle n}
independent, identically distributed, positive random variables
X
i
{\displaystyle X_{i}}
shows, for
n
→
∞
{\displaystyle n\to \infty }
, approximately a log-normal distribution with parameters
μ
=
E
[
ln
(
X
i
)
]
{\displaystyle \mu =E[\ln(X_{i})]}
and
σ
2
=
var
[
ln
(
X
i
)
]
/
n
{\displaystyle \sigma ^{2}={\mbox{var}}[\ln(X_{i})]/n}
, assuming
σ
2
{\displaystyle \sigma ^{2}}
is finite.
In fact, the random variables do not have to be identically distributed. It is enough for the distributions of
ln
(
X
i
)
{\displaystyle \ln(X_{i})}
to all have finite variance and satisfy the other conditions of any of the many variants of the central limit theorem.
This is commonly known as Gibrat's law.
= Heavy-tailness of the Log-Normal
=Whether a Log-Normal can be considered or not a true heavy-tail distribution is still debated. The main reason is that its variance is always finite, differently from what happen with certain Pareto distributions, for instance. However a recent study has shown how it is possible to create a Log-Normal distribution with infinite variance using Robinson Non-Standard Analysis.
= Other
=A set of data that arises from the log-normal distribution has a symmetric Lorenz curve (see also Lorenz asymmetry coefficient).
The harmonic
H
{\displaystyle H}
, geometric
G
{\displaystyle G}
and arithmetic
A
{\displaystyle A}
means of this distribution are related; such relation is given by
H
=
G
2
A
.
{\displaystyle H={\frac {G^{2}}{A}}.}
Log-normal distributions are infinitely divisible, but they are not stable distributions, which can be easily drawn from.
Related distributions
If
X
∼
N
(
μ
,
σ
2
)
{\displaystyle X\sim {\mathcal {N}}(\mu ,\sigma ^{2})}
is a normal distribution, then
exp
(
X
)
∼
Lognormal
(
μ
,
σ
2
)
.
{\displaystyle \exp(X)\sim \operatorname {Lognormal} (\mu ,\sigma ^{2}).}
If
X
∼
Lognormal
(
μ
,
σ
2
)
{\displaystyle X\sim \operatorname {Lognormal} (\mu ,\sigma ^{2})}
is distributed log-normally, then
ln
(
X
)
∼
N
(
μ
,
σ
2
)
{\displaystyle \ln(X)\sim {\mathcal {N}}(\mu ,\sigma ^{2})}
is a normal random variable.
Let
X
j
∼
Lognormal
(
μ
j
,
σ
j
2
)
{\displaystyle X_{j}\sim \operatorname {Lognormal} (\mu _{j},\sigma _{j}^{2})}
be independent log-normally distributed variables with possibly varying
σ
{\displaystyle \sigma }
and
μ
{\displaystyle \mu }
parameters, and
Y
=
∑
j
=
1
n
X
j
{\textstyle Y=\sum _{j=1}^{n}X_{j}}
. The distribution of
Y
{\displaystyle Y}
has no closed-form expression, but can be reasonably approximated by another log-normal distribution
Z
{\displaystyle Z}
at the right tail. Its probability density function at the neighborhood of 0 has been characterized and it does not resemble any log-normal distribution. A commonly used approximation due to L.F. Fenton (but previously stated by R.I. Wilkinson and mathematically justified by Marlow) is obtained by matching the mean and variance of another log-normal distribution:
σ
Z
2
=
ln
[
∑
e
2
μ
j
+
σ
j
2
(
e
σ
j
2
−
1
)
(
∑
e
μ
j
+
σ
j
2
/
2
)
2
+
1
]
,
μ
Z
=
ln
[
∑
e
μ
j
+
σ
j
2
/
2
]
−
σ
Z
2
2
.
{\displaystyle {\begin{aligned}\sigma _{Z}^{2}&=\ln \!\left[{\frac {\sum e^{2\mu _{j}+\sigma _{j}^{2}}(e^{\sigma _{j}^{2}}-1)}{(\sum e^{\mu _{j}+\sigma _{j}^{2}/2})^{2}}}+1\right],\\\mu _{Z}&=\ln \!\left[\sum e^{\mu _{j}+\sigma _{j}^{2}/2}\right]-{\frac {\sigma _{Z}^{2}}{2}}.\end{aligned}}}
In the case that all
X
j
{\displaystyle X_{j}}
have the same variance parameter
σ
j
=
σ
{\displaystyle \sigma _{j}=\sigma }
, these formulas simplify to
σ
Z
2
=
ln
[
(
e
σ
2
−
1
)
∑
e
2
μ
j
(
∑
e
μ
j
)
2
+
1
]
,
μ
Z
=
ln
[
∑
e
μ
j
]
+
σ
2
2
−
σ
Z
2
2
.
{\displaystyle {\begin{aligned}\sigma _{Z}^{2}&=\ln \!\left[(e^{\sigma ^{2}}-1){\frac {\sum e^{2\mu _{j}}}{(\sum e^{\mu _{j}})^{2}}}+1\right],\\\mu _{Z}&=\ln \!\left[\sum e^{\mu _{j}}\right]+{\frac {\sigma ^{2}}{2}}-{\frac {\sigma _{Z}^{2}}{2}}.\end{aligned}}}
For a more accurate approximation, one can use the Monte Carlo method to estimate the cumulative distribution function, the pdf and the right tail.
The sum of correlated log-normally distributed random variables can also be approximated by a log-normal distribution
S
+
=
E
[
∑
i
X
i
]
=
∑
i
E
[
X
i
]
=
∑
i
e
μ
i
+
σ
i
2
/
2
σ
Z
2
=
1
/
S
+
2
∑
i
,
j
cor
i
j
σ
i
σ
j
E
[
X
i
]
E
[
X
j
]
=
1
/
S
+
2
∑
i
,
j
cor
i
j
σ
i
σ
j
e
μ
i
+
σ
i
2
/
2
e
μ
j
+
σ
j
2
/
2
μ
Z
=
ln
(
S
+
)
−
σ
Z
2
/
2
{\displaystyle {\begin{aligned}S_{+}&=\operatorname {E} \left[\sum _{i}X_{i}\right]=\sum _{i}\operatorname {E} [X_{i}]=\sum _{i}e^{\mu _{i}+\sigma _{i}^{2}/2}\\\sigma _{Z}^{2}&=1/S_{+}^{2}\,\sum _{i,j}\operatorname {cor} _{ij}\sigma _{i}\sigma _{j}\operatorname {E} [X_{i}]\operatorname {E} [X_{j}]=1/S_{+}^{2}\,\sum _{i,j}\operatorname {cor} _{ij}\sigma _{i}\sigma _{j}e^{\mu _{i}+\sigma _{i}^{2}/2}e^{\mu _{j}+\sigma _{j}^{2}/2}\\\mu _{Z}&=\ln \left(S_{+}\right)-\sigma _{Z}^{2}/2\end{aligned}}}
If
X
∼
Lognormal
(
μ
,
σ
2
)
{\displaystyle X\sim \operatorname {Lognormal} (\mu ,\sigma ^{2})}
then
X
+
c
{\displaystyle X+c}
is said to have a Three-parameter log-normal distribution with support
x
∈
(
c
,
+
∞
)
{\displaystyle x\in (c,+\infty )}
.
E
[
X
+
c
]
=
E
[
X
]
+
c
{\displaystyle \operatorname {E} [X+c]=\operatorname {E} [X]+c}
,
Var
[
X
+
c
]
=
Var
[
X
]
{\displaystyle \operatorname {Var} [X+c]=\operatorname {Var} [X]}
.
The log-normal distribution is a special case of the semi-bounded Johnson's SU-distribution.
If
X
∣
Y
∼
Rayleigh
(
Y
)
{\displaystyle X\mid Y\sim \operatorname {Rayleigh} (Y)}
with
Y
∼
Lognormal
(
μ
,
σ
2
)
{\displaystyle Y\sim \operatorname {Lognormal} (\mu ,\sigma ^{2})}
, then
X
∼
Suzuki
(
μ
,
σ
)
{\displaystyle X\sim \operatorname {Suzuki} (\mu ,\sigma )}
(Suzuki distribution).
A substitute for the log-normal whose integral can be expressed in terms of more elementary functions can be obtained based on the logistic distribution to get an approximation for the CDF
F
(
x
;
μ
,
σ
)
=
[
(
e
μ
x
)
π
/
(
σ
3
)
+
1
]
−
1
.
{\displaystyle F(x;\mu ,\sigma )=\left[\left({\frac {e^{\mu }}{x}}\right)^{\pi /(\sigma {\sqrt {3}})}+1\right]^{-1}.}
This is a log-logistic distribution.
Statistical inference
= Estimation of parameters
=Maximum likelihood estimator
For determining the maximum likelihood estimators of the log-normal distribution parameters μ and σ, we can use the same procedure as for the normal distribution. Note that
L
(
μ
,
σ
)
=
∏
i
=
1
n
1
x
i
φ
μ
,
σ
(
ln
x
i
)
,
{\displaystyle L(\mu ,\sigma )=\prod _{i=1}^{n}{\frac {1}{x_{i}}}\varphi _{\mu ,\sigma }(\ln x_{i}),}
where
φ
{\displaystyle \varphi }
is the density function of the normal distribution
N
(
μ
,
σ
2
)
{\displaystyle {\mathcal {N}}(\mu ,\sigma ^{2})}
. Therefore, the log-likelihood function is
ℓ
(
μ
,
σ
∣
x
1
,
x
2
,
…
,
x
n
)
=
−
∑
i
ln
x
i
+
ℓ
N
(
μ
,
σ
∣
ln
x
1
,
ln
x
2
,
…
,
ln
x
n
)
.
{\displaystyle \ell (\mu ,\sigma \mid x_{1},x_{2},\ldots ,x_{n})=-\sum _{i}\ln x_{i}+\ell _{N}(\mu ,\sigma \mid \ln x_{1},\ln x_{2},\dots ,\ln x_{n}).}
Since the first term is constant with regard to μ and σ, both logarithmic likelihood functions,
ℓ
{\displaystyle \ell }
and
ℓ
N
{\displaystyle \ell _{N}}
, reach their maximum with the same
μ
{\displaystyle \mu }
and
σ
{\displaystyle \sigma }
. Hence, the maximum likelihood estimators are identical to those for a normal distribution for the observations
ln
x
1
,
ln
x
2
,
…
,
ln
x
n
)
{\displaystyle \ln x_{1},\ln x_{2},\dots ,\ln x_{n})}
,
μ
^
=
∑
i
ln
x
i
n
,
σ
^
2
=
∑
i
(
ln
x
i
−
μ
^
)
2
n
.
{\displaystyle {\widehat {\mu }}={\frac {\sum _{i}\ln x_{i}}{n}},\qquad {\widehat {\sigma }}^{2}={\frac {\sum _{i}\left(\ln x_{i}-{\widehat {\mu }}\right)^{2}}{n}}.}
For finite n, the estimator for
μ
{\displaystyle \mu }
is unbiased, but the one for
σ
{\displaystyle \sigma }
is biased. As for the normal distribution, an unbiased estimator for
σ
{\displaystyle \sigma }
can be obtained by replacing the denominator n by n−1 in the equation for
σ
^
2
{\displaystyle {\widehat {\sigma }}^{2}}
.
From this, the MLE for the expectancy of x is:
θ
^
M
L
E
=
E
[
X
]
^
M
L
E
=
e
μ
^
+
σ
^
2
2
{\displaystyle {\widehat {\theta }}_{MLE}={\widehat {E[X]}}_{MLE}=e^{{\hat {\mu }}+{\frac {{\hat {\sigma }}^{2}}{2}}}}
Method of moments
When the individual values
x
1
,
x
2
,
…
,
x
n
{\displaystyle x_{1},x_{2},\ldots ,x_{n}}
are not available, but the sample's mean
x
¯
{\displaystyle {\bar {x}}}
and standard deviation s is, then the Method of moments can be used. The corresponding parameters are determined by the following formulas, obtained from solving the equations for the expectation
E
[
X
]
{\displaystyle \operatorname {E} [X]}
and variance
Var
[
X
]
{\displaystyle \operatorname {Var} [X]}
for
μ
{\displaystyle \mu }
and
σ
{\displaystyle \sigma }
:
μ
=
ln
(
x
¯
1
+
σ
^
2
/
x
¯
2
)
,
σ
2
=
ln
(
1
+
σ
^
2
/
x
¯
2
)
.
{\displaystyle \mu =\ln \left({\frac {\bar {x}}{\sqrt {1+{\widehat {\sigma }}^{2}/{\bar {x}}^{2}}}}\right),\qquad \sigma ^{2}=\ln \left(1+{{\widehat {\sigma }}^{2}}/{\bar {x}}^{2}\right).}
Other estimators
Other estimators also exists, such as Finney's UMVUE estimator, the "Approximately Minimum Mean Squared Error Estimator", the "Approximately Unbiased Estimator" and "Minimax Estimator", also "A Conditional Mean Squared Error Estimator", and other variations as well.
= Interval estimates
=The most efficient way to obtain interval estimates when analyzing log-normally distributed data consists of applying the well-known methods based on the normal distribution to logarithmically transformed data and then to back-transform results if appropriate.
Prediction intervals
A basic example is given by prediction intervals: For the normal distribution, the interval
[
μ
−
σ
,
μ
+
σ
]
{\displaystyle [\mu -\sigma ,\mu +\sigma ]}
contains approximately two thirds (68%) of the probability (or of a large sample), and
[
μ
−
2
σ
,
μ
+
2
σ
]
{\displaystyle [\mu -2\sigma ,\mu +2\sigma ]}
contain 95%. Therefore, for a log-normal distribution,
[
μ
∗
/
σ
∗
,
μ
∗
⋅
σ
∗
]
=
[
μ
∗
×
/
σ
∗
]
{\displaystyle [\mu ^{*}/\sigma ^{*},\mu ^{*}\cdot \sigma ^{*}]=[\mu ^{*}{}^{\times }\!\!/\sigma ^{*}]}
contains 2/3, and
[
μ
∗
/
(
σ
∗
)
2
,
μ
∗
⋅
(
σ
∗
)
2
]
=
[
μ
∗
×
/
(
σ
∗
)
2
]
{\displaystyle [\mu ^{*}/(\sigma ^{*})^{2},\mu ^{*}\cdot (\sigma ^{*})^{2}]=[\mu ^{*}{}^{\times }\!\!/(\sigma ^{*})^{2}]}
contains 95% of the probability. Using estimated parameters, then approximately the same percentages of the data should be contained in these intervals.
Confidence interval for eμ
Using the principle, note that a confidence interval for
μ
{\displaystyle \mu }
is
[
μ
^
±
q
⋅
s
e
^
]
{\displaystyle [{\widehat {\mu }}\pm q\cdot {\widehat {\mathop {se} }}]}
, where
s
e
=
σ
^
/
n
{\displaystyle \mathop {se} ={\widehat {\sigma }}/{\sqrt {n}}}
is the standard error and q is the 97.5% quantile of a t distribution with n-1 degrees of freedom. Back-transformation leads to a confidence interval for
μ
∗
=
e
μ
{\displaystyle \mu ^{*}=e^{\mu }}
(the median), is:
[
μ
^
∗
×
/
(
sem
∗
)
q
]
{\displaystyle [{\widehat {\mu }}^{*}{}^{\times }\!\!/(\operatorname {sem} ^{*})^{q}]}
with
sem
∗
=
(
σ
^
∗
)
1
/
n
{\displaystyle \operatorname {sem} ^{*}=({\widehat {\sigma }}^{*})^{1/{\sqrt {n}}}}
Confidence interval for E(X)
The literature discusses several options for calculating the confidence interval for
μ
{\displaystyle \mu }
(the mean of the log-normal distribution). These include bootstrap as well as various other methods.
The Cox Method proposes to plug-in the estimators
μ
^
=
∑
i
ln
x
i
n
,
S
2
=
∑
i
(
ln
x
i
−
μ
^
)
2
n
−
1
{\displaystyle {\widehat {\mu }}={\frac {\sum _{i}\ln x_{i}}{n}},\qquad S^{2}={\frac {\sum _{i}\left(\ln x_{i}-{\widehat {\mu }}\right)^{2}}{n-1}}}
and use them to construct approximate confidence intervals in the following way:
C
I
(
E
(
X
)
)
:
e
(
μ
^
+
S
2
2
±
z
1
−
α
2
S
2
n
+
S
4
2
(
n
−
1
)
)
{\displaystyle CI(E(X)):e^{\left({\hat {\mu }}+{\frac {S^{2}}{2}}\pm z_{1-{\frac {\alpha }{2}}}{\sqrt {{\frac {S^{2}}{n}}+{\frac {S^{4}}{2(n-1)}}}}\right)}}
Olsson 2005, proposed a "modified Cox method" by replacing
z
1
−
α
2
{\displaystyle z_{1-{\frac {\alpha }{2}}}}
with
t
n
−
1
,
1
−
α
2
{\displaystyle t_{n-1,1-{\frac {\alpha }{2}}}}
, which seemed to provide better coverage results for small sample sizes.: Section 3.4
Confidence interval for comparing two log normals
Comparing two log-normal distributions can often be of interest, for example, from a treatment and control group (e.g., in an A/B test). We have samples from two independent log-normal distributions with parameters
(
μ
1
,
σ
1
2
)
{\displaystyle (\mu _{1},\sigma _{1}^{2})}
and
(
μ
2
,
σ
2
2
)
{\displaystyle (\mu _{2},\sigma _{2}^{2})}
, with sample sizes
n
1
{\displaystyle n_{1}}
and
n
2
{\displaystyle n_{2}}
respectively.
Comparing the medians of the two can easily be done by taking the log from each and then constructing straightforward confidence intervals and transforming it back to the exponential scale.
C
I
(
e
μ
1
−
μ
2
)
:
e
(
μ
^
1
−
μ
^
2
±
z
1
−
α
2
S
1
2
n
+
S
2
2
n
)
{\displaystyle CI(e^{\mu _{1}-\mu _{2}}):e^{\left({\hat {\mu }}_{1}-{\hat {\mu }}_{2}\pm z_{1-{\frac {\alpha }{2}}}{\sqrt {{\frac {S_{1}^{2}}{n}}+{\frac {S_{2}^{2}}{n}}}}\right)}}
These CI are what's often used in epidemiology for calculation the CI for relative-risk and odds-ratio. The way it is done there is that we have two approximately Normal distributions (e.g., p1 and p2, for RR), and we wish to calculate their ratio.
However, the ratio of the expectations (means) of the two samples might also be of interest, while requiring more work to develop. The ratio of their means is:
E
(
X
1
)
E
(
X
2
)
=
e
μ
1
+
σ
1
2
2
e
μ
2
+
σ
2
2
2
=
e
(
μ
1
−
μ
2
)
+
1
2
(
σ
1
2
−
σ
2
2
)
{\displaystyle {\frac {E(X_{1})}{E(X_{2})}}={\frac {e^{\mu _{1}+{\frac {\sigma _{1}^{2}}{2}}}}{e^{\mu _{2}+{\frac {\sigma _{2}^{2}}{2}}}}}=e^{(\mu _{1}-\mu _{2})+{\frac {1}{2}}(\sigma _{1}^{2}-\sigma _{2}^{2})}}
Plugin in the estimators to each of these parameters yields also a log normal distribution, which means that the Cox Method, discussed above, could similarly be used for this use-case:
C
I
(
E
(
X
1
)
E
(
X
2
)
=
e
μ
1
+
σ
1
2
2
e
μ
2
+
σ
2
2
2
)
:
e
(
(
μ
^
1
−
μ
^
2
+
1
2
S
1
2
−
1
2
S
2
2
)
±
z
1
−
α
2
S
1
2
n
1
+
S
2
2
n
2
+
S
1
4
2
(
n
1
−
1
)
+
S
2
4
2
(
n
2
−
1
)
)
{\displaystyle CI\left({\frac {E(X_{1})}{E(X_{2})}}={\frac {e^{\mu _{1}+{\frac {\sigma _{1}^{2}}{2}}}}{e^{\mu _{2}+{\frac {\sigma _{2}^{2}}{2}}}}}\right):e^{\left(({\hat {\mu }}_{1}-{\hat {\mu }}_{2}+{\frac {1}{2}}S_{1}^{2}-{\frac {1}{2}}S_{2}^{2})\pm z_{1-{\frac {\alpha }{2}}}{\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}+{\frac {S_{1}^{4}}{2(n_{1}-1)}}+{\frac {S_{2}^{4}}{2(n_{2}-1)}}}}\right)}}
It's worth noting that naively using the MLE in the ratio of the two expectations to create a ratio estimator will lead to a consistent, yet biased, point-estimation (we use the fact that the estimator of the ratio is a log normal distribution):
E
[
E
^
(
X
1
)
E
^
(
X
2
)
]
=
E
[
e
(
μ
^
1
−
μ
^
2
)
+
1
2
(
S
1
2
−
S
2
2
)
]
≈
e
(
μ
1
−
μ
2
)
+
1
2
(
σ
1
2
−
σ
2
2
)
+
1
2
(
σ
1
2
n
1
+
σ
2
2
n
2
+
σ
1
4
2
(
n
1
−
1
)
+
σ
2
4
2
(
n
2
−
1
)
)
{\displaystyle E\left[{\frac {{\widehat {E}}(X_{1})}{{\widehat {E}}(X_{2})}}\right]=E\left[e^{({\widehat {\mu }}_{1}-{\widehat {\mu }}_{2})+{\frac {1}{2}}(S_{1}^{2}-S_{2}^{2})}\right]\approx e^{(\mu _{1}-\mu _{2})+{\frac {1}{2}}(\sigma _{1}^{2}-\sigma _{2}^{2})+{\frac {1}{2}}\left({\frac {\sigma _{1}^{2}}{n_{1}}}+{\frac {\sigma _{2}^{2}}{n_{2}}}+{\frac {\sigma _{1}^{4}}{2(n_{1}-1)}}+{\frac {\sigma _{2}^{4}}{2(n_{2}-1)}}\right)}}
= Extremal principle of entropy to fix the free parameter σ
=In applications,
σ
{\displaystyle \sigma }
is a parameter to be determined. For growing processes balanced by production and dissipation, the use of an extremal principle of Shannon entropy shows that
σ
=
1
6
{\displaystyle \sigma ={\frac {1}{\sqrt {6}}}}
This value can then be used to give some scaling relation between the inflexion point and maximum point of the log-normal distribution. This relationship is determined by the base of natural logarithm,
e
=
2.718
…
{\displaystyle e=2.718\ldots }
, and exhibits some geometrical similarity to the minimal surface energy principle.
These scaling relations are useful for predicting a number of growth processes (epidemic spreading, droplet splashing, population growth, swirling rate of the bathtub vortex, distribution of language characters, velocity profile of turbulences, etc.).
For example, the log-normal function with such
σ
{\displaystyle \sigma }
fits well with the size of secondarily produced droplets during droplet impact and the spreading of an epidemic disease.
The value
σ
=
1
/
6
{\textstyle \sigma =1{\big /}{\sqrt {6}}}
is used to provide a probabilistic solution for the Drake equation.
Occurrence and applications
The log-normal distribution is important in the description of natural phenomena. Many natural growth processes are driven by the accumulation of many small percentage changes which become additive on a log scale. Under appropriate regularity conditions, the distribution of the resulting accumulated changes will be increasingly well approximated by a log-normal, as noted in the section above on "Multiplicative Central Limit Theorem". This is also known as Gibrat's law, after Robert Gibrat (1904–1980) who formulated it for companies. If the rate of accumulation of these small changes does not vary over time, growth becomes independent of size. Even if this assumption is not true, the size distributions at any age of things that grow over time tends to be log-normal. Consequently, reference ranges for measurements in healthy individuals are more accurately estimated by assuming a log-normal distribution than by assuming a symmetric distribution about the mean.
A second justification is based on the observation that fundamental natural laws imply multiplications and divisions of positive variables. Examples are the simple gravitation law connecting masses and distance with the resulting force, or the formula for equilibrium concentrations of chemicals in a solution that connects concentrations of educts and products. Assuming log-normal distributions of the variables involved leads to consistent models in these cases.
Specific examples are given in the following subsections. contains a review and table of log-normal distributions from geology, biology, medicine, food, ecology, and other areas. is a review article on log-normal distributions in neuroscience, with annotated bibliography.
= Human behavior
=The length of comments posted in Internet discussion forums follows a log-normal distribution.
Users' dwell time on online articles (jokes, news etc.) follows a log-normal distribution.
The length of chess games tends to follow a log-normal distribution.
Onset durations of acoustic comparison stimuli that are matched to a standard stimulus follow a log-normal distribution.
= Biology and medicine
=Measures of size of living tissue (length, skin area, weight).
Incubation period of diseases.
Diameters of banana leaf spots, powdery mildew on barley.
For highly communicable epidemics, such as SARS in 2003, if public intervention control policies are involved, the number of hospitalized cases is shown to satisfy the log-normal distribution with no free parameters if an entropy is assumed and the standard deviation is determined by the principle of maximum rate of entropy production.
The length of inert appendages (hair, claws, nails, teeth) of biological specimens, in the direction of growth.
The normalised RNA-Seq readcount for any genomic region can be well approximated by log-normal distribution.
The PacBio sequencing read length follows a log-normal distribution.
Certain physiological measurements, such as blood pressure of adult humans (after separation on male/female subpopulations).
Several pharmacokinetic variables, such as Cmax, elimination half-life and the elimination rate constant.
In neuroscience, the distribution of firing rates across a population of neurons is often approximately log-normal. This has been first observed in the cortex and striatum and later in hippocampus and entorhinal cortex, and elsewhere in the brain. Also, intrinsic gain distributions and synaptic weight distributions appear to be log-normal as well.
Neuron densities in the cerebral cortex, due to the noisy cell division process during neurodevelopment.
In operating-rooms management, the distribution of surgery duration.
In the size of avalanches of fractures in the cytoskeleton of living cells, showing log-normal distributions, with significantly higher size in cancer cells than healthy ones.
= Chemistry
=Particle size distributions and molar mass distributions.
The concentration of rare elements in minerals.
Diameters of crystals in ice cream, oil drops in mayonnaise, pores in cocoa press cake.
= Hydrology
=In hydrology, the log-normal distribution is used to analyze extreme values of such variables as monthly and annual maximum values of daily rainfall and river discharge volumes.
The image on the right, made with CumFreq, illustrates an example of fitting the log-normal distribution to ranked annually maximum one-day rainfalls showing also the 90% confidence belt based on the binomial distribution.
The rainfall data are represented by plotting positions as part of a cumulative frequency analysis.
= Social sciences and demographics
=In economics, there is evidence that the income of 97–99% of the population is distributed log-normally. (The distribution of higher-income individuals follows a Pareto distribution).
If an income distribution follows a log-normal distribution with standard deviation
σ
{\displaystyle \sigma }
, then the Gini coefficient, commonly use to evaluate income inequality, can be computed as
G
=
erf
(
σ
2
)
{\displaystyle G=\operatorname {erf} \left({\frac {\sigma }{2}}\right)}
where
erf
{\displaystyle \operatorname {erf} }
is the error function, since
G
=
2
Φ
(
σ
2
)
−
1
{\displaystyle G=2\Phi \left({\frac {\sigma }{\sqrt {2}}}\right)-1}
, where
Φ
(
x
)
{\displaystyle \Phi (x)}
is the cumulative distribution function of a standard normal distribution.
In finance, in particular the Black–Scholes model, changes in the logarithm of exchange rates, price indices, and stock market indices are assumed normal (these variables behave like compound interest, not like simple interest, and so are multiplicative). However, some mathematicians such as Benoit Mandelbrot have argued that log-Lévy distributions, which possesses heavy tails would be a more appropriate model, in particular for the analysis for stock market crashes. Indeed, stock price distributions typically exhibit a fat tail. The fat tailed distribution of changes during stock market crashes invalidate the assumptions of the central limit theorem.
In scientometrics, the number of citations to journal articles and patents follows a discrete log-normal distribution.
City sizes (population) satisfy Gibrat's Law. The growth process of city sizes is proportionate and invariant with respect to size. From the central limit theorem therefore, the log of city size is normally distributed.
The number of sexual partners appears to be best described by a log-normal distribution.
= Technology
=In reliability analysis, the log-normal distribution is often used to model times to repair a maintainable system.
In wireless communication, "the local-mean power expressed in logarithmic values, such as dB or neper, has a normal (i.e., Gaussian) distribution." Also, the random obstruction of radio signals due to large buildings and hills, called shadowing, is often modeled as a log-normal distribution.
Particle size distributions produced by comminution with random impacts, such as in ball milling.
The file size distribution of publicly available audio and video data files (MIME types) follows a log-normal distribution over five orders of magnitude.
File sizes of 140 million files on personal computers running the Windows OS, collected in 1999.
Sizes of text-based emails (1990s) and multimedia-based emails (2000s).
In computer networks and Internet traffic analysis, log-normal is shown as a good statistical model to represent the amount of traffic per unit time. This has been shown by applying a robust statistical approach on a large groups of real Internet traces. In this context, the log-normal distribution has shown a good performance in two main use cases: (1) predicting the proportion of time traffic will exceed a given level (for service level agreement or link capacity estimation) i.e. link dimensioning based on bandwidth provisioning and (2) predicting 95th percentile pricing.
in physical testing when the test produces a time-to-failure of an item under specified conditions, the data is often best analyzed using a lognormal distribution.
See also
Heavy-tailed distribution
Log-distance path loss model
Modified lognormal power-law distribution
Fading
Notes
References
Further reading
Crow, Edwin L.; Shimizu, Kunio, eds. (1988), Lognormal Distributions, Theory and Applications, Statistics: Textbooks and Monographs, vol. 88, New York: Marcel Dekker, Inc., pp. xvi+387, ISBN 978-0-8247-7803-3, MR 0939191, Zbl 0644.62014
Aitchison, J. and Brown, J.A.C. (1957) The Lognormal Distribution, Cambridge University Press.
Limpert, E; Stahel, W; Abbt, M (2001). "Lognormal distributions across the sciences: keys and clues". BioScience. 51 (5): 341–352. doi:10.1641/0006-3568(2001)051[0341:LNDATS]2.0.CO;2.
Holgate, P. (1989). "The lognormal characteristic function". Communications in Statistics – Theory and Methods. 18 (12): 4539–4548. doi:10.1080/03610928908830173.
Brooks, Robert; Corson, Jon; Donal, Wales (1994). "The Pricing of Index Options When the Underlying Assets All Follow a Lognormal Diffusion". Advances in Futures and Options Research. 7. SSRN 5735.
External links
The normal distribution is the log-normal distribution
Kata Kunci Pencarian:
Artikel Terkait "log normal distribution"
How do I get a lognormal distribution in Python with Mu and Sigma?
15 Jan 2012 · Similar to Excel and R, The lognorm_cdf function above parameterizes the CDF for the log-normal distribution using mu and sigma. Although SciPy uses shape , loc and scale …
python - Log normal distribution - Stack Overflow
11 Jan 2019 · If you know that you want 1000 values that are log-normally distributed distribution (i.e., log(x) gives you normal distribution), and you want your data to range from 10 to 10^5, …
Histogram overlay plot with lognormal distribution
26 Okt 2023 · Scaling the fitted PDF of a log-normal distribution to the histogram (1 answer) Closed 1 year ago . I want to check the fit of my data, which I suspect is lognormally distributed …
python - Scaling the fitted PDF of a log-normal distribution to the ...
import numpy as np import scipy.stats # generate log-normal distributed set of samples samples = np.random.lognormal( mean=1., sigma=.4, size=10000 ) # make a fit to the samples and …
Lognormal Distribution from a dataframe in Python
13 Des 2021 · I'd like to create the log normal distribution from values which are columns in my data frame. I have a dataframe with 4 columns and would like to create a new column …
modeling - Applying lognormal distribution to my data using glm ...
23 Agu 2019 · In the first model we fitted a Gaussian (=Normal distributed errors) with a log link. In second we fitted a Gaussian to log(y) with the identity link (which is no link). The model with …
Python testing if my data follows a lognormal distribution
Hi I have a distribution of results that is positively skewed so I want to test if it is a good fit to a log-normal distribution or a Gumbell distribution. I have used scipy before so I would be …
math - How to create a random number following a lognormal …
This results in numbers ranging from roughly -5 to to 25 with a frequency distribution that looks normal with most values centerred around the mean. How to get a similar set of numbers but …
sample a lognormal distribution to an exact mean and sd
30 Jun 2019 · Based on @Cole's answer I would have thought this would work perfectly: draw normal deviates, transform them so they have a mean and sd exactly equal to the log-scale …
Log-normal distribution, log x-axis, scaling pdf - Stack Overflow
16 Mar 2018 · I want to make lognormal distribution. I'm using a logarithmic x-axis. However, I can't scale Probability density function correctly. I found one post on the forum for a full …