Metalog distribution
The metalog distribution is a flexible continuous probability distribution designed for ease of use in practice. Together with its transforms, the metalog family of continuous distributions is unique because it embodies all of following properties: virtually unlimited shape flexibility; a choice among unbounded, semi-bounded, and bounded distributions; ease of fitting to data with linear least squares; simple, closed-form quantile function (inverse CDF) equations that facilitate simulation; a simple, closed-form PDF; and Bayesian updating in closed form in light of new data. Moreover, like a Taylor series, metalog distributions may have any number of terms, depending on the degree of shape flexibility desired and other application needs.
Applications where metalog distributions can be useful typically involve fitting empirical data, simulated data, or expert-elicited quantiles to smooth, continuous probability distributions. Fields of application are wide-ranging, and include economics, science, engineering, and numerous other fields. The metalog distributions, also known as the Keelin distributions, were first published in 2016[1] by Tom Keelin.[2]
History
The history of probability distributions can be viewed, in part, as a progression of developments towards greater flexibility in shape and bounds when fitting to data. The normal distribution was first published in 1756,[3] and Bayes’ theorem in 1763.[4] The normal distribution laid the foundation for much of the development of classical statistics. In contrast, Bayes' theorem laid the foundation for the state-of-information, belief-based probability representations. Because belief-based probabilities can take on any shape and may have natural bounds, probability distributions flexible enough to accommodate both were needed. Moreover, many empirical and experimental data sets exhibited shapes that could not be well matched by the normal or other continuous distributions. So began the search for continuous probability distributions with flexible shapes and bounds.
Early in the 20th century, the Pearson[5] family of distributions, which includes the normal, beta, uniform, gamma, student-t, chi-square, F, and five others,[6] emerged as a major advance in shape flexibility. These were followed by the Johnson[7][8] distributions. Both families can represent the first four moments of data (mean, variance, skewness, and kurtosis) with smooth continuous curves. However, they have no ability to match fifth or higher-order moments. Moreover, for a given skewness and kurtosis, there is no choice of bounds. For example, matching the first four moments of a data set may yield a distribution with a negative lower bound, even though it might be known that the quantity in question cannot be negative. Finally, their equations include intractable integrals and complex statistical functions, so that fitting to data typically requires iterative methods.
Early in the 21st century, decision analysts began working to develop continuous probability distributions that would exactly fit any specified three points on the cumulative distribution function for an uncertain quantity (e.g., expert-elicited [math]\displaystyle{ 0.10, 0.50 }[/math], and [math]\displaystyle{ 0.90 }[/math] quantiles). The Pearson and the Johnson family distributions were generally inadequate for this purpose. In addition, decision analysts also sought probability distributions that would be easy to parameterize with data (e.g., by using linear least squares, or equivalently, multiple linear regression). Introduced in 2011, the class of quantile-parameterized distributions (QPDs) accomplished both goals. While being a significant advance for this reason, the QPD originally used to illustrate this class of distributions, the Simple Q-Normal distribution,[9] had less shape flexibility than the Pearson and Johnson families, and lacked the ability to represent semi-bounded and bounded distributions. Shortly thereafter, Keelin[1] developed the family of metalog distributions, another instance of the QPD class, which is more shape-flexible than the Pearson and Johnson families, offers a choice of boundedness, has closed-form equations that can be fit to data with linear least squares, and has closed-form quantile functions, which facilitate Monte Carlo simulation.
Definition and quantile function
The metalog distribution is a generalization of the logistic distribution, where the term "metalog" is short for "metalogistic". Starting with the logistic quantile function, [math]\displaystyle{ x=Q(y)=\mu+s\mbox{ } \ln\Bigl({y\over{1-y}}\Bigr) }[/math], Keelin substituted power series expansions in cumulative probability [math]\displaystyle{ y=F(x) }[/math] for the [math]\displaystyle{ \mu }[/math] and the [math]\displaystyle{ s }[/math] parameters, which control location and scale, respectively.[10]
- [math]\displaystyle{ \mu =a_1 + a_4(y -0.5) + a_5(y -0.5)^2 + a_7(y -0.5)^3 + a_9(y -0.5)^4 + \dots }[/math]
- [math]\displaystyle{ s =a_2 + a_3(y -0.5) + a_6(y -0.5)^2 + a_8(y -0.5)^3 + a_{10}(y -0.5)^4 + \dots }[/math]
Keelin's rationale for this substitution was fivefold.[10] First, the resulting quantile function would have significant shape flexibility, governed by the coefficients [math]\displaystyle{ a_i }[/math]. Second, it would have a simple closed form that is linear in these coefficients, implying that they could easily be determined from CDF data by linear least squares. Third, the resulting quantile function would be smooth, differentiable, and analytic, ensuring that a smooth, closed-form PDF would be available. Fourth, simulation would be facilitated by the resulting closed-form inverse CDF. Fifth, like a Taylor series, any number of terms [math]\displaystyle{ k }[/math] could be used, depending on the degree of shape flexibility desired and other application needs.
Note that the subscripts of the [math]\displaystyle{ a }[/math]-coefficients are such that [math]\displaystyle{ a_1 }[/math] and [math]\displaystyle{ a_4 }[/math] are in the [math]\displaystyle{ \mu }[/math] expansion, [math]\displaystyle{ a_2 }[/math] and [math]\displaystyle{ a_3 }[/math] are in the [math]\displaystyle{ s }[/math] expansion, and subscripts alternate thereafter. This ordering was chosen so that the first two terms in the resulting metalog quantile function correspond to the logistic distribution exactly; adding a third term with [math]\displaystyle{ a_3 \neq 0 }[/math] adjusts skewness; adding a fourth term with [math]\displaystyle{ a_4 \neq 0 }[/math] adjusts kurtosis primarily; and adding subsequent non-zero terms yields more nuanced shape refinements.[10]:p.252
Rewriting the logistic quantile function to incorporate the above substitutions for [math]\displaystyle{ \mu }[/math] and [math]\displaystyle{ s }[/math] yields the metalog quantile function, for cumulative probability [math]\displaystyle{ 0\lt y\lt 1 }[/math].
- [math]\displaystyle{ M_k(y)= \left\{ \begin{array}{ll} a_1+a_2\ln\Bigl({y\over{1-y}}\Bigr) & \mbox{for } k=2\\ a_1+a_2\ln\Bigl({y\over{1-y}}\Bigr)+a_3(y-0.5) \ln \Bigl({y\over{1-y}}\Bigr) & \mbox{for } k=3\\ a_1+a_2\ln\Bigl({y\over{1-y}}\Bigr)+a_3(y-0.5) \ln \Bigl({y\over{1-y}}\Bigr)+a_4(y-0.5) & \mbox{for } k=4\\ M_{k-1}(y)+a_k(y-0.5)^{k-1\over2} & \mbox{for odd } k\geq5\\ M_{k-1}(y)+a_k(y-0.5)^{{k\over2}-1}\ln\Bigl({y\over{1-y}}\Bigr) & \mbox{for even } k\geq6\\ \end{array}\right. }[/math]
Equivalently, the metalog quantile function can be expressed in terms of basis functions: [math]\displaystyle{ M_k(y) = \sum_{i=1}^k a_i g_i(y) }[/math], where the metalog basis functions are [math]\displaystyle{ g_1(y)=1,\mbox{ } g_2(y)=\ln\Bigl({y\over{1 -y}}\Bigr), }[/math] and each subsequent [math]\displaystyle{ g_i(y) }[/math] is defined as the expression that is multiplied by [math]\displaystyle{ a_i }[/math] in the equation for [math]\displaystyle{ M_k(y) }[/math] above. Note that coefficient [math]\displaystyle{ a_1 }[/math] is the median, since all other terms equal zero when [math]\displaystyle{ y=0.5 }[/math]. Special cases of the metalog quantile function are the logistic distribution ([math]\displaystyle{ k=2 }[/math]) and the uniform distribution ([math]\displaystyle{ k\geq4,a_1 = 0.5,a_4 =1,a_i =0 }[/math] otherwise).
Probability density function
Differentiating [math]\displaystyle{ x=M_k(y) }[/math] with respect to [math]\displaystyle{ y }[/math] yields the quantile density function[11] [math]\displaystyle{ q(y)=dx/dy }[/math]. The reciprocal of this quantity, [math]\displaystyle{ (q(y))^{-1}=dy/dx=f(Q(y)) }[/math], is the probability density function expressed as a p-PDF,[12]
- [math]\displaystyle{ m_k(y)= \left\{ \begin{array}{ll} {y(1-y)\over{a_2}} & \mbox{for } k=2\\ \Bigl({a_2\over{y(1-y)}}+a_3\Bigl({y-0.5\over{y(1-y)}}+\ln{y\over{1-y}}\Bigr)\Bigr)^{-1} & \mbox{for } k=3\\ \Bigl({a_2\over{y(1-y)}}+a_3\Bigl({y-0.5\over{y(1-y)}}+\ln{y\over{1-y}}\Bigr)+a_4\Bigr)^{-1} & \mbox{for } k=4\\ \Bigl({1\over{m_{k-1}(y)}}+a_k{k-1\over2}(y-0.5)^{(k-3)/2}\Bigr)^{-1} & \mbox{for odd } k\geq5\\ \Bigl({1\over{m_{k-1}(y)}}+a_k\Bigl({(y-0.5)^{k/2-1}\over{y(1-y)}}+({k\over2}-1)(y-0.5)^{(k/2-2)}\ln{y\over{1-y}}\Bigr)\Bigr)^{-1} & \mbox{for even } k\geq6,\\ \end{array}\right. }[/math]
which may be equivalently expressed in terms of basis functions as
- [math]\displaystyle{ m_k(y) = \left( \sum_{i=1}^k a_i {{d g_i(y)}\over{dy}} \right)^{-1} }[/math] where [math]\displaystyle{ 0\lt y\lt 1 }[/math].
Note that this PDF is expressed as a function of cumulative probability, [math]\displaystyle{ y }[/math], rather than variable of interest, [math]\displaystyle{ x }[/math]. To plot the PDF (e.g., as shown in the figures on this page), one can vary [math]\displaystyle{ y\in(0,1) }[/math] parametrically, and then plot [math]\displaystyle{ x=M_k(y) }[/math] on the horizontal axis and [math]\displaystyle{ m_k(y) }[/math] on the vertical axis.
Based on the above equations and the following transformations that enable a choice of bounds, the family of metalog distributions is composed of unbounded, semibounded, and bounded metalogs, along with their symmetric-percentile triplet (SPT) special cases.
Unbounded, semi-bounded, and bounded metalog distributions
As defined above, the metalog distribution is unbounded, except in the unusual special case where [math]\displaystyle{ a_i = 0 }[/math] for all terms that contain [math]\displaystyle{ \ln\Bigl({y\over{1-y}}\Bigr) }[/math]. However, many applications require flexible probability distributions that have a lower bound [math]\displaystyle{ b_l }[/math], an upper bound [math]\displaystyle{ b_u }[/math], or both. To meet this need, Keelin used transformations to derive semi-bounded and bounded metalog distributions.[1] Such transformations are governed by a general property of quantile functions: for any quantile function [math]\displaystyle{ x=Q(y) }[/math] and increasing function [math]\displaystyle{ z(x), x=z^{-1} (Q(y)) }[/math] is also a quantile function.[13] For example, the quantile function of the normal distribution is [math]\displaystyle{ x=\mu+\sigma \Phi^{-1} (y) }[/math]; since the natural logarithm, [math]\displaystyle{ z(x)=\ln(x-b_l) }[/math], is an increasing function, [math]\displaystyle{ x=b_l+e^{\mu+\sigma \Phi^{-1} (y)} }[/math] is the quantile function of the lognormal distribution. Analogously, applying this property to the metalog quantile function [math]\displaystyle{ M_k(y) }[/math] using the transformations below yields the semi-bounded and bounded members of the metalog family. By considering [math]\displaystyle{ z(x) }[/math] to be metalog-distributed, all members of the metalog family meet Keelin and Powley's[9] definition of a quantile-parameterized distribution and thus possess the properties thereof.
- [math]\displaystyle{ \begin{array}{l|c|c|c|c|c} & & & & & \mbox{shape}\\ & \mbox{transformation} & \mbox{quantile function} & \mbox{PDF} & \mbox{where} &\mbox{parameters}\\ \hline \mbox{Metalog (unbounded)} & z(x)=x & M_k(y) & m_k(y) & 0\lt y\lt 1 & k-2\\ \hline \mbox{Log metalog} & z(x)=\ln(x-b_l) & M_k^\log(y)=b_l+e^{M_k(y)} & m_k^\log(y)=m_k(y)e^{-M_k(y)} & 0\lt y\lt 1 & k-1\\ \mbox{(bounded below)} && =b_l & =0 & y=0\\ \hline \mbox{Negative-log metalog} & z(x)=-\ln(b_u-x) & M_k^\operatorname{nlog}(y)=b_u-e^{-M_k(y)} & m_k^\operatorname{nlog}(y) = m_k(y)e^{M_k(y)}& 0\lt y\lt 1 & k-1\\ \mbox{(bounded above)} && =b_u & =0 & y=1\\ \hline \mbox{Logit metalog} & z(x)=\ln\Bigl({x-b_l\over{b_u-x}}\Bigr) & M_k^\operatorname{logit}(y)={b_l+b_u e^{M_k(y)}\over{1+e^{M_k(y)}}} & m_k^\operatorname{logit}(y)=m_k(y){\bigl(1+e^{M_k(y)}\bigr)^2\over{(b_u-b_l)e^{M_k(y)}}} & 0\lt y\lt 1 & k\\ \mbox{(bounded)}&&=b_l & =0 & y=0\\ & & =b_u & =0 & y=1 \end{array} }[/math]
Note that the number of shape parameters in the metalog family increases linearly with the number of terms [math]\displaystyle{ k }[/math]. Therefore, any of the above metalogs may have any number of shape parameters. By contrast, the Pearson and Johnson families of distributions are limited to two shape parameters.
SPT metalog distributions
The symmetric-percentile triplet (SPT) metalog distributions are a three-term [math]\displaystyle{ (k=3) }[/math] special case of the unbounded, semi-bounded, and bounded metalog distributions.[14] These are parameterized by the three [math]\displaystyle{ (x,y) }[/math] points off the CDF curve, of the form [math]\displaystyle{ (x_1,\alpha) }[/math], [math]\displaystyle{ (x_2,0.5) }[/math], and [math]\displaystyle{ (x_3,1-\alpha) }[/math], where [math]\displaystyle{ 0 \lt \alpha\lt 0.5 }[/math]. SPT metalogs are useful when, for example, quantiles [math]\displaystyle{ (x_1,x_2,x_3) }[/math] corresponding to the CDF probabilities (e.g. [math]\displaystyle{ 0.1, 0.5, 0.9 }[/math]) are elicited from an expert and used to parameterize the three-term metalog distributions. As noted below, certain mathematical properties are simplified by the SPT parameterization.
Properties
The metalog family of probability distributions has the following properties.
Feasibility
A function of the form of [math]\displaystyle{ M_k(y) }[/math] or any of its above transforms is a feasible probability distribution if and only if its PDF is greater than zero for all [math]\displaystyle{ y \in (0,1). }[/math][9] This implies a feasibility constraint on the set of coefficients [math]\displaystyle{ \boldsymbol a=(a_1,...,a_k) \in \R^k }[/math],
- [math]\displaystyle{ m_k(y)\gt 0 }[/math] for all [math]\displaystyle{ y \in (0,1) }[/math].
In practical applications, feasibility must generally be checked rather than assumed. For [math]\displaystyle{ k=2 }[/math], [math]\displaystyle{ a_2\gt 0 }[/math] ensures feasibility. For [math]\displaystyle{ k=3 }[/math] (including SPT metalogs), the feasibility condition is [math]\displaystyle{ a_2\gt 0 }[/math] and [math]\displaystyle{ {|a_3|/a_2}\lt 1.66711 }[/math].[14] For [math]\displaystyle{ k=4 }[/math], a similar closed form has been derived.[15] For [math]\displaystyle{ k\geq5 }[/math], feasibility is typically checked graphically or numerically.
The unbounded metalog and its above transforms share the same set of feasible coefficients.[16] Therefore, for a given set of coefficients, confirming that [math]\displaystyle{ m_k(y)\gt 0 }[/math] for all [math]\displaystyle{ y \in (0,1) }[/math] is sufficient regardless of the transform in use.
Convexity
The set of feasible metalog coefficients [math]\displaystyle{ S_\boldsymbol a=\{\boldsymbol a\in\R^k |m_k(y) \gt 0 }[/math] for all [math]\displaystyle{ y\in (0,1)\} }[/math] is convex. Because convex optimization problems require convex feasible sets, this property can simplify optimization problems involving metalogs. Moreover, this property guarantees that any convex combination of the [math]\displaystyle{ \boldsymbol a }[/math] vectors of feasible metalogs is feasible, which is useful, for example, when combining the opinion of multiple experts[17] or interpolating among feasible metalogs.[18] By implication, any probabilistic mixture of metalog distributions is itself a metalog.
Fitting to data
The coefficients [math]\displaystyle{ \boldsymbol a }[/math] can be determined from data by linear least squares. Given [math]\displaystyle{ n }[/math] data points [math]\displaystyle{ (x_i,y_i) }[/math] that are intended to characterize a metalog CDF, and an [math]\displaystyle{ n \times k }[/math] matrix [math]\displaystyle{ \boldsymbol Y }[/math] whose elements consist of the basis functions [math]\displaystyle{ g_j (y_i) }[/math], then as long as [math]\displaystyle{ \boldsymbol Y^T \boldsymbol Y }[/math] is invertible, the column vector [math]\displaystyle{ \boldsymbol a }[/math] of the coefficients [math]\displaystyle{ a_i }[/math] is given by [math]\displaystyle{ \boldsymbol a=(\boldsymbol Y^T \boldsymbol Y)^{-1} \boldsymbol Y^T \boldsymbol z }[/math], where [math]\displaystyle{ n\geq k }[/math] and column vector [math]\displaystyle{ \boldsymbol z=(z(x_1),\ldots,z(x_n)) }[/math]. If [math]\displaystyle{ n=k }[/math], this equation reduces to [math]\displaystyle{ \boldsymbol a=\boldsymbol Y^{-1} \boldsymbol z }[/math], where the resulting metalog CDF runs through all data points exactly. For SPT metalogs, it further reduces to expressions in terms of the three [math]\displaystyle{ (x_i,y_i) }[/math] points directly.[14]
An alternate fitting method, implemented as a linear program, determines the coefficients by minimizing the sum of absolute distances between the CDF and the data, subject to feasibility constraints.[19]
Shape flexibility
According to the metalog flexibility theorem,[17] any probability distribution with a continuous quantile function can be approximated arbitrarily closely by a metalog. Moreover, in the original paper, Keelin showed that ten-term metalog distributions parameterized by 105 CDF points from 30 traditional source distributions (including the normal, student-t, lognormal, gamma, beta, and extreme-value distributions) approximate each such source distribution within a K-S distance of 0.001 or less.[20] Thus, metalog shape flexibility is virtually unlimited.
The animated figure on the right illustrates this for the standard normal distribution, where metalogs with various numbers of terms are parameterized by the same set of 105 points from the standard normal CDF. The metalog PDF converges to the standard normal PDF as the number of terms increases. With two terms, the metalog approximates the normal with a logistic distribution. With each increment in number of terms, the fit gets closer. With 10 terms, the metalog PDF and standard normal PDF are visually indistinguishable.
Similarly, nine-term semi-bounded metalog PDFs with [math]\displaystyle{ b_l=0 }[/math] are visually indistinguishable from a range of Weibull distributions. The six cases shown to the right correspond to Weibull shape parameters 0.5, 0.8, 1.0, 1.5, 2, and 4. In each case, the metalog is parameterized by the nine [math]\displaystyle{ x }[/math] points from the Weibull CDF that correspond to the cumulative probabilities [math]\displaystyle{ y = (0.001, 0.02, 0.10, 0.25, 0.5, 0.75, 0.9, 0.98, 0.999) }[/math].
Such convergence is not unique to the normal and Weibull distributions. Keelin originally showed analogous results for a wide range of distributions[20] and has since provided further illustrations.[17][21]
Median
The median of any distribution in the metalog family has a simple closed form. Note that [math]\displaystyle{ y=0.5 }[/math] defines the median, and [math]\displaystyle{ M_k(0.5)=a_1 }[/math] (since all subsequent terms are zero for [math]\displaystyle{ y=0.5 }[/math]). It follows that the medians of the unbounded metalog, log metalog, negative-log metalog, and logit metalog distributions are [math]\displaystyle{ a_1 }[/math], [math]\displaystyle{ b_l+e^{a_1} }[/math], [math]\displaystyle{ b_u-e^{-a_1} }[/math], and [math]\displaystyle{ {b_l+b_u e^{a_1}\over{1+e^{a_1}}} }[/math], respectively.
Moments
The [math]\displaystyle{ m^{th} }[/math] moment of the unbounded metalog distribution, [math]\displaystyle{ E[x^m] =\int_{y=0}^1 {M_k(y)}^m \, dy }[/math], is a special case of the more general formula for QPDs.[9] For the unbounded metalog, such integrals evaluate to closed-form moments that are [math]\displaystyle{ m^{th} }[/math] order polynomials in the coefficients [math]\displaystyle{ a_i }[/math]. The first four central moments of the four-term unbounded metalog are:
- [math]\displaystyle{ \begin{align} \text{mean} = {} & a_1 +{a_3\over2}\\[6pt] \text{variance} = {} & \pi^2{{a_2}^2\over3}+{{a_3}^2\over{12}}+\pi^2{{a_3}^2\over{36}}+a_2a_4 +{{a_4}^2\over{12}}\\[6pt] \text{skewness} = {} & \pi^2 {a_2}^2{a_3}+\pi^2 {{a_3}^3 \over{24}} + {{{a_2} {a_3} {a_4}} \over{2}}+ \pi^2{{{a_2} {a_3} {a_4}} \over{6}} + {{{a_3} {a_4}^2} \over{8}}\\[6pt] \text{kurtosis} = {} & 7\pi^4 {{a_2}^4\over{15}}+3\pi^2 {{{a_2}^2{a_3}^2} \over{24}}+7\pi^4 {{{a_2}^2{a_3}^2} \over{30}}+{{{a_3}^4}\over{80}} + \pi^2{{a_3}^4 \over{24}} + 7\pi^4 {{a_3}^4\over{1200}} + 2\pi^2{a_2}^3{a_4}\\[6pt] & {} +{{{a_2} {a_3}^2 {a_4}} \over{2}}+2\pi^2{{{a_2} {a_3}^2 {a_4}} \over{3}}+2{{a_2}^2 {a_4}^2}+\pi^2{{{a_2}^2 {a_4}^2 } \over{6}}+{{{a_3}^2 {a_4}^2 } \over{8}}+\pi^2{{{a_3}^2 {a_4}^2 } \over{40}}+{{{a_2} {a_4}^3 } \over{3}} +{{a_4}^4 \over{80}} \end{align} }[/math]
Moments for fewer terms are subsumed in these equations. For example, moments of the three-term metalog can be obtained by setting [math]\displaystyle{ a_4 }[/math] to zero. Moments for metalogs with more terms, and higher-order moments ([math]\displaystyle{ m\gt 4 }[/math]), are also available.[22] Moments for semi-bounded and bounded metalogs are not available in closed form.
Parameterization with moments
Three-term unbounded metalogs can be parameterized in closed form with their first three central moments. Let [math]\displaystyle{ m, v, }[/math] and [math]\displaystyle{ s }[/math] be the mean, variance, and skewness, and let [math]\displaystyle{ s_s }[/math] be the standardized skewness, [math]\displaystyle{ s_s=s/v^{3/2} }[/math]. Equivalent expressions of the moments in terms of coefficients, and coefficients in terms of moments, are as follows:
- [math]\displaystyle{ \begin{array}{ll} m = a_1 +{a_3\over2} && a_1 = m -{a_3\over2}\\[6pt] v = \pi^2{{a_2}^2\over3}+{{a_3}^2\over{12}}+\pi^2{{a_3}^2\over{36}} && a_2 = {1\over{\pi}}\Bigl[3\Bigl(v-\Bigl({1\over{12}}+{{\pi}^2\over{36}}\Bigr){a_3}^2\Bigr)\Bigr]^{1\over{2}} \\[6pt] s = \pi^2 {a_2}^2{a_3}+\pi^2 {{a_3}^3 \over{24}} && a_3 = 4\Bigl({6v\over{6+\pi^2}}\Bigr)^{1\over{2}}\cos\Bigl[{1\over{3}}\Bigl(\cos^{-1}\Bigl(-{s_s\over{4}}\Bigl(1+{{\pi}^2\over{6}}\Bigr)^{1\over{2}}\Bigr)+4\pi\Bigr)\Bigr] \\[6pt] \end{array} }[/math]
The equivalence of these two sets of expressions can be derived by noting that the moments equations on the left determine a cubic polynomial in terms of the coefficients [math]\displaystyle{ a_1, a_2, }[/math] and [math]\displaystyle{ a_3 }[/math], which can be solved in closed form as functions of [math]\displaystyle{ m, v, }[/math] and [math]\displaystyle{ s }[/math]. Moreover, this solution is unique.[23] In terms of moments, the feasibility condition is [math]\displaystyle{ |s_s|\leq 2.07093 }[/math], which can be shown to be equivalent to the following feasibility condition in terms of the coefficients: [math]\displaystyle{ a_2\gt 0 }[/math]; and [math]\displaystyle{ {|a_3|/a_2}\lt 1.66711 }[/math].[23]
This property can be used, for example, to represent the sum of independent, non-identically distributed random variables. Based on cumulants, it is known that for any set of independent random variables, the mean, variance, and skewness of the sum are the sums of the respective means, variances, and skewnesses. Parameterizing a three-term metalog with these central moments yields a continuous distribution that exactly preserves these three moments, and accordingly provides a reasonable approximation to the shape of the distribution of the sum of independent random variables.
Simulation
Since their quantile functions are expressed in closed form, metalogs facilitate Monte Carlo simulation. Substituting uniformly distributed random samples of [math]\displaystyle{ y }[/math] into the Metalog quantile function (inverse CDF) produces random samples of [math]\displaystyle{ x }[/math] in closed form, thereby eliminating the need to invert a CDF. See below for simulation applications.
Eliciting and Combining Expert Opinion
Due to their shape flexibility, metalog distributions can be an attractive choice for eliciting and representing expert opinion.[24] Moreover, if the opinions of multiple experts are expressed as [math]\displaystyle{ k }[/math]-term metalogs, the consensus opinion may be calculated as a [math]\displaystyle{ k }[/math]-term metalog in closed form, where the [math]\displaystyle{ \boldsymbol a }[/math]-coefficients of the consensus metalog are simply a weighted average of those of the individual experts.[17] This result follows from Vincentization, where the consensus quantile function is a weighted average of individual quantile functions.
Bayesian Updating in Closed Form
In a classic paper, Howard (1970)[25] shows how the beta-binomial distribution can be used to update, according to Bayes rule in closed form, uncertainty over the long-run frequency [math]\displaystyle{ \phi }[/math] of a coin toss coming up "heads" in light of new coin-toss data. In contrast, if the uncertainty of interest to be updated is defined not by a scalar probability over a discrete event (like the result of a coin toss) but by a probability density function over a continuous variable, metalog Bayesian updating may be used. Under certain conditions, metalog quantile parameters and [math]\displaystyle{ \boldsymbol a }[/math]-coefficients may be updated in closed form in light of new data according to Bayes rule.[17]
Applications
Due to their shape and bounds flexibility, metalogs can be used to represent empirical or other data in virtually any field of human endeavor.
- Astronomy. Metalogs were applied to assess the risks of asteroid impact.[26]
- Cybersecurity. Metalogs were used in cyber security risk assessment.[19][27]
- Eliciting and combining expert opinion. Statistics Canada elicited expert opinions on future Canadian fertility rates from 18 experts, which included the use of spreadsheet-based real-time PDF feedback based on five-term metalogs. The individual expert opinions were then weighted and combined into an overall metalog-based forecast.[24]
- Empirical data exploration and visualization. In fish biology, a 10-term log metalog distribution (bounded below at 0) was fit to the weights of 3,474 steelhead trout caught and released on the Babine River in British Columbia during 2006–2010. The bimodality of the resulting distribution has been attributed to the presence of both first-time and second-time spawners in the river, the latter of which tend to weigh more.[28]
- Hydrology. A 10-term semi-bounded metalog was used to model the probability distribution of annual river gauge heights.[29]
- Oil field production. Semi-bounded SPT metalogs were used to analyze biases in projections of oil-field production when compared to observed production after the fact.[30]
- Portfolio management. SPT metalogs have been used to model commercial value of new products and product portfolios.[31]
- Simulation input distributions. To support a bidding decision, uncertainty about the future value of each of 259 financial assets was represented as an SPT metalog. A simulation of total portfolio value was shown to yield more realistic results than a corresponding simulation based on discrete low, median, and high values for each asset.[32]
- Simulation output distributions. Metalogs have also been used to fit output data from simulations in order to represent those outputs as closed-form continuous distributions (both CDFs and PDFs). Used in this way, they are typically more stable and smoother than histograms.[32]
- Sums of lognormals. Metalogs enable a closed-form representation of known distributions whose CDFs have no closed-form expression. Keelin et al. (2019)[18] apply this to the sum of independent identically distributed lognormal distributions, where quantiles of the sum can be determined by a large number of simulations. Nine such quantiles are used to parameterize a semi-bounded metalog distribution that runs through each of these nine quantiles exactly. Quantile parameters are stored in a table, which can then be interpolated to yield in-between values; these values are guaranteed to be feasible by the convexity property above.
Choosing number of terms
For a given application and data set, choosing the number of metalog terms [math]\displaystyle{ k }[/math] depends on context and may require judgment. For expert elicitation, three to five terms is usually sufficient. For data exploration and matching other probability distributions such as the sum of lognormals, eight to 12 terms is usually sufficient. A metalog panel, which displays the metalog PDFs corresponding to differing numbers of terms [math]\displaystyle{ k }[/math] for a given data set, may aid this judgment. For example, in the steelhead weight metalog panel,[1] using less than seven terms arguably underfits the data by obscuring the data's inherent bimodality. Using more than 11 terms is unnecessary and could, in principle, overfit the data. The case with 16 terms is infeasible for this data set, as indicated by the blank cell in the metalog panel. Other tools (such as regularization, Akaike information criterion, and Bayesian information criterion) may also be useful. For example, when applied to the steelhead weight data, the AIC ranking of metalog distributions from 2-16 terms along with a wide range of classical distributions identifies the 11-term log metalog as the best fit to this data. A similar BIC ranking identifies the 10-term log metalog as the best fit. Keelin (2016)[1] offers further perspectives on the distribution selection within the metalog family.[33]
Related distributions
The metalog distributions belong to the group of distributions defined in terms of the quantile function, which include the quantile-parameterized distributions, the Tukey lambda distribution, its generalization, GLD,[34] the Govindarajulu distribution[35] and others.[13] The following distributions are subsumed within the metalog family:
- The logistic distribution is a special case of the unbounded metalog where [math]\displaystyle{ a_i = 0 }[/math] for all [math]\displaystyle{ i\gt 2 }[/math].
- The uniform distribution is a special case of: 1) the unbounded metalog where [math]\displaystyle{ k\geq4 }[/math], [math]\displaystyle{ a_1 = 0.5 }[/math], [math]\displaystyle{ a_4=1 }[/math] and [math]\displaystyle{ a_i=0 }[/math] otherwise; and 2) the bounded metalog where [math]\displaystyle{ k\geq2 }[/math], [math]\displaystyle{ b_l = 0 }[/math], [math]\displaystyle{ b_u = 1 }[/math], [math]\displaystyle{ a_2 = 1 }[/math], and [math]\displaystyle{ a_i=0 }[/math] otherwise.
- The log-logistic distribution, also known as the Fisk distribution in economics, is a special case of the log metalog where [math]\displaystyle{ b_l = 0 }[/math], and [math]\displaystyle{ a_i = 0 }[/math] for all [math]\displaystyle{ i\gt 2 }[/math].
- The log-uniform distribution is a special case of the log metalog where [math]\displaystyle{ k\geq4 }[/math], [math]\displaystyle{ a_1 = 0.5 }[/math], [math]\displaystyle{ a_4=1 }[/math], and [math]\displaystyle{ a_i=0 }[/math] otherwise.
- The logit-logistic distribution[36] is a special case of the logit metalog where [math]\displaystyle{ a_i = 0 }[/math] for all [math]\displaystyle{ i\gt 2 }[/math].
Software
Freely available software tools can be used to work with metalog distributions:
- Excel workbooks. By pasting or typing in CDF data, metalogs (with choice of bounds) are instantly displayed.
- SPT metalogs workbook[37] calculates 2–3 term metalogs determined by three [math]\displaystyle{ (x_i,y_i) }[/math] CDF data.
- Metalogs workbook[38] calculates 2–16 term metalogs (including metalog panel) determined by 2-10,000 [math]\displaystyle{ (x_i,y_i) }[/math] CDF data.
- ELD (equally likely data) Metalog workbooks[39] calculate 2–16 term metalogs determined by 2–10,000 [math]\displaystyle{ (x_i) }[/math] CDF data, where [math]\displaystyle{ y_i }[/math]'s and metalog panel are automatically calculated.
- R. rmetalog[40] (on Complehensive R Archive Network, CRAN).
- Python. Pymetalog[41] closely mirrors the R package. Metalogistic[42] takes advantage of the SciPy platform.
- MakeDistribution.com[43] facilitates experimentation with metalogs parameterized by several CDF data points. The SPT metalog calculator,[44] metalog calculator[45] and ELD metalog calculator[46] are online versions of the Excel Workbooks.
- SIPmath Modeler Tools[47] support metalog distributions in an Excel add-In for simulation.
- Lumina's Analytica Free 101 software[48] for modeling and aiding difficult decisions.
- BayesFusion's Metalog Builder [49] allows for interactive building of metalog distributions. BayesFusion's GeNIe [50] (academic version of the software is free for academic research and teaching) implements the metalog distributions.
Commercially available packages also support the use of metalog distributions:
- FrontLine Solvers: Analytic Solver, RASON, and Solver SDK,[51] software for optimization. Automatically fits user data to the full range of (bounded and unbounded, multi-term) metalog distributions and provides option to compare metalog distributions with classical distributions based on user-selected goodness of fit criteria.
- Lone Star Analysis: TruNavigator and AnalyticsOS software [52] for predictive and prescriptive analytics.
References
- ↑ 1.0 1.1 1.2 1.3 1.4 Keelin, Thomas W. (2016). "The Metalog Distributions". Decision Analysis 13 (4): 243–277. doi:10.1287/deca.2016.0338. ISSN 1545-8490. https://pubsonline.informs.org/doi/10.1287/deca.2016.0338.
- ↑ "About the Author". http://www.metalogdistributions.com/about.html.
- ↑ De Moivre, A. (1756). The doctrine of chances: or, A method of calculating the probabilities of events in play (Vol. 1). Chelsea Publishing Company.
- ↑ Bayes, T. (1763). LII. An essay towards solving a problem in the doctrine of chances. By the late Rev. Mr. Bayes, FRS communicated by Mr. Price, in a letter to John Canton, AMFR S. Philosophical transactions of the Royal Society of London, (53), pp. 370–418.
- ↑ Johnson NL, Kotz S, Balakrishnan N. Continuous univariate distributions, Vol 1, Second Edition, John Wiley & Sons, Ltd, 1994, pp. 15–25.
- ↑ Ord, J.K., 1972. Families of frequency distributions. Charles Griffin & Co, Ltd, London. Table 1.1, p 6.
- ↑ Johnson, N. L. (1949). "Systems of Frequency Curves Generated by Methods of Translation". Biometrika 36 (1/2): 149–176. doi:10.2307/2332539. PMID 18132090. https://www.jstor.org/stable/2332539.
- ↑ Tadikamalla, Pandu R.; Johnson, Norman L. (1982). "Systems of Frequency Curves Generated by Transformations of Logistic Variables". Biometrika 69 (2): 461–465. doi:10.1093/biomet/69.2.461. https://www.jstor.org/stable/2335422.
- ↑ 9.0 9.1 9.2 9.3 Keelin, Thomas W.; Powley, Bradford W. (2011-08-04). "Quantile-Parameterized Distributions". Decision Analysis 8 (3): 206–219. doi:10.1287/deca.1110.0213. ISSN 1545-8490. https://pubsonline.informs.org/doi/abs/10.1287/deca.1110.0213.
- ↑ 10.0 10.1 10.2 Keelin TW (2016). "The Metalog Distributions." Decision Analysis. 13 (4): 243–277.
- ↑ Parzen, E., 1979, Nonparametric statistical data modeling, Journal of the American Statistical Association,7, 105–131
- ↑ p-PDF: A probability density function expressed as a function of cumulative probability [math]\displaystyle{ y }[/math] rather than variable of interest [math]\displaystyle{ x }[/math]; equivalently, a "density quantile function" as defined by Parzen, E., 1979, Nonparametric statistical data modeling, Journal of the American Statistical Association,7, 105–131
- ↑ 13.0 13.1 Gilchrist, Warren (2000-05-15) (in en). Statistical Modelling with Quantile Functions. Chapman and Hall/CRC. doi:10.1201/9781420035919. ISBN 978-0-429-11920-0. https://www.taylorfrancis.com/books/statistical-modelling-quantile-functions-warren-gilchrist/10.1201/9781420035919.
- ↑ 14.0 14.1 14.2 Keelin, Thomas W. (2016). "The Metalog Distributions". Decision Analysis 13 (4): 243–277. doi:10.1287/deca.2016.0338.
- ↑ "The Metalog Distributions Feasibility". http://www.metalogdistributions.com/equations/feasibility.html.
- ↑ Powley, B.W. (2013). “Quantile Function Methods For Decision Analysis”. Corollary 12, p 30. PhD Dissertation, Stanford University
- ↑ 17.0 17.1 17.2 17.3 17.4 Keelin, Thomas W., and Ronald A. Howard. (2021). “The Metalog Distributions: Virtually Unlimited Shape Flexibility, Combining Expert Opinion in Closed Form, and Bayesian Updating in Closed Form.” OSF Preprints. doi:10.31219/osf.io/xdg5e.
- ↑ 18.0 18.1 Keelin, T.W., Chrisman, L. and Savage, S.L. (2019). “The metalog distributions and extremely accurate sums of lognormals in closed form.” WSC '19: Proceedings of the Winter Simulation Conference. 3074–3085.
- ↑ 19.0 19.1 Faber, I.J. (2019). Cyber Risk Management: AI-generated Warnings of Threats (Doctoral dissertation, Stanford University).
- ↑ 20.0 20.1 Keelin, Thomas W. (2016). "The Metalog Distributions". Decision Analysis 13 (4): 243–277. doi:10.1287/deca.2016.0338. https://doi.org/10.1287/deca.2016.0338.
- ↑ "Metalog Distributions Shape Flexibility". http://www.metalogdistributions.com/shapeflexibility.html.
- ↑ "The Metalog Distribution Moments". http://www.metalogdistributions.com/moments.html.
- ↑ 23.0 23.1 "Equivalence of coefficients' and moments' parameterizations of three-term metalog". http://www.metalogdistributions.com/n3momentsparameters.html.
- ↑ 24.0 24.1 Dion, P., Galbraith, N., Sirag, E. (2020). “Using expert elicitation to build long-term projection assumptions.” In Developments in Demographic Forecasting, Chapter 3, pp. 43–62. Springer
- ↑ Howard, Ronald A. (1970). "Decision analysis: Perspectives on inference, decision, and experimentation". Proceedings of the IEEE 58 (5): 632–643. doi:10.1109/PROC.1970.7719.
- ↑ Reinhardt, Jason C.; Chen, Xi; Liu, Wenhao; Manchev, Petar; Paté-Cornell, M. Elisabeth (2016). "Asteroid Risk Assessment: A Probabilistic Approach". Risk Analysis 36 (2): 244–261. doi:10.1111/risa.12453. PMID 26215051. Bibcode: 2016RiskA..36..244R. https://doi.org/10.1111/risa.12453.
- ↑ Wang, Jiali; Neil, Martin; Fenton, Norman (2020). "A Bayesian network approach for cybersecurity risk assessment implementing and extending the FAIR model". Computers & Security 89: 101659. doi:10.1016/j.cose.2019.101659. https://www.sciencedirect.com/science/article/pii/S0167404819300604.
- ↑ Keelin, Thomas W. (2016). "The Metalog Distributions". Decision Analysis 13 (4): 243–277. doi:10.1287/deca.2016.0338. https://doi.org/10.1287/deca.2016.0338.
- ↑ Keelin, Thomas W. (2016). "The Metalog Distributions". Decision Analysis 13 (4): 243–277. doi:10.1287/deca.2016.0338. https://doi.org/10.1287/deca.2016.0338.
- ↑ Bratvold, Reidar B.; Mohus, Erlend; Petutschnig, David; Bickel, Eric (2020). "Production Forecasting: Optimistic and Overconfident—Over and over Again". Spe Reservoir Evaluation & Engineering 23 (3): 0799–0810. doi:10.2118/195914-PA. https://www.onepetro.org/journal-paper/SPE-195914-PA.
- ↑ "SmartOrg Portfolio Manager". https://smartorg.com/portfolio-navigator.
- ↑ 32.0 32.1 Keelin, Thomas W. (2016). "The Metalog Distributions". Decision Analysis 13 (4): 243–277. doi:10.1287/deca.2016.0338. https://doi.org/10.1287/deca.2016.0338.
- ↑ Keelin, Thomas W. (2016). "The Metalog Distributions". Decision Analysis 13 (4): Section 6.3, pp. 274–275. doi:10.1287/deca.2016.0338. https://doi.org/10.1287/deca.2016.0338.
- ↑ Ramberg, John S.; Schmeiser, Bruce W. (1974-02-01). "An approximate method for generating asymmetric random variables". Communications of the ACM 17 (2): 78–82. doi:10.1145/360827.360840. ISSN 0001-0782.
- ↑ Nair, N. Unnikrishnan; Sankaran, P. G.; Vineshkumar, B. (2012-12-15). "The Govindarajulu Distribution: Some Properties and Applications". Communications in Statistics - Theory and Methods 41 (24): 4391–4406. doi:10.1080/03610926.2011.573168. ISSN 0361-0926. http://dx.doi.org/10.1080/03610926.2011.573168.
- ↑ Wang, Mingliang; Rennolls, Keith (2005). "Tree diameter distribution modelling: Introducing the logit–logistic distribution". Canadian Journal of Forest Research 35 (6): 1305–1313. doi:10.1139/x05-057.
- ↑ "SPT metalogs Excel workbook". http://www.metalogdistributions.com/software/sptmetalogsworkbook.html.
- ↑ "Metalogs workbook". http://www.metalogdistributions.com/software/metalogsworkbook.html.
- ↑ "ELD metalogs workbook". http://www.metalogdistributions.com/software/eldmetalogsworkbooks.html.
- ↑ rmetalog R package
- ↑ Pymetalog Python package
- ↑ Metalogistic Python package
- ↑ MakeDistribution.com website supporting metalog experimentation.
- ↑ Online SPT metalog calculator.
- ↑ Online metalog calculator.
- ↑ Online ELD metalog calculator.
- ↑ SIPmath Modeler Tools Excel add-in
- ↑ Analytica Free 101 software aids modeling of difficult decisions.
- ↑ BayesFusion's Metalog Builder for interactive building of metalog distributions
- ↑ BayesFusion's GeNIe
- ↑ FrontLine Solvers: Analytic Solver, RASON, and Solver SDK software for optimization.
- ↑ Lone Star Analysis: TruNavigator and AnalyticsOS for predictive and prescriptive analytics.
External links
- The Metalog Distributions website, www.metalogs.org
- The Metalog Distributions YouTube channel, educational videos
Original source: https://en.wikipedia.org/wiki/Metalog distribution.
Read more |