Search for LIMS content across all our Wiki Knowledge Bases.
Type a search term to find related articles by LIMS subject matter experts gathered from the most trusted and dynamic collaboration tools in the laboratory informatics industry.
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.[2][3] 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.[4] The log-normal distribution has also been associated with other names, such as McAlister, Gibrat and Cobb–Douglas.[4]
Let be a standard normal variable, and let and be two real numbers, with . Then, the distribution of the random variable
is called the log-normal distribution with parameters and . These are the expected value (or mean) and standard deviation of the variable's natural logarithm, not the expectation and standard deviation of itself.
This relationship is true regardless of the base of the logarithmic or exponential function: If is normally distributed, then so is for any two positive numbers Likewise, if is log-normally distributed, then so is where .
In order to produce a distribution with desired mean and variance one uses
and
Alternatively, the "multiplicative" or "geometric" parameters and can be used. They have a more direct interpretation: is the median of the distribution, and is useful for determining "scatter" intervals, see below.
Probability density function
A positive random variable is log-normally distributed (i.e., ), if the natural logarithm of is normally distributed with mean and variance
Let and be respectively the cumulative probability distribution function and the probability density function of the standard normal distribution, then we have that[2][4] the probability density function of the log-normal distribution is given by:
If is a multivariate normal distribution, then has a multivariate log-normal distribution.[6][7] The exponential is applied elementwise to the random vector . The mean of is
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
This can be derived by letting within the integral. However, the log-normal distribution is not determined by its moments.[8] This implies that it cannot have a defined moment generating function in a neighborhood of zero.[9] Indeed, the expected value is not defined for any positive value of the argument , since the defining integral diverges.
The characteristic function 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.[10] In particular, its Taylor formal series diverges:
A closed-form formula for the characteristic function with in the domain of convergence is not known. A relatively simple approximating formula is available in closed form, and is given by[14]
where is the Lambert W function. This approximation is derived via an asymptotic method, but it stays sharp all over the domain of convergence of .
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.[15] (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.[15] (Matlab code)
By analogy with the arithmetic statistics, one can define a geometric variance, , and a geometric coefficient of variation,[16], 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 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,
For any real or complex number n, the n-th moment of a log-normally distributed variable X is given by[4]
Specifically, the arithmetic mean, expected square, arithmetic variance, and arithmetic standard deviation of a log-normally distributed variable X are respectively given by:[2]
This estimate is sometimes referred to as the "geometric CV" (GCV),[19][20] 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:
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.[4] In fact, there is a whole family of distributions with the same moments as the log-normal distribution.[citation needed]
Mode, median, quantiles
The mode is the point of global maximum of the probability density function. In particular, by solving the equation , we get that:
Since the log-transformed variable has a normal distribution, and quantiles are preserved under monotonic transformations, the quantiles of are
where is the quantile of the standard normal distribution.
Specifically, the median of a log-normal distribution is equal to its multiplicative mean,[21]
Partial expectation
The partial expectation of a random variable with respect to a threshold is defined as
Alternatively, by using the definition of conditional expectation, it can be written as . For a log-normal random variable, the partial expectation is given by:
The conditional expectation of a log-normal random variable —with respect to a threshold —is its partial expectation divided by the cumulative probability of being in that range:
Alternative parameterizations
In addition to the characterization by or , here are multiple ways how the log-normal distribution can be parameterized. ProbOnto, the knowledge base and ontology of probability distributions[22][23] lists seven such forms:
LogNormal7(μN,σN) with mean, μN, and standard deviation, σN, both on the natural scale[27]
Examples for re-parameterization
Consider the situation when one would like to run a model using two different optimal design tools, for example PFIM[28] and PopED.[29] 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 following formulas hold and .
For the transition following formulas hold and .
All remaining re-parameterisation formulas can be found in the specification document on the project website.[30]
Multiple, reciprocal, power
Multiplication by a constant: If then for
Reciprocal: If then
Power: If then for
Multiplication and division of independent, log-normal random variables
If two independent, log-normal variables and are multiplied [divided], the product [ratio] is again log-normal, with parameters [] and , where . This is easily generalized to the product of such variables.
More generally, if are independent, log-normally distributed variables, then
The geometric or multiplicative mean of independent, identically distributed, positive random variables shows, for , approximately a log-normal distribution with parameters and , assuming is finite.
In fact, the random variables do not have to be identically distributed. It is enough for the distributions of to all have finite variance and satisfy the other conditions of any of the many variants of the central limit theorem.
If is distributed log-normally, then is a normal random variable.
Let be independent log-normally distributed variables with possibly varying and parameters, and . The distribution of has no closed-form expression, but can be reasonably approximated by another log-normal distribution at the right tail.[35] Its probability density function at the neighborhood of 0 has been characterized[34] 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[36]) is obtained by matching the mean and variance of another log-normal distribution: In the case that all have the same variance parameter , these formulas simplify to
For a more accurate approximation, one can use the Monte Carlo method to estimate the cumulative distribution function, the pdf and the right tail.[37][38]
The sum of correlated log-normally distributed random variables can also be approximated by a log-normal distribution[citation needed]
If then is said to have a Three-parameter log-normal distribution with support .[39], .
A substitute for the log-normal whose integral can be expressed in terms of more elementary functions[41] can be obtained based on the logistic distribution to get an approximation for the CDF This is a log-logistic distribution.
Statistical inference
Estimation of parameters
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
where is the density function of the normal distribution . Therefore, the log-likelihood function is
Since the first term is constant with regard to μ and σ, both logarithmic likelihood functions, and , reach their maximum with the same and . Hence, the maximum likelihood estimators are identical to those for a normal distribution for the observations ,
For finite n, the estimator for is unbiased, but the one for is biased. As for the normal distribution, an unbiased estimator for can be obtained by replacing the denominator n by n−1 in the equation for .
When the individual values are not available, but the sample's mean and standard deviations 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 and variance for and :
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 contains approximately two thirds (68%) of the probability (or of a large sample), and contain 95%. Therefore, for a log-normal distribution,
contains 2/3, and
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 is , where 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 (the median), is:
with
Confidence interval for E(X)
The literature discusses several options for calculating the confidence interval for (the mean of the log-normal distribution). These include bootstrap as well as various other methods.[42][43]
The Cox Method[a] proposes to plug-in the estimators
Since the sample mean and variance are independent, and the sum of normally distributed variables is also normal, we get that:
Based on the above, standard confidence intervals for can be constructed (using a Pivotal quantity) as:
And since confidence intervals are preserved for monotonic transformations, we get that:
As desired.
Olsson 2005, proposed a "modified Cox method" by replacing with , which seemed to provide better coverage results for small sample sizes.[42]: 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 and , with sample sizes and 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.
These CI are what's often used in epidemiology for calculation the CI for relative-risk and odds-ratio.[46] 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.[b]
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:
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:
[Proof]
To construct a confidence interval for this ratio, we first note that follows a normal distribution, and that both and has a chi-squared distribution, which is approximately normally distributed (via CLT, with the relevant parameters).
This means that
Based on the above, standard confidence intervals can be constructed (using a Pivotal quantity) as:
And since confidence intervals are preserved for monotonic transformations, we get that:
As desired.
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)[c]:
Extremal principle of entropy to fix the free parameter σ
In applications, 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[47]
This value can then be used to give some scaling relation between the inflexion point and maximum point of the log-normal distribution.[47] This relationship is determined by the base of natural logarithm, , 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 fits well with the size of secondarily produced droplets during droplet impact [48] and the spreading of an epidemic disease.[49]
The value is used to provide a probabilistic solution for the Drake equation.[50]
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.[51] 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.[citation needed] 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.[citation needed]
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.[52] contains a review and table of log-normal distributions from geology, biology, medicine, food, ecology, and other areas.[53] 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.[54]
Users' dwell time on online articles (jokes, news etc.) follows a log-normal distribution.[55]
The length of chess games tends to follow a log-normal distribution.[56]
Onset durations of acoustic comparison stimuli that are matched to a standard stimulus follow a log-normal distribution.[18]
Biology and medicine
Measures of size of living tissue (length, skin area, weight).[57]
Diameters of banana leaf spots, powdery mildew on barley.[52]
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.[59]
The length of inert appendages (hair, claws, nails, teeth) of biological specimens, in the direction of growth.[citation needed]
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.[60]
Certain physiological measurements, such as blood pressure of adult humans (after separation on male/female subpopulations).[61]
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 [63] and later in hippocampus and entorhinal cortex,[64] and elsewhere in the brain.[53][65] Also, intrinsic gain distributions and synaptic weight distributions appear to be log-normal[66] as well.
Neuron densities in the cerebral cortex, due to the noisy cell division process during neurodevelopment.[67]
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.[68]
The concentration of rare elements in minerals.[69]
Diameters of crystals in ice cream, oil drops in mayonnaise, pores in cocoa press cake.[52]
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.[70]
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.[71]
In economics, there is evidence that the income of 97%–99% of the population is distributed log-normally.[72] (The distribution of higher-income individuals follows a Pareto distribution).[73]
If an income distribution follows a log-normal distribution with standard deviation , then the Gini coefficient, commonly use to evaluate income inequality, can be computed as where is the error function, since , where 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[74] (these variables behave like compound interest, not like simple interest, and so are multiplicative). However, some mathematicians such as Benoit Mandelbrot have argued [75] 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.[76] 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.[77][78]
City sizes (population) satisfy Gibrat's Law.[79] 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.[80]
Technology
In reliability analysis, the log-normal distribution is often used to model times to repair a maintainable system.[81]
In wireless communication, "the local-mean power expressed in logarithmic values, such as dB or neper, has a normal (i.e., Gaussian) distribution."[82] 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.[83]
File sizes of 140 million files on personal computers running the Windows OS, collected in 1999.[85][54]
Sizes of text-based emails (1990s) and multimedia-based emails (2000s).[54]
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.[86]
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.[87][88]
^The Cox Method was quoted as “personal communication” in Land, 1971,[44] and was also given in CitationZhou and Gao (1997)[45] and Olsson 2005[42]: Section 3.3
^The issue is that we don't know how to do it directly, so we take their logs, and then use the delta method to say that their logs is itself (approximately) normal. This trick allows us to pretend that their exp was log normal, and use that approximation to build the CI. Notice that in the RR case, the median and the mean in the base distribution (i.e., before taking the log), is actually identical (since they are originally normal, and not log normal).
E.g., and Hence, building a CI based on the log and than back-transform will give us . So while we expect the CI to be for the median, in this case, it's actually also for the mean in the original distribution.
i.e., if the original was log-normal, we'd expect that . But in practice, we KNOW that . Hence, the approximation we have is in the second step (of the delta method), but the CI are actually for the expectation (not just the median). This is because we are starting from a base distribution that is normal, and then using another approximation after the log again to normal. This means that a big approximation part of the CI is from the delta method.
^ abcdeJohnson, Norman L.; Kotz, Samuel; Balakrishnan, N. (1994), "14: Lognormal Distributions", Continuous univariate distributions. Vol. 1, Wiley Series in Probability and Mathematical Statistics: Applied Probability and Statistics (2nd ed.), New York: John Wiley & Sons, ISBN 978-0-471-58495-7, MR1299979
^Halliwell, Leigh (2015). The Lognormal Random Multivariate(PDF). Casualty Actuarial Society E-Forum, Spring 2015. Arlington, VA. Archived(PDF) from the original on 2015-09-30.
^Heyde, CC. (2010), "On a Property of the Lognormal Distribution", Journal of the Royal Statistical Society, Series B, vol. 25, no. 2, pp. 392–393, doi:10.1007/978-1-4419-5823-5_6, ISBN 978-1-4419-5822-8
^ abHolgate, P. (1989). "The lognormal characteristic function, vol. 18, pp. 4539–4548, 1989". Communications in Statistics - Theory and Methods. 18 (12): 4539–4548. doi:10.1080/03610928908830173.
^Nyberg, J.; et al. (2012). "PopED - An extended, parallelized, population optimal design tool". Comput Methods Programs Biomed. 108 (2): 789–805. doi:10.1016/j.cmpb.2012.05.005. PMID22640817.
^Retout, S; Duffull, S; Mentré, F (2001). "Development and implementation of the population Fisher information matrix for the evaluation of population pharmacokinetic designs". Comp Meth Pro Biomed. 65 (2): 141–151. doi:10.1016/S0169-2607(00)00117-6. PMID11275334.
^The PopED Development Team (2016). PopED Manual, Release version 2.13. Technical report, Uppsala University.
^Rossman, Lewis A (July 1990). "Design stream flows based on harmonic means". Journal of Hydraulic Engineering. 116 (7): 946–950. doi:10.1061/(ASCE)0733-9429(1990)116:7(946).
^Marlow, NA. (Nov 1967). "A normal limit theorem for power sums of independent normal random variables". Bell System Technical Journal. 46 (9): 2081–2089. doi:10.1002/j.1538-7305.1967.tb04244.x.
^Botev, Z. I.; L'Ecuyer, P. (2017). "Accurate computation of the right tail of the sum of dependent log-normal variates". 2017 Winter Simulation Conference (WSC), 3rd–6th Dec 2017. Las Vegas, NV, USA: IEEE. pp. 1880–1890. arXiv:1705.03196. doi:10.1109/WSC.2017.8247924. ISBN 978-1-5386-3428-8.
^Asmussen, A.; Goffard, P.-O.; Laub, P. J. (2016). "Orthonormal polynomial expansions and lognormal sum densities". arXiv:1601.01763v1 [math.PR].
^Sangal, B.; Biswas, A. (1970). "The 3-Parameter Lognormal Distribution Applications in Hydrology". Water Resources Research. 6 (2): 505–515. doi:10.1029/WR006i002p00505.
^Wu, Zi-Niu (2003). "Prediction of the size distribution of secondary ejected droplets by crown splashing of droplets impinging on a solid wall". Probabilistic Engineering Mechanics. 18 (3): 241–249. Bibcode:2003PEngM..18..241W. doi:10.1016/S0266-8920(03)00028-6.
^ abcPawel, Sobkowicz; et al. (2013). "Lognormal distributions of user post lengths in Internet discussions - a consequence of the Weber-Fechner law?". EPJ Data Science.
^Huxley, Julian S. (1932). Problems of relative growth. London. ISBN 978-0-486-61114-3. OCLC476909537.
^Sartwell, Philip E. "The distribution of incubation periods of infectious disease." American journal of hygiene 51 (1950): 310-318.
^S. K. Chan, Jennifer; Yu, Philip L. H. (2006). "Modelling SARS data using threshold geometric process". Statistics in Medicine. 25 (11): 1826–1839. doi:10.1002/sim.2376. PMID16345017. S2CID46599163.
^Makuch, Robert W.; D.H. Freeman; M.F. Johnson (1979). "Justification for the lognormal distribution as a model for blood pressure". Journal of Chronic Diseases. 32 (3): 245–250. doi:10.1016/0021-9681(79)90070-5. PMID429469.
^Wataru, Souma (2002-02-22). "Physics of Personal Income". In Takayasu, Hideki (ed.). Empirical Science of Financial Fluctuations: The Advent of Econophysics. Springer. arXiv:cond-mat/0202388. doi:10.1007/978-4-431-66993-7.
^Black, F.; Scholes, M. (1973). "The Pricing of Options and Corporate Liabilities". Journal of Political Economy. 81 (3): 637. doi:10.1086/260062. S2CID154552078.
^Alamsar, Mohammed; Parisis, George; Clegg, Richard; Zakhleniuk, Nickolay (2019). "On the Distribution of Traffic Volumes in the Internet and its Implications". arXiv:1902.03853 [cs.NI].
^ASTM D3654, Standard Test Method for Shear Adhesion on Pressure-Sensitive Tapesw
^ASTM D4577, Standard Test Method for Compression Resistance of a container Under Constant Load>\
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, MR0939191, Zbl0644.62014
Aitchison, J. and Brown, J.A.C. (1957) The Lognormal Distribution, Cambridge University Press.
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. SSRN5735.