HOME

TheInfoList



OR:

In
probability Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
and
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, an exponential family is a parametric set of
probability distribution In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
s of a certain form, specified below. This special form is chosen for mathematical convenience, including the enabling of the user to calculate expectations, covariances using differentiation based on some useful algebraic properties, as well as for generality, as exponential families are in a sense very natural sets of distributions to consider. The term exponential class is sometimes used in place of "exponential family", or the older term Koopman–Darmois family. Sometimes loosely referred to as ''the'' exponential family, this class of distributions is distinct because they all possess a variety of desirable properties, most importantly the existence of a
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
. The concept of exponential families is credited to E. J. G. Pitman, G. Darmois, and B. O. Koopman in 1935–1936. Exponential families of distributions provide a general framework for selecting a possible alternative parameterisation of a
parametric family In mathematics and its applications, a parametric family or a parameterized family is a indexed family, family of objects (a set of related objects) whose differences depend only on the chosen values for a set of parameters. Common examples are p ...
of distributions, in terms of natural parameters, and for defining useful sample statistics, called the natural sufficient statistics of the family.


Nomenclature difficulty

The terms "distribution" and "family" are often used loosely: Specifically, ''an'' exponential family is a ''set'' of distributions, where the specific distribution varies with the parameter; however, a parametric ''family'' of distributions is often referred to as "''a'' distribution" (like "the normal distribution", meaning "the family of normal distributions"), and the set of all exponential families is sometimes loosely referred to as "the" exponential family.


Definition

Most of the commonly used distributions form an exponential family or subset of an exponential family, listed in the subsection below. The subsections following it are a sequence of increasingly more general mathematical definitions of an exponential family. A casual reader may wish to restrict attention to the first and simplest definition, which corresponds to a single-parameter family of
discrete Discrete may refer to: *Discrete particle or quantum in physics, for example in quantum theory * Discrete device, an electronic component with just one circuit element, either passive or active, other than an integrated circuit * Discrete group, ...
or continuous probability distributions.


Examples of exponential family distributions

Exponential families include many of the most common distributions. Among many others, exponential families includes the following: * normal * exponential *
gamma Gamma (; uppercase , lowercase ; ) is the third letter of the Greek alphabet. In the system of Greek numerals it has a value of 3. In Ancient Greek, the letter gamma represented a voiced velar stop . In Modern Greek, this letter normally repr ...
* chi-squared *
beta Beta (, ; uppercase , lowercase , or cursive ; or ) is the second letter of the Greek alphabet. In the system of Greek numerals, it has a value of 2. In Ancient Greek, beta represented the voiced bilabial plosive . In Modern Greek, it represe ...
*
Dirichlet Johann Peter Gustav Lejeune Dirichlet (; ; 13 February 1805 – 5 May 1859) was a German mathematician. In number theory, he proved special cases of Fermat's last theorem and created analytic number theory. In Mathematical analysis, analysis, h ...
* Bernoulli * categorical * Poisson * Wishart * inverse Wishart * geometric A number of common distributions are exponential families, but only when certain parameters are fixed and known. For example: * binomial (with fixed number of trials) * multinomial (with fixed number of trials) *
negative binomial In probability theory and statistics, the negative binomial distribution, also called a Pascal distribution, is a discrete probability distribution that models the number of failures in a sequence of independent and identically distributed Berno ...
(with fixed number of failures) Note that in each case, the parameters which must be fixed are those that set a limit on the range of values that can possibly be observed. Examples of common distributions that are ''not'' exponential families are Student's ''t'', most mixture distributions, and even the family of uniform distributions when the bounds are not fixed. See the section below on
examples Example may refer to: * ''exempli gratia'' (e.g.), usually read out in English as "for example" * .example, reserved as a domain name that may not be installed as a top-level domain of the Internet ** example.com, example.net, example.org, a ...
for more discussion.


Scalar parameter

The value of \theta is called the ''parameter'' of the family. A single-parameter exponential family is a set of probability distributions whose
probability density function In probability theory, a probability density function (PDF), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
(or
probability mass function In probability and statistics, a probability mass function (sometimes called ''probability function'' or ''frequency function'') is a function that gives the probability that a discrete random variable is exactly equal to some value. Sometimes i ...
, for the case of a discrete distribution) can be expressed in the form f_X = h(x)\, \exp \left \eta(\theta) \cdot T(x) - A(\theta) \right where , , , and are known functions. The function must be non-negative. An alternative, equivalent form often given is f_X = h(x) \, g(\theta) \, \exp \left eta(\theta) \cdot T(x)\right or equivalently f_X = \exp\left \eta(\theta) \cdot T(x) - A(\theta) + B(x) \right In terms of log probability, \log(f_X) = \eta(\theta) \cdot T(x) - A(\theta) + B(x). Note that g(\theta) = e^ and h(x) = e^.


Support must be independent of

Importantly, the ''support'' of f_X (all the possible x values for which f_X\!\left( x \big, \theta \right) is greater than 0 ) is required to ''not'' depend on \theta ~. This requirement can be used to exclude a parametric family distribution from being an exponential family. For example: The
Pareto distribution The Pareto distribution, named after the Italian civil engineer, economist, and sociologist Vilfredo Pareto, is a power-law probability distribution that is used in description of social, quality control, scientific, geophysical, actuarial scien ...
has a pdf which is defined for x \geq x_ (the minimum value, x_m\ , being the scale parameter) and its support, therefore, has a lower limit of x_ ~. Since the support of f_\!(x) is dependent on the value of the parameter, the family of
Pareto distribution The Pareto distribution, named after the Italian civil engineer, economist, and sociologist Vilfredo Pareto, is a power-law probability distribution that is used in description of social, quality control, scientific, geophysical, actuarial scien ...
s does not form an exponential family of distributions (at least when x_m is unknown). Another example: Bernoulli-type distributions – binomial,
negative binomial In probability theory and statistics, the negative binomial distribution, also called a Pascal distribution, is a discrete probability distribution that models the number of failures in a sequence of independent and identically distributed Berno ...
,
geometric distribution In probability theory and statistics, the geometric distribution is either one of two discrete probability distributions: * The probability distribution of the number X of Bernoulli trials needed to get one success, supported on \mathbb = \; * T ...
, and similar – can only be included in the exponential class if the number of
Bernoulli trial In the theory of probability and statistics, a Bernoulli trial (or binomial trial) is a random experiment with exactly two possible outcomes, "success" and "failure", in which the probability of success is the same every time the experiment is ...
s, , is treated as a fixed constant – excluded from the free parameter(s) \theta – since the allowed number of trials sets the limits for the number of "successes" or "failures" that can be observed in a set of trials.


Vector valued and

Often x is a vector of measurements, in which case T(x) may be a function from the space of possible values of x to the real numbers. More generally, \eta(\theta) and T(x) can each be vector-valued such that \eta(\theta) \cdot T(x) is real-valued. However, see the discussion below on vector parameters, regarding the exponential family.


Canonical formulation

If \eta(\theta) = \theta \ , then the exponential family is said to be in ''
canonical form In mathematics and computer science, a canonical, normal, or standard form of a mathematical object is a standard way of presenting that object as a mathematical expression. Often, it is one which provides the simplest representation of an obje ...
''. By defining a transformed parameter \eta = \eta(\theta)\ , it is always possible to convert an exponential family to canonical form. The canonical form is non-unique, since \eta(\theta) can be multiplied by any nonzero constant, provided that is multiplied by that constant's reciprocal, or a constant can be added to \eta(\theta) and multiplied by \exp\left \cdot T(x)\,\right to offset it. In the special case that \eta(\theta) = \theta and , then the family is called a '' natural exponential family''. Even when x is a scalar, and there is only a single parameter, the functions \eta(\theta) and T(x) can still be vectors, as described below. The function A(\theta)\ , or equivalently g(\theta)\ , is automatically determined once the other functions have been chosen, since it must assume a form that causes the distribution to be normalized (sum or integrate to one over the entire domain). Furthermore, both of these functions can always be written as functions of \eta\ , even when \eta(\theta) is not a one-to-one function, i.e. two or more different values of \theta map to the same value of \eta(\theta)\ , and hence \eta(\theta) cannot be inverted. In such a case, all values of \theta mapping to the same \eta(\theta) will also have the same value for A(\theta) and g(\theta) ~.


Factorization of the variables involved

What is important to note, and what characterizes all exponential family variants, is that the parameter(s) and the observation variable(s) must factorize (can be separated into products each of which involves only one type of variable), either directly or within either part (the base or exponent) of an
exponentiation In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
operation. Generally, this means that all of the factors constituting the density or mass function must be of one of the following forms: \begin f(x) , && c^ , && ^c , && ^ , && ^ , \\ g(\theta) , && c^ , && ^c , && ^ , && ~~\mathsf~~ ^ , \end where and are arbitrary functions of , the observed statistical variable; and are arbitrary functions of \theta, the fixed parameters defining the shape of the distribution; and is any arbitrary constant expression (i.e. a number or an expression that does not change with either or \theta ). There are further restrictions on how many such factors can occur. For example, the two expressions: ^, \qquad ^ ^, are the same, i.e. a product of two "allowed" factors. However, when rewritten into the factorized form, \begin ^ &= ^ ^ \\ pt&= \exp\left\, \end it can be seen that it cannot be expressed in the required form. (However, a form of this sort is a member of a ''curved exponential family'', which allows multiple factorized terms in the exponent.) To see why an expression of the form ^ qualifies, ^ = e^ and hence factorizes inside of the exponent. Similarly, ^ = e^ = e^ and again factorizes inside of the exponent. A factor consisting of a sum where both types of variables are involved (e.g. a factor of the form 1 + f(x) g(\theta)) cannot be factorized in this fashion (except in some cases where occurring directly in an exponent); this is why, for example, the
Cauchy distribution The Cauchy distribution, named after Augustin-Louis Cauchy, is a continuous probability distribution. It is also known, especially among physicists, as the Lorentz distribution (after Hendrik Lorentz), Cauchy–Lorentz distribution, Lorentz(ian) ...
and Student's ''t'' distribution are not exponential families.


Vector parameter

The definition in terms of one ''real-number'' parameter can be extended to one ''real-vector'' parameter \boldsymbol \theta \equiv \begin \theta_1 & \theta_2 & \cdots & \theta_s \end^\mathsf. A family of distributions is said to belong to a vector exponential family if the probability density function (or probability mass function, for discrete distributions) can be written as f_X(x \mid \boldsymbol) = h(x)\,\exp\left(\sum_^s \eta_i() T_i(x) - A() \right)~, or in a more compact form, f_X(x\mid\boldsymbol \theta) = h(x) \,\exp\left boldsymbol\eta(\boldsymbol) \cdot \mathbf(x) - A() \right This form writes the sum as a
dot product In mathematics, the dot product or scalar productThe term ''scalar product'' means literally "product with a Scalar (mathematics), scalar as a result". It is also used for other symmetric bilinear forms, for example in a pseudo-Euclidean space. N ...
of vector-valued functions \boldsymbol\eta() and . An alternative, equivalent form often seen is f_X(x\mid\boldsymbol \theta) = h(x) \, g(\boldsymbol \theta) \, \exp\left boldsymbol\eta() \cdot \mathbf(x)\right/math> As in the scalar valued case, the exponential family is said to be in ''canonical form'' if \eta_i() = \theta_i ~,\quad \forall i\,. A vector exponential family is said to be ''curved'' if the dimension of \boldsymbol \theta \equiv \begin \theta_1 & \theta_2 & \cdots & \theta_d \end^\mathsf T is less than the dimension of the vector \boldsymbol(\boldsymbol \theta) \equiv \begin \eta_1 & \eta_2 & \cdots & \eta_s \end^\mathsf T~. That is, if the ''dimension'', , of the parameter vector is less than the ''number of functions'', , of the parameter vector in the above representation of the probability density function. Most common distributions in the exponential family are ''not'' curved, and many algorithms designed to work with any exponential family implicitly or explicitly assume that the distribution is not curved. Just as in the case of a scalar-valued parameter, the function A(\boldsymbol \theta) or equivalently g(\boldsymbol \theta) is automatically determined by the normalization constraint, once the other functions have been chosen. Even if \boldsymbol\eta(\boldsymbol\theta) is not one-to-one, functions A(\boldsymbol \eta) and g(\boldsymbol \eta) can be defined by requiring that the distribution is normalized for each value of the natural parameter \boldsymbol\eta. This yields the ''canonical form'' f_X(x\mid\boldsymbol \eta) = h(x) \exp\left boldsymbol\eta \cdot \mathbf(x) - A()\right or equivalently f_X(x\mid\boldsymbol \eta) = h(x) g(\boldsymbol \eta) \exp\left boldsymbol\eta \cdot \mathbf(x)\right The above forms may sometimes be seen with \boldsymbol\eta^\mathsf T \mathbf(x) in place of \boldsymbol\eta \cdot \mathbf(x)\,. These are exactly equivalent formulations, merely using different notation for the
dot product In mathematics, the dot product or scalar productThe term ''scalar product'' means literally "product with a Scalar (mathematics), scalar as a result". It is also used for other symmetric bilinear forms, for example in a pseudo-Euclidean space. N ...
.


Vector parameter, vector variable

The vector-parameter form over a single scalar-valued random variable can be trivially expanded to cover a joint distribution over a vector of random variables. The resulting distribution is simply the same as the above distribution for a scalar-valued random variable with each occurrence of the scalar replaced by the vector \mathbf = \begin x_1 & x_2 & \cdots & x_k \end^. The dimensions of the random variable need not match the dimension of the parameter vector, nor (in the case of a curved exponential function) the dimension of the natural parameter \boldsymbol\eta and
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
 . The distribution in this case is written as f_X = h(\mathbf) \, \exp\!\left sum_^s \eta_i() T_i(\mathbf) - A()\right/math> Or more compactly as f_X = h(\mathbf) \, \exp\left boldsymbol\eta() \cdot \mathbf(\mathbf) - A()\right/math> Or alternatively as f_X = g(\boldsymbol \theta) \, h(\mathbf) \, \exp\left \boldsymbol\eta(\boldsymbol) \cdot \mathbf(\mathbf)\right/math>


Measure-theoretic formulation

We use
cumulative distribution function In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x. Ever ...
s (CDF) in order to encompass both discrete and continuous distributions. Suppose is a non-decreasing function of a real variable. Then Lebesgue–Stieltjes integrals with respect to dH(\mathbf) are integrals with respect to the ''reference measure'' of the exponential family generated by  . Any member of that exponential family has cumulative distribution function dF = \exp\left boldsymbol\eta(\theta) \cdot \mathbf(\mathbf) - A(\boldsymbol\theta)\right~ dH(\mathbf) \,. is a Lebesgue–Stieltjes integrator for the reference measure. When the reference measure is finite, it can be normalized and is actually the
cumulative distribution function In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x. Ever ...
of a probability distribution. If is absolutely continuous with a density f(x) with respect to a reference measure dx (typically
Lebesgue measure In measure theory, a branch of mathematics, the Lebesgue measure, named after French mathematician Henri Lebesgue, is the standard way of assigning a measure to subsets of higher dimensional Euclidean '-spaces. For lower dimensions or , it c ...
), one can write dF(x) = f(x) \, dx . In this case, is also absolutely continuous and can be written dH(x) = h(x) \, dx so the formulas reduce to that of the previous paragraphs. If is discrete, then is a step function (with steps on the support of ). Alternatively, we can write the probability measure directly as P\left(d\mathbf \mid \boldsymbol\theta\right) = \exp\left \boldsymbol\eta(\theta) \cdot \mathbf(\mathbf) - A(\boldsymbol\theta) \right~ \mu(d\mathbf)\,. for some reference measure \mu\,.


Interpretation

In the definitions above, the functions , , and were arbitrary. However, these functions have important interpretations in the resulting probability distribution. * is a ''
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
'' of the distribution. For exponential families, the sufficient statistic is a function of the data that holds all information the data provides with regard to the unknown parameter values. This means that, for any data sets x and y, the likelihood ratio is the same, that is \frac = \frac if . This is true even if and are not equal to each other. The dimension of equals the number of parameters of and encompasses all of the information regarding the data related to the parameter . The sufficient statistic of a set of independent identically distributed data observations is simply the sum of individual sufficient statistics, and encapsulates all the information needed to describe the
posterior distribution The posterior probability is a type of conditional probability that results from updating the prior probability with information summarized by the likelihood via an application of Bayes' rule. From an epistemological perspective, the posterior ...
of the parameters, given the data (and hence to derive any desired estimate of the parameters). (This important property is discussed further below.) * is called the ''natural parameter''. The set of values of for which the function f_X(x;\eta) is integrable is called the ''natural parameter space''. It can be shown that the natural parameter space is always
convex Convex or convexity may refer to: Science and technology * Convex lens, in optics Mathematics * Convex set, containing the whole line segment that joins points ** Convex polygon, a polygon which encloses a convex set of points ** Convex polytop ...
. * is called the ''log- partition function'' because it is the
logarithm In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
of a normalization factor, without which f_X(x;\theta) would not be a probability distribution: A(\eta) = \log\left ( \int_X h(x)\,\exp \left eta(\theta) \cdot T(x)\right\, dx \right ) The function is important in its own right, because the
mean A mean is a quantity representing the "center" of a collection of numbers and is intermediate to the extreme values of the set of numbers. There are several kinds of means (or "measures of central tendency") in mathematics, especially in statist ...
,
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
and other moments of the sufficient statistic can be derived simply by differentiating . For example, because is one of the components of the sufficient statistic of the gamma distribution, \operatorname log x/math> can be easily determined for this distribution using . Technically, this is true because K = A(\eta+u) - A(\eta) \, , is the
cumulant generating function In probability theory and statistics, the cumulants of a probability distribution are a set of quantities that provide an alternative to the '' moments'' of the distribution. Any two probability distributions whose moments are identical will have ...
of the sufficient statistic.


Properties

Exponential families have a large number of properties that make them extremely useful for statistical analysis. In many cases, it can be shown that ''only'' exponential families have these properties. Examples: *Exponential families are the only families with
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
s that can summarize arbitrary amounts of independent identically distributed data using a fixed number of values. ( PitmanKoopmanDarmois theorem) *Exponential families have conjugate priors, an important property in
Bayesian statistics Bayesian statistics ( or ) is a theory in the field of statistics based on the Bayesian interpretation of probability, where probability expresses a ''degree of belief'' in an event. The degree of belief may be based on prior knowledge about ...
. *The posterior predictive distribution of an exponential-family random variable with a conjugate prior can always be written in closed form (provided that the normalizing factor of the exponential-family distribution can itself be written in closed form). *In the mean-field approximation in variational Bayes (used for approximating the
posterior distribution The posterior probability is a type of conditional probability that results from updating the prior probability with information summarized by the likelihood via an application of Bayes' rule. From an epistemological perspective, the posterior ...
in large Bayesian networks), the best approximating posterior distribution of an exponential-family node (a node is a random variable in the context of Bayesian networks) with a conjugate prior is in the same family as the node. Given an exponential family defined by f_X = h(x) \exp\left theta \cdot T(x) - A(\theta)\right/math>, where \Theta is the parameter space, such that \theta\in\Theta\subset\R^k. Then * If \Theta has nonempty interior in \R^k, then given any IID samples X_1,... , X_n\sim f_X, the statistic T(X_1, \dots, X_n):= \sum_^n T(X_i) is a complete statistic for \theta. * T is a minimal statistic for \theta
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either bo ...
for all \theta_1, \theta_2\in \Theta, and x_1, x_2 in the support of X, if (\theta_1 - \theta_2) \cdot (x_1) - T(x_2)= 0, then \theta_1 = \theta_2 or x_1 = x_2.


Examples

It is critical, when considering the examples in this section, to remember the discussion above about what it means to say that a "distribution" is an exponential family, and in particular to keep in mind that the set of parameters that are allowed to vary is critical in determining whether a "distribution" is or is not an exponential family. The normal, exponential, log-normal,
gamma Gamma (; uppercase , lowercase ; ) is the third letter of the Greek alphabet. In the system of Greek numerals it has a value of 3. In Ancient Greek, the letter gamma represented a voiced velar stop . In Modern Greek, this letter normally repr ...
, chi-squared,
beta Beta (, ; uppercase , lowercase , or cursive ; or ) is the second letter of the Greek alphabet. In the system of Greek numerals, it has a value of 2. In Ancient Greek, beta represented the voiced bilabial plosive . In Modern Greek, it represe ...
,
Dirichlet Johann Peter Gustav Lejeune Dirichlet (; ; 13 February 1805 – 5 May 1859) was a German mathematician. In number theory, he proved special cases of Fermat's last theorem and created analytic number theory. In Mathematical analysis, analysis, h ...
, Bernoulli, categorical, Poisson, geometric, inverse Gaussian, ALAAM, von Mises, and von Mises-Fisher distributions are all exponential families. Some distributions are exponential families only if some of their parameters are held fixed. The family of
Pareto distribution The Pareto distribution, named after the Italian civil engineer, economist, and sociologist Vilfredo Pareto, is a power-law probability distribution that is used in description of social, quality control, scientific, geophysical, actuarial scien ...
s with a fixed minimum bound ''x''m form an exponential family. The families of binomial and multinomial distributions with fixed number of trials ''n'' but unknown probability parameter(s) are exponential families. The family of
negative binomial distribution In probability theory and statistics, the negative binomial distribution, also called a Pascal distribution, is a discrete probability distribution that models the number of failures in a sequence of independent and identically distributed Berno ...
s with fixed number of failures (a.k.a. stopping-time parameter) ''r'' is an exponential family. However, when any of the above-mentioned fixed parameters are allowed to vary, the resulting family is not an exponential family. As mentioned above, as a general rule, the support of an exponential family must remain the same across all parameter settings in the family. This is why the above cases (e.g. binomial with varying number of trials, Pareto with varying minimum bound) are not exponential families — in all of the cases, the parameter in question affects the support (particularly, changing the minimum or maximum possible value). For similar reasons, neither the
discrete uniform distribution In probability theory and statistics, the discrete uniform distribution is a symmetric probability distribution wherein each of some finite whole number ''n'' of outcome values are equally likely to be observed. Thus every one of the ''n'' out ...
nor
continuous uniform distribution In probability theory and statistics, the continuous uniform distributions or rectangular distributions are a family of symmetric probability distributions. Such a distribution describes an experiment where there is an arbitrary outcome that li ...
are exponential families as one or both bounds vary. The Weibull distribution with fixed shape parameter ''k'' is an exponential family. Unlike in the previous examples, the shape parameter does not affect the support; the fact that allowing it to vary makes the Weibull non-exponential is due rather to the particular form of the Weibull's
probability density function In probability theory, a probability density function (PDF), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
(''k'' appears in the exponent of an exponent). In general, distributions that result from a finite or infinite
mixture In chemistry, a mixture is a material made up of two or more different chemical substances which can be separated by physical method. It is an impure substance made up of 2 or more elements or compounds mechanically mixed together in any proporti ...
of other distributions, e.g. mixture model densities and compound probability distributions, are ''not'' exponential families. Examples are typical Gaussian mixture models as well as many heavy-tailed distributions that result from
compounding In the field of pharmacy, compounding (performed in compounding pharmacies) is preparation of custom medications to fit unique needs of patients that cannot be met with mass-produced formulations. This may be done, for example, to provide medic ...
(i.e. infinitely mixing) a distribution with a
prior distribution A prior probability distribution of an uncertain quantity, simply called the prior, is its assumed probability distribution before some evidence is taken into account. For example, the prior could be the probability distribution representing the ...
over one of its parameters, e.g. the Student's ''t''-distribution (compounding a
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...
over a gamma-distributed precision prior), and the beta-binomial and Dirichlet-multinomial distributions. Other examples of distributions that are not exponential families are the
F-distribution In probability theory and statistics, the ''F''-distribution or ''F''-ratio, also known as Snedecor's ''F'' distribution or the Fisher–Snedecor distribution (after Ronald Fisher and George W. Snedecor), is a continuous probability distribut ...
,
Cauchy distribution The Cauchy distribution, named after Augustin-Louis Cauchy, is a continuous probability distribution. It is also known, especially among physicists, as the Lorentz distribution (after Hendrik Lorentz), Cauchy–Lorentz distribution, Lorentz(ian) ...
, hypergeometric distribution and
logistic distribution In probability theory and statistics, the logistic distribution is a continuous probability distribution. Its cumulative distribution function is the logistic function, which appears in logistic regression and feedforward neural networks. It rese ...
. Following are some detailed examples of the representation of some useful distribution as exponential families.


Normal distribution: unknown mean, known variance

As a first example, consider a random variable distributed normally with unknown mean and ''known'' variance . The probability density function is then f_\sigma(x;\mu) = \frac 1 e^. This is a single-parameter exponential family, as can be seen by setting \begin T_\sigma(x) &= \frac x \sigma, & h_\sigma(x) &= \frac 1 e^, \\ ptA_\sigma(\mu) &= \frac, & \eta_\sigma(\mu) &= \frac \mu \sigma. \end If this is in canonical form, as then .


Normal distribution: unknown mean and unknown variance

Next, consider the case of a normal distribution with unknown mean and unknown variance. The probability density function is then f(y;\mu,\sigma^2) = \frac e^. This is an exponential family which can be written in canonical form by defining \begin h(y) &= \frac, & \boldsymbol &= \left frac, ~-\frac\right \\ T(y) &= \left( y, y^2 \right)^\mathsf, & A(\boldsymbol) &= \frac + \log , \sigma, = -\frac + \frac\log\left, \frac \ \end


Binomial distribution

As an example of a discrete exponential family, consider the
binomial distribution In probability theory and statistics, the binomial distribution with parameters and is the discrete probability distribution of the number of successes in a sequence of statistical independence, independent experiment (probability theory) ...
with ''known'' number of trials . The
probability mass function In probability and statistics, a probability mass function (sometimes called ''probability function'' or ''frequency function'') is a function that gives the probability that a discrete random variable is exactly equal to some value. Sometimes i ...
for this distribution is f(x) = \binom p^x ^ , \quad x \in \. This can equivalently be written as f(x) = \binom \exp\left \log\left(\frac\right) + n \log(1-p)\right which shows that the binomial distribution is an exponential family, whose natural parameter is \eta = \log\frac. This function of ''p'' is known as
logit In statistics, the logit ( ) function is the quantile function associated with the standard logistic distribution. It has many uses in data analysis and machine learning, especially in Data transformation (statistics), data transformations. Ma ...
.


Table of distributions

The following table shows how to rewrite a number of common distributions as exponential-family distributions with natural parameters. Refer to the flashcards for main exponential families. For a scalar variable and scalar parameter, the form is as follows: f_X(x \mid \theta) = h(x) \exp\left eta() T(x) - A(\eta)\right For a scalar variable and vector parameter: \begin f_X(x\mid\boldsymbol \theta) &= h(x) \,\exp\left boldsymbol\eta() \cdot \mathbf(x) - A()\right\\ ptf_X(x\mid\boldsymbol \theta) &= h(x) \, g(\boldsymbol \theta) \, \exp\left boldsymbol\eta(\boldsymbol) \cdot \mathbf(x)\right\end For a vector variable and vector parameter: f_X(\mathbf\mid\boldsymbol \theta) = h(\mathbf) \, \exp \left boldsymbol\eta() \cdot \mathbf(\mathbf) - A()\right/math> The above formulas choose the functional form of the exponential-family with a log-partition function A(). The reason for this is so that the moments of the sufficient statistics can be calculated easily, simply by differentiating this function. Alternative forms involve either parameterizing this function in terms of the normal parameter \boldsymbol\theta instead of the natural parameter, and/or using a factor g(\boldsymbol\eta) outside of the exponential. The relation between the latter and the former is: \begin A(\boldsymbol) &= -\log g(\boldsymbol), \\ ptg(\boldsymbol) &= e^ \end To convert between the representations involving the two types of parameter, use the formulas below for writing one type of parameter in terms of the other. {, class="wikitable" ! Distribution ! Parameter(s) ! Natural parameter(s) ! Inverse parameter mapping ! Base measure ! Sufficient statistic ! Log-partition ! Log-partition , - ,
Bernoulli distribution In probability theory and statistics, the Bernoulli distribution, named after Swiss mathematician Jacob Bernoulli, is the discrete probability distribution of a random variable which takes the value 1 with probability p and the value 0 with pro ...
, , p , \log\frac{p}{1-p}
This is the
logit function In statistics, the logit ( ) function is the quantile function associated with the standard logistic distribution. It has many uses in data analysis and machine learning, especially in Data transformation (statistics), data transformations. Ma ...
. , \frac{1}{1+e^{-\eta = \frac{e^\eta}{1+e^{\eta
This is the
logistic function A logistic function or logistic curve is a common S-shaped curve ( sigmoid curve) with the equation f(x) = \frac where The logistic function has domain the real numbers, the limit as x \to -\infty is 0, and the limit as x \to +\infty is L. ...
. , 1 , x , \log (1+e^{\eta}) , -\log (1-p) , - ,
binomial distribution In probability theory and statistics, the binomial distribution with parameters and is the discrete probability distribution of the number of successes in a sequence of statistical independence, independent experiment (probability theory) ...

with known number of trials n , , p , \log\frac{p}{1-p} , \frac{1}{1+e^{-\eta = \frac{e^\eta}{1+e^{\eta , \binom{n}{x} , x , n \log (1+e^{\eta}) , -n \log (1-p) , - ,
Poisson distribution In probability theory and statistics, the Poisson distribution () is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time if these events occur with a known const ...
, , \lambda , \log\lambda , e^\eta , \frac{1}{x!} , x , e^{\eta} , \lambda , - ,
negative binomial distribution In probability theory and statistics, the negative binomial distribution, also called a Pascal distribution, is a discrete probability distribution that models the number of failures in a sequence of independent and identically distributed Berno ...

with known number of failures r , , p , \log(1-p) , 1-e^\eta , \binom{x {+} r {-} 1}{x} , x , -r \log (1-e^{\eta}) , -r \log (1-p) , - ,
exponential distribution In probability theory and statistics, the exponential distribution or negative exponential distribution is the probability distribution of the distance between events in a Poisson point process, i.e., a process in which events occur continuousl ...
, , \lambda , -\lambda , -\eta , 1 , x , -\log(-\eta) , -\log\lambda , - ,
Pareto distribution The Pareto distribution, named after the Italian civil engineer, economist, and sociologist Vilfredo Pareto, is a power-law probability distribution that is used in description of social, quality control, scientific, geophysical, actuarial scien ...

with known minimum value x_m , , \alpha , -\alpha-1 , -1-\eta , 1 , \log x , \begin{align} & - \log (-1-\eta) \\ & + (1+\eta) \log x_{\mathrm m}\end{align} , - \log \left(\alpha x_{\mathrm m}^\alpha\right) , - , Weibull distribution
with known shape , , \lambda , -\frac{1}{\lambda^k} , (-\eta)^{-1/k} , x^{k-1} , x^k , \log \left(- \frac{1}{\eta k}\right) , \log \frac{\lambda^k}{k} , - ,
Laplace distribution In probability theory and statistics, the Laplace distribution is a continuous probability distribution named after Pierre-Simon Laplace. It is also sometimes called the double exponential distribution, because it can be thought of as two exponen ...

with known mean \mu , , b , -\frac{1}{b} , -\frac{1}{\eta} , 1 , , x-\mu, , \log\left(-\frac{2}{\eta}\right) , \log 2b , - ,
chi-squared distribution In probability theory and statistics, the \chi^2-distribution with k Degrees of freedom (statistics), degrees of freedom is the distribution of a sum of the squares of k Independence (probability theory), independent standard normal random vari ...
, , \nu , \frac{\nu}{2}-1 , 2(\eta+1) , e^{-x/2} , \log x , \begin{align} & \log \Gamma(\eta+1) \\ & + (\eta+1)\log 2 \end{align} , \begin{align} & \log \Gamma{\left(\tfrac{\nu}{2}\right)} \\ &+ \tfrac{\nu}{2} \log 2 \end{align} , - ,
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...

known variance , , \mu , \frac{\mu}{\sigma} , \sigma\eta , \frac{e^{-x^2/(2\sigma^2){\sqrt{2\pi}\sigma} , \frac{x}{\sigma} , \frac{\eta^2}{2} , \frac{\mu^2}{2\sigma^2} , - , continuous Bernoulli distribution , , \lambda , \log\frac{\lambda}{1-\lambda} , \frac{e^\eta}{1+e^\eta} , 1 , x , \log\frac{e^\eta - 1}{\eta} , \begin{align} &\log\left(\tfrac{1 - 2\lambda}{1 - \lambda}\right) \\ ex{}-{}& \log^2 \left(\tfrac{1}{\lambda} - 1\right) \end{align}
where refers to the iterated logarithm , - ,
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...
, , \mu,\ \sigma^2 , \begin{bmatrix} \dfrac{\mu}{\sigma^2} \\ ex-\dfrac{1}{2\sigma^2} \end{bmatrix} , \begin{bmatrix} -\dfrac{\eta_1}{2\eta_2} \\ ex-\dfrac{1}{2\eta_2} \end{bmatrix} , \frac{1}{\sqrt{2\pi , \begin{bmatrix} x \\ x^2 \end{bmatrix} , -\frac{\eta_1^2}{4\eta_2} - \frac{1}{2}\log(-2\eta_2) , \frac{\mu^2}{2\sigma^2} + \log \sigma , - ,
log-normal distribution In probability theory, a log-normal (or lognormal) distribution is a continuous probability distribution of a random variable whose logarithm is normal distribution, normally distributed. Thus, if the random variable is log-normally distributed ...
, , \mu,\ \sigma^2 , \begin{bmatrix} \dfrac{\mu}{\sigma^2} \\ ex-\dfrac{1}{2\sigma^2} \end{bmatrix} , \begin{bmatrix} -\dfrac{\eta_1}{2\eta_2} \\ ex-\dfrac{1}{2\eta_2} \end{bmatrix} , \frac{1}{\sqrt{2\pi}x} , \begin{bmatrix} \log x \\ (\log x)^2 \end{bmatrix} , -\frac{\eta_1^2}{4\eta_2} - \frac{1}{2} \log(-2\eta_2) , \frac{\mu^2}{2\sigma^2} + \log \sigma , - ,
inverse Gaussian distribution In probability theory, the inverse Gaussian distribution (also known as the Wald distribution) is a two-parameter family of continuous probability distributions with support (mathematics), support on (0,∞). Its probability density function is ...
, , \mu,\ \lambda , \begin{bmatrix} -\dfrac{\lambda}{2\mu^2} \\ 5pt-\dfrac{\lambda}{2} \end{bmatrix} , \begin{bmatrix} \sqrt{\dfrac{\eta_2}{\eta_1 \\ 5pt-2\eta_2 \end{bmatrix} , \frac{1}{\sqrt{2\pi}x^{3/2 , \begin{bmatrix} x \\ pt\dfrac{1}{x} \end{bmatrix} , -2\sqrt{\eta_1 \eta_2} -\tfrac{1}{2} \log(-2 \eta_2) , - \tfrac{\lambda}{\mu} - \tfrac{1}{2} \log\lambda , - , rowspan=2, gamma distribution , , \alpha,\ \beta , \begin{bmatrix} \alpha-1 \\ -\beta \end{bmatrix} , \begin{bmatrix} \eta_1+1 \\ -\eta_2 \end{bmatrix} , rowspan=2, 1 , rowspan=2, \begin{bmatrix} \log x \\ x \end{bmatrix} , rowspan=2, \begin{align} &\log \Gamma(\eta_1+1) \\ {}-{}& (\eta_1+1)\log(-\eta_2) \end{align} , \log \frac{\Gamma(\alpha)}{\beta^\alpha} , - , k,\ \theta , \begin{bmatrix} k-1 \\ pt-\dfrac{1}{\theta} \end{bmatrix} , \begin{bmatrix} \eta_1+1 \\ pt-\dfrac{1}{\eta_2} \end{bmatrix} , \log \frac{\Gamma(k)}{\theta^k} , - , inverse gamma distribution , , \alpha,\ \beta , \begin{bmatrix} -\alpha-1 \\ -\beta \end{bmatrix} , \begin{bmatrix} -\eta_1-1 \\ -\eta_2 \end{bmatrix} , 1 , \begin{bmatrix} \log x \\ \frac{1}{x} \end{bmatrix} , \begin{align} &\log \Gamma(-\eta_1-1) \\ + & \left(\eta_1 + 1\right) \log(-\eta_2) \end{align} , \log \frac{\Gamma(\alpha)}{\beta^\alpha} , - ,
generalized inverse Gaussian distribution In probability theory and statistics, the generalized inverse Gaussian distribution (GIG) is a three-parameter family of continuous probability distributions with probability density function :f(x) = \frac x^ e^,\qquad x>0, where ''Kp'' is a mo ...
, , p,\ a,\ b , \begin{bmatrix} p-1 \\ -a/2 \\ -b/2 \end{bmatrix} , \begin{bmatrix} \eta_1+1 \\ -2\eta_2\\ -2\eta_3 \end{bmatrix} , 1 , \begin{bmatrix} \log x \\ x \\ \frac{1}{x} \end{bmatrix} , \begin{align} & \log 2 K_{\eta_1+1}{\!\left(\sqrt{4\eta_2\eta_3}\right)} \\ pt{}-{}&\frac{\eta_1+1}{2} \log\frac{\eta_2}{\eta_3} \end{align} , \begin{align} & \log 2 K_{p}(\sqrt{ab}) \\ pt&{}- \frac{p}{2} \log\frac{a}{b} \end{align} , - , scaled inverse chi-squared distribution , , \nu,\ \sigma^2 , \begin{bmatrix} -\dfrac{\nu}{2}-1 \\ 0pt-\dfrac{\nu\sigma^2}{2} \end{bmatrix} , \begin{bmatrix} -2(\eta_1+1) \\ 0pt\dfrac{\eta_2}{\eta_1+1} \end{bmatrix} , 1 , \begin{bmatrix} \log x \\ \frac{1}{x} \end{bmatrix} , \begin{align} & \log \Gamma(-\eta_1 - 1) \\ pt+ & \left(\eta_1 + 1\right) \log(-\eta_2) \end{align} , \begin{align} & \log \Gamma{\left(\frac{\nu}{2}\right)} \\ pt{}-{} & \frac{\nu}{2} \log \frac{\nu \sigma^2}{2} \end{align} , - ,
beta distribution In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval
, 1 The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
or (0, 1) in terms of two positive Statistical parameter, parameters, denoted by ''alpha'' (''α'') an ...


(variant 1) , , \alpha,\ \beta , \begin{bmatrix} \alpha \\ \beta \end{bmatrix} , \begin{bmatrix} \eta_1 \\ \eta_2 \end{bmatrix} , \frac{1}{x(1-x)} , \begin{bmatrix} \log x \\ \log (1{-}x) \end{bmatrix} , \log \frac{\Gamma(\eta_1) \, \Gamma(\eta_2)}{\Gamma(\eta_1 + \eta_2)} , \log \frac{\Gamma(\alpha) \, \Gamma(\beta)}{\Gamma(\alpha + \beta)} , - ,
beta distribution In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval
, 1 The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
or (0, 1) in terms of two positive Statistical parameter, parameters, denoted by ''alpha'' (''α'') an ...


(variant 2) , , \alpha,\ \beta , \begin{bmatrix} \alpha - 1 \\ \beta - 1 \end{bmatrix} , \begin{bmatrix} \eta_1 + 1 \\ \eta_2 + 1 \end{bmatrix} , 1 , \begin{bmatrix} \log x \\ \log (1{-}x) \end{bmatrix} , \log \frac{\Gamma(\eta_1 + 1) \, \Gamma(\eta_2 + 1)}{\Gamma(\eta_1 + \eta_2 + 2)} , \log \frac{\Gamma(\alpha) \, \Gamma(\beta)}{\Gamma(\alpha + \beta)} , - ,
multivariate normal distribution In probability theory and statistics, the multivariate normal distribution, multivariate Gaussian distribution, or joint normal distribution is a generalization of the one-dimensional ( univariate) normal distribution to higher dimensions. One d ...
, , \boldsymbol\mu,\ \boldsymbol\Sigma , \begin{bmatrix} \boldsymbol\Sigma^{-1}\boldsymbol\mu \\ pt-\frac12\boldsymbol\Sigma^{-1} \end{bmatrix} , \begin{bmatrix} -\frac12\boldsymbol\eta_2^{-1}\boldsymbol\eta_1 \\ pt-\frac12\boldsymbol\eta_2^{-1} \end{bmatrix} , (2\pi)^{-\frac{k}{2 , \begin{bmatrix} \mathbf{x} \\ pt\mathbf{x}\mathbf{x}^{\mathsf T} \end{bmatrix} , \begin{align} &-\tfrac{1}{4} \boldsymbol{\eta}_1^{\mathsf T} \boldsymbol{\eta}_2^{-1} \boldsymbol{\eta}_1 \\ &- \tfrac{1}{2} \log \left, -2\boldsymbol\eta_2\ \end{align} , \begin{align} & \tfrac{1}{2} \boldsymbol{\mu}^\mathsf{T} \boldsymbol{\Sigma}^{-1} \boldsymbol{\mu} \\ + & \tfrac{1}{2} \log \left, \boldsymbol{\Sigma}\ \end{align} , - ,
categorical distribution In probability theory and statistics, a categorical distribution (also called a generalized Bernoulli distribution, multinoulli distribution) is a discrete probability distribution that describes the possible results of a random variable that can ...


(variant 1) , , p_1,\ \ldots,\,p_k

where \sum\limits_{i=1}^k p_i=1 , \begin{bmatrix} \log p_1 \\ \vdots \\ \log p_k \end{bmatrix} , \begin{bmatrix} e^{\eta_1} \\ \vdots \\ e^{\eta_k} \end{bmatrix}

where \sum\limits_{i=1}^k e^{\eta_i}=1 , 1 , \begin{bmatrix} =1\\ \vdots \\ { =k \end{bmatrix} =i/math> is the
Iverson bracket In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement . It maps any statement to a function of the free variables in that statement. ...
, 0 , 0 , - ,
categorical distribution In probability theory and statistics, a categorical distribution (also called a generalized Bernoulli distribution, multinoulli distribution) is a discrete probability distribution that describes the possible results of a random variable that can ...


(variant 2) , , p_1,\ \ldots,\,p_k

where \sum\limits_{i=1}^k p_i=1 , \begin{bmatrix} \log p_1+C \\ \vdots \\ \log p_k+C \end{bmatrix} , \frac{1}{C} \begin{bmatrix} e^{\eta_1} \\ \vdots \\ e^{\eta_k} \end{bmatrix}where C = \sum\limits_{i=1}^k e^{\eta_i} , 1 , \begin{bmatrix} =1\\ \vdots \\ { =k \end{bmatrix} =i/math> is the
Iverson bracket In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement . It maps any statement to a function of the free variables in that statement. ...
, 0 , 0 , - ,
categorical distribution In probability theory and statistics, a categorical distribution (also called a generalized Bernoulli distribution, multinoulli distribution) is a discrete probability distribution that describes the possible results of a random variable that can ...


(variant 3) , , p_1,\ \ldots,\,p_k

where p_k = 1 - \sum\limits_{i=1}^{k-1} p_i , \begin{bmatrix} \log \dfrac{p_1}{p_k} \\ 0pt\vdots \\ pt\log \dfrac{p_{k-1{p_k} \\ 5pt0 \end{bmatrix} This is the inverse
softmax function The softmax function, also known as softargmax or normalized exponential function, converts a tuple of real numbers into a probability distribution of possible outcomes. It is a generalization of the logistic function to multiple dimensions, a ...
, a generalization of the
logit function In statistics, the logit ( ) function is the quantile function associated with the standard logistic distribution. It has many uses in data analysis and machine learning, especially in Data transformation (statistics), data transformations. Ma ...
. , \frac{1}{C_1} \begin{bmatrix} e^{\eta_1} \\ pt\vdots \\ pte^{\eta_k} \end{bmatrix} =
\frac{1}{C_2} \begin{bmatrix} e^{\eta_1} \\ pt\vdots \\ pte^{\eta_{k-1 \\ pt1 \end{bmatrix}
where C_1 = \sum\limits_{i=1}^k e^{\eta_i} and C_2 = 1 + \sum\limits_{i=1}^{k-1} e^{\eta_i}. This is the
softmax function The softmax function, also known as softargmax or normalized exponential function, converts a tuple of real numbers into a probability distribution of possible outcomes. It is a generalization of the logistic function to multiple dimensions, a ...
, a generalization of the
logistic function A logistic function or logistic curve is a common S-shaped curve ( sigmoid curve) with the equation f(x) = \frac where The logistic function has domain the real numbers, the limit as x \to -\infty is 0, and the limit as x \to +\infty is L. ...
. , 1 , \begin{bmatrix} =1\\ \vdots \\ { =k \end{bmatrix} =i/math> is the
Iverson bracket In mathematics, the Iverson bracket, named after Kenneth E. Iverson, is a notation that generalises the Kronecker delta, which is the Iverson bracket of the statement . It maps any statement to a function of the free variables in that statement. ...
, \begin{align} & \textstyle \log \left(\sum\limits_{i=1}^{k} e^{\eta_i}\right) \\ ={}& \textstyle \log \left(1 + \sum\limits_{i=1}^{k-1} e^{\eta_i}\right) \end{align} , -\log p_k , - , multinomial distribution
(variant 1)
with known number of trials , , p_1,\ \ldots,\,p_k

where \sum\limits_{i=1}^k p_i=1 , \begin{bmatrix} \log p_1 \\ \vdots \\ \log p_k \end{bmatrix} , \begin{bmatrix} e^{\eta_1} \\ \vdots \\ e^{\eta_k} \end{bmatrix}

where \sum\limits_{i=1}^k e^{\eta_i}=1 , \frac{n!}{\prod\limits_{i=1}^k x_i!} , \begin{bmatrix} x_1 \\ \vdots \\ x_k \end{bmatrix} , 0 , 0 , - , multinomial distribution
(variant 2)
with known number of trials n , , p_1,\ \ldots,\,p_k

where \sum\limits_{i=1}^k p_i=1 , \begin{bmatrix} \log p_1+C \\ \vdots \\ \log p_k+C \end{bmatrix} , \frac{1}{C} \begin{bmatrix} e^{\eta_1} \\ \vdots \\ e^{\eta_k} \end{bmatrix}
where C = \sum\limits_{i=1}^k e^{\eta_i} , \frac{n!}{\prod\limits_{i=1}^k x_i!} , \begin{bmatrix} x_1 \\ \vdots \\ x_k \end{bmatrix} , 0 , 0 , - , multinomial distribution
(variant 3)
with known number of trials n , p_1,\ \ldots,\,p_k

where p_k = 1 - \sum\limits_{i=1}^{k-1} p_i , \begin{bmatrix} \log \dfrac{p_1}{p_k} \\ 0pt\vdots \\ pt\log \dfrac{p_{k-1{p_k} \\ 5pt0 \end{bmatrix} , \frac{1}{C_1} \begin{bmatrix} e^{\eta_1} \\ 0pt\vdots \\ pte^{\eta_k} \end{bmatrix} =
\frac{1}{C_2} \begin{bmatrix} e^{\eta_1} \\ pt\vdots \\ pte^{\eta_{k-1 \\ pt1 \end{bmatrix} where C_1 = \sum\limits_{i=1}^k e^{\eta_i} and C_2 = 1 + \sum\limits_{i=1}^{k- 1} e^{\eta_i} , \frac{n!}{\prod\limits_{i=1}^k x_i!} , \begin{bmatrix} x_1 \\ \vdots \\ x_k \end{bmatrix} , \begin{align} & \textstyle n \log \left( \sum\limits_{i=1}^k e^{\eta_i}\right) \\ pt={}& \textstyle n \log \left(1 + \sum\limits_{i=1}^{k-1} e^{\eta_i}\right) \end{align} , - n \log p_k , - , Dirichlet distribution
(variant 1) , , \alpha_1,\ \ldots,\,\alpha_k , \begin{bmatrix} \alpha_1 \\ \vdots \\ \alpha_k \end{bmatrix} , \begin{bmatrix} \eta_1 \\ \vdots \\ \eta_k \end{bmatrix} , \frac{1}{\prod\limits_{i=1}^k x_i} , \begin{bmatrix} \log x_1 \\ \vdots \\ \log x_k \end{bmatrix} , \begin{align} \textstyle \sum\limits_{i=1}^k \log \Gamma(\eta_i) \\ \textstyle - \log \Gamma{\left(\sum\limits_{i=1}^k \eta_i \right)} \end{align} , \begin{align} &\textstyle\sum\limits_{i=1}^k \log \Gamma(\alpha_i) \\ {}-{}& \textstyle \log \Gamma{\left(\sum\limits_{i=1}^k\alpha_i\right)} \end{align} , - , Dirichlet distribution
(variant 2) , , \alpha_1,\ \ldots,\,\alpha_k , \begin{bmatrix} \alpha_1 - 1 \\ \vdots \\ \alpha_k - 1 \end{bmatrix} , \begin{bmatrix} \eta_1 + 1 \\ \vdots \\ \eta_k + 1 \end{bmatrix} , 1 , \begin{bmatrix} \log x_1 \\ \vdots \\ \log x_k \end{bmatrix} , \begin{align} & \textstyle \sum\limits_{i=1}^k \log \Gamma(\eta_i + 1) \\ {}-{}& \textstyle \log \Gamma{\left(\sum\limits_{i=1}^k (\eta_i + 1) \right)} \end{align} , \begin{align} & \textstyle \sum\limits_{i=1}^k \log \Gamma(\alpha_i) \\ {}-{}& \textstyle \log \Gamma{\left(\sum\limits_{i=1}^k\alpha_i\right)} \end{align} , - , rowspan=2, Wishart distribution , , \mathbf V,\ n , \begin{bmatrix} -\frac{1}{2} \mathbf{V}^{-1} \\ pt\dfrac{n{-}p{-}1}{2} \end{bmatrix} , \begin{bmatrix} -\frac{1}{2} \boldsymbol{\eta}_1^{-1} \\ pt2\eta_2{+}p{+}1 \end{bmatrix} , 1 , \begin{bmatrix} \mathbf{X} \\ \log, \mathbf{X}, \end{bmatrix} , rowspan=2, \begin{align} & -\left eta_2 + \tfrac{p+1}{2}\right\log\left, -\boldsymbol\eta_1\ \\ & + \log\Gamma_p{\left(\eta_2 + \tfrac{p+1}{2}\right)} \\ ex=& - \tfrac{n}{2} \log\left, -\boldsymbol\eta_1\ \\ & + \log\Gamma_p{\left(\tfrac{n}{2}\right)} \\ ex={}& \left eta_2 + \tfrac{p+1}{2}\right\log\left(2^{p} \left, \mathbf{V}\\right) \\ & + \log\Gamma_p{\left(\eta_2 + \tfrac{p+1}{2}\right)} \end{align}
Three variants with different parameterizations are given, to facilitate computing moments of the sufficient statistics. , rowspan=2, \begin{align} & \frac{n}{2} \log\left(2^p \left, \mathbf{V}\\right) \\ pt& + \log\Gamma_p{\left(\frac{n}{2}\right)} \end{align} , - , colspan=5, Note: Uses the fact that \operatorname{tr}(\mathbf{A}^{\mathsf T}\mathbf{B}) = \operatorname{vec}(\mathbf{A}) \cdot \operatorname{vec}(\mathbf{B}), i.e. the trace of a
matrix product In mathematics, specifically in linear algebra, matrix multiplication is a binary operation that produces a matrix from two matrices. For matrix multiplication, the number of columns in the first matrix must be equal to the number of rows in the s ...
is much like a
dot product In mathematics, the dot product or scalar productThe term ''scalar product'' means literally "product with a Scalar (mathematics), scalar as a result". It is also used for other symmetric bilinear forms, for example in a pseudo-Euclidean space. N ...
. The matrix parameters are assumed to be vectorized (laid out in a vector) when inserted into the exponential form. Also, \mathbf{V} and \mathbf{X} are symmetric, so e.g. \mathbf{V}^{\mathsf T} = \mathbf{V}\ . , - , inverse Wishart distribution , , \mathbf \Psi,\,m , - \frac{1}{2} \begin{bmatrix} \boldsymbol\Psi \\ ptm{+}p{+}1 \end{bmatrix} , -\begin{bmatrix} 2\boldsymbol\eta_1 \\ pt2\eta_2{+}p{+}1 \end{bmatrix} , 1 , \begin{bmatrix} \mathbf{X}^{-1} \\ \log, \mathbf{X}, \end{bmatrix} , \begin{align} & \left eta_2 + \tfrac{p + 1}{2}\right\log\left, -\boldsymbol\eta_1\ \\ & + \log \Gamma_p{\left(-\eta_2 - \tfrac{p + 1}{2}\right)} \\ ex=& -\tfrac{m}{2} \log \left, -\boldsymbol\eta_1\ \\ & + \log \Gamma_p{\left(\tfrac{m}{2}\right)} \\ ex=& -\left eta_2 + \tfrac{p + 1}{2}\right\log \tfrac{2^p}{\left, \boldsymbol{\Psi} \right \\ & + \log\Gamma_p{\left(-\eta_2 - \tfrac{p + 1}{2}\right)} \end{align} , \begin{align} \frac{m}{2} \log \frac{2^p}{, \boldsymbol\Psi \\ pt+ \log \Gamma_p{\left(\frac{m}{2}\right)} \end{align} , - , normal-gamma distribution , , \alpha,\ \beta,\ \mu,\ \lambda , \begin{bmatrix} \alpha-\frac12 \\ -\beta-\dfrac{\lambda\mu^2}{2} \\ \lambda\mu \\ -\dfrac{\lambda}{2}\end{bmatrix} , \begin{bmatrix} \eta_1+\frac12 \\ -\eta_2 + \dfrac{\eta_3^2}{4\eta_4} \\ -\dfrac{\eta_3}{2\eta_4} \\ -2\eta_4 \end{bmatrix} , \dfrac{1}{\sqrt{2\pi , \begin{bmatrix} \log \tau \\ \tau \\ \tau x \\ \tau x^2 \end{bmatrix} , \begin{align} &\log \Gamma{\left(\eta_1 + \tfrac{1}{2}\right)} \\ pt-{}& \tfrac{1}{2} \log \left(-2\eta_4\right) \\ pt-{}& \left(\eta_1 + \tfrac{1}{2}\right) \log\left(\tfrac{\eta_3^2}{4\eta_4} - \eta_2\right) \end{align} , \begin{align} &\log \Gamma{\left(\alpha\right)} \\ pt&- \alpha \log \beta \\ pt&- \tfrac{1}{2}\log\lambda \end{align} The three variants of the
categorical distribution In probability theory and statistics, a categorical distribution (also called a generalized Bernoulli distribution, multinoulli distribution) is a discrete probability distribution that describes the possible results of a random variable that can ...
and multinomial distribution are due to the fact that the parameters p_i are constrained, such that \sum_{i=1}^k p_i = 1 \, . Thus, there are only k-1 independent parameters. *Variant 1 uses k natural parameters with a simple relation between the standard and natural parameters; however, only k-1 of the natural parameters are independent, and the set of k natural parameters is nonidentifiable. The constraint on the usual parameters translates to a similar constraint on the natural parameters. *Variant 2 demonstrates the fact that the entire set of natural parameters is nonidentifiable: Adding any constant value to the natural parameters has no effect on the resulting distribution. However, by using the constraint on the natural parameters, the formula for the normal parameters in terms of the natural parameters can be written in a way that is independent on the constant that is added. *Variant 3 shows how to make the parameters identifiable in a convenient way by setting C = -\log p_k\ . This effectively "pivots" around p_k and causes the last natural parameter to have the constant value of 0. All the remaining formulas are written in a way that does not access p_k , so that effectively the model has only k-1 parameters, both of the usual and natural kind. Variants 1 and 2 are not actually standard exponential families at all. Rather they are ''curved exponential families'', i.e. there are k-1 independent parameters embedded in a k-dimensional parameter space. Many of the standard results for exponential families do not apply to curved exponential families. An example is the log-partition function A(x) , which has the value of 0 in the curved cases. In standard exponential families, the derivatives of this function correspond to the moments (more technically, the
cumulant In probability theory and statistics, the cumulants of a probability distribution are a set of quantities that provide an alternative to the '' moments'' of the distribution. Any two probability distributions whose moments are identical will have ...
s) of the sufficient statistics, e.g. the mean and variance. However, a value of 0 suggests that the mean and variance of all the sufficient statistics are uniformly 0, whereas in fact the mean of the ith sufficient statistic should be p_i . (This does emerge correctly when using the form of A(x) shown in variant 3.)


Moments and cumulants of the sufficient statistic


Normalization of the distribution

We start with the normalization of the probability distribution. In general, any non-negative function ''f''(''x'') that serves as the kernel of a probability distribution (the part encoding all dependence on ''x'') can be made into a proper distribution by normalizing: i.e. p(x) = \frac{1}{Z} f(x) where Z = \int_x f(x) \,dx. The factor is sometimes termed the ''normalizer'' or '' partition function'', based on an analogy to
statistical physics In physics, statistical mechanics is a mathematical framework that applies statistical methods and probability theory to large assemblies of microscopic entities. Sometimes called statistical physics or statistical thermodynamics, its applicati ...
. In the case of an exponential family where p(x; \boldsymbol\eta) = g(\boldsymbol\eta) h(x) e^{\boldsymbol\eta \cdot \mathbf{T}(x)}, the kernel is K(x) = h(x) e^{\boldsymbol\eta \cdot \mathbf{T}(x)} and the partition function is Z = \int_x h(x) e^{\boldsymbol\eta \cdot \mathbf{T}(x)} \,dx. Since the distribution must be normalized, we have \begin{align} 1 &= \int_x g(\boldsymbol\eta) h(x) e^{\boldsymbol\eta \cdot \mathbf{T}(x)}\, dx \\ &= g(\boldsymbol\eta) \int_x h(x) e^{\boldsymbol\eta \cdot \mathbf{T}(x)} \,dx \\ ex&= g(\boldsymbol\eta) Z. \end{align} In other words, g(\boldsymbol\eta) = \frac{1}{Z} or equivalently A(\boldsymbol\eta) = - \log g(\boldsymbol\eta) = \log Z. This justifies calling the ''log-normalizer'' or ''log-partition function''.


Moment-generating function of the sufficient statistic

Now, the moment-generating function of is \begin{align} M_T(u) &\equiv \operatorname{E} \left \exp\left(u^\mathsf{T} T(x)\right) \mid \eta\right\\ &= \int_x h(x) \, \exp\left \eta+u)^\mathsf{T} T(x)-A(\eta)\right\, dx \\ ex&= e^{A(\eta + u)-A(\eta)} \end{align} proving the earlier statement that K(u \mid \eta) = A(\eta+u) - A(\eta) is the
cumulant generating function In probability theory and statistics, the cumulants of a probability distribution are a set of quantities that provide an alternative to the '' moments'' of the distribution. Any two probability distributions whose moments are identical will have ...
for . An important subclass of exponential families are the natural exponential families, which have a similar form for the moment-generating function for the distribution of .


Differential identities for cumulants

In particular, using the properties of the cumulant generating function, \operatorname{E}(T_j) = \frac{ \partial A(\eta) }{ \partial \eta_j } and \operatorname{cov}\left (T_i,\, T_j \right) = \frac{ \partial^2 A(\eta) }{ \partial \eta_i \, \partial \eta_j }. The first two raw moments and all mixed second moments can be recovered from these two identities. Higher-order moments and cumulants are obtained by higher derivatives. This technique is often useful when is a complicated function of the data, whose moments are difficult to calculate by integration. Another way to see this that does not rely on the theory of
cumulant In probability theory and statistics, the cumulants of a probability distribution are a set of quantities that provide an alternative to the '' moments'' of the distribution. Any two probability distributions whose moments are identical will have ...
s is to begin from the fact that the distribution of an exponential family must be normalized, and differentiate. We illustrate using the simple case of a one-dimensional parameter, but an analogous derivation holds more generally. In the one-dimensional case, we have p(x) = g(\eta) h(x) e^{\eta T(x)} . This must be normalized, so 1 = \int_x p(x) \,dx = \int_x g(\eta) h(x) e^{\eta T(x)} \,dx = g(\eta) \int_x h(x) e^{\eta T(x)} \,dx . Take the
derivative In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
of both sides with respect to : \begin{align} 0 &= g(\eta) \frac{d}{d\eta} \int_x h(x) e^{\eta T(x)} \,dx + g'(\eta)\int_x h(x) e^{\eta T(x)} \,dx \\ ex&= g(\eta) \int_x h(x) \left(\frac{d}{d\eta} e^{\eta T(x)}\right) \,dx + g'(\eta)\int_x h(x) e^{\eta T(x)} \, dx \\ ex&= g(\eta) \int_x h(x) e^{\eta T(x)} T(x) \,dx + g'(\eta)\int_x h(x) e^{\eta T(x)} \, dx \\ ex&= \int_x T(x) g(\eta) h(x) e^{\eta T(x)} \,dx + \frac{g'(\eta)}{g(\eta)}\int_x g(\eta) h(x) e^{\eta T(x)} \, dx \\ ex&= \int_x T(x) p(x) \,dx + \frac{g'(\eta)}{g(\eta)}\int_x p(x) \, dx \\ ex&= \operatorname{E} (x)+ \frac{g'(\eta)}{g(\eta)} \\ ex&= \operatorname{E} (x)+ \frac{d}{d\eta} \log g(\eta) \end{align} Therefore, \operatorname{E} (x)= - \frac{d}{d\eta} \log g(\eta) = \frac{d}{d\eta} A(\eta).


Example 1

As an introductory example, consider the gamma distribution, whose distribution is defined by p(x) = \frac{\beta^\alpha}{\Gamma(\alpha)} x^{\alpha-1}e^{-\beta x}. Referring to the above table, we can see that the natural parameter is given by \begin{align} \eta_1 &= \alpha-1, \\ \eta_2 &= -\beta, \end{align} the reverse substitutions are \begin{align} \alpha &= \eta_1+1, \\ \beta &= -\eta_2, \end{align} the sufficient statistics are , and the log-partition function is A(\eta_1,\eta_2) = \log \Gamma(\eta_1+1)-(\eta_1+1)\log(-\eta_2). We can find the mean of the sufficient statistics as follows. First, for : \begin{align} \operatorname{E} log x&= \frac{ \partial }{ \partial \eta_1 } A(\eta_1,\eta_2) \\ .5ex&= \frac{ \partial }{ \partial \eta_1 } \left log\Gamma(\eta_1+1) - (\eta_1+1) \log(-\eta_2)\right\\ ex&= \psi(\eta_1+1) - \log(-\eta_2) \\ ex&= \psi(\alpha) - \log \beta, \end{align} Where \psi(x) is the
digamma function In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function: :\psi(z) = \frac\ln\Gamma(z) = \frac. It is the first of the polygamma functions. This function is Monotonic function, strictly increasing a ...
(derivative of log gamma), and we used the reverse substitutions in the last step. Now, for : \begin{align} \operatorname{E} &= \frac{ \partial }{ \partial \eta_2 } A(\eta_1, \eta_2) \\ ex&= \frac{ \partial }{ \partial \eta_2 } \left log \Gamma(\eta_1+1) - (\eta_1 + 1) \log(-\eta_2)\right\\ ex&= -(\eta_1+1)\frac{1}{-\eta_2}(-1) = \frac{\eta_1+1}{-\eta_2} = \frac{\alpha}{\beta}, \end{align} again making the reverse substitution in the last step. To compute the variance of , we just differentiate again: \begin{align} \operatorname{Var}(x) &= \frac{\partial^2 }{\partial \eta_2^2} A{\left(\eta_1,\eta_2 \right)} = \frac{\partial}{\partial \eta_2} \frac{\eta_1+1}{-\eta_2} \\ ex&= \frac{\eta_1+1}{\eta_2^2} = \frac{\alpha}{\beta^2}. \end{align} All of these calculations can be done using integration, making use of various properties of the
gamma function In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
, but this requires significantly more work.


Example 2

As another example consider a real valued random variable with density p_\theta (x) = \frac{ \theta e^{-x} }{\left(1 + e^{-x} \right)^{\theta + 1} } indexed by shape parameter \theta \in (0,\infty) (this is called the skew-logistic distribution). The density can be rewritten as \frac{ e^{-x} } { 1 + e^{-x} } \exp \theta \log\left(1 + e^{-x} ) + \log(\theta)\right Notice this is an exponential family with natural parameter \eta = -\theta, sufficient statistic T = \log\left (1 + e^{-x} \right), and log-partition function A(\eta) = -\log(\theta) = -\log(-\eta) So using the first identity, \operatorname{E}\left log\left(1 + e^{-X}\right)\right= \operatorname{E}(T) = \frac{\partial A(\eta)}{\partial \eta} = \frac{ \partial }{ \partial \eta } \log(-\eta)= \frac{1}{-\eta} = \frac{1}{\theta}, and using the second identity \operatorname{var}\left log\left(1 + e^{-X} \right)\right= \frac{\partial^2 A(\eta)}{\partial \eta^2} = \frac{\partial}{\partial \eta} \left frac{1}{-\eta}\right= \frac{1} = (\mathbf{X}^{-1})^\mathsf{T} Then: \begin{align} \operatorname{E} mathbf{X}&= \frac{\partial}{\partial \boldsymbol{\eta}_1} A\left(\boldsymbol\eta_1,\ldots \right) \\ ex&= \frac{\partial}{\partial \boldsymbol{\eta}_1} \left -\boldsymbol\eta_1\ + \log\Gamma_p{\left(\frac{n}{2}\right)} \right\\ ex&= -\frac{n}{2} ( \boldsymbol{\eta}_1^{-1})^\mathsf{T} \\ ex&= \frac{n}{2} (-\boldsymbol{\eta}_1^{-1})^\mathsf{T} \\ ex&= n(\mathbf{V})^\mathsf{T} \\ ex&= n\mathbf{V} \end{align} The last line uses the fact that V is symmetric, and therefore it is the same when transposed. ;Expectation of log (associated with ) Now, for , we first need to expand the part of the log-partition function that involves the multivariate gamma function: \begin{align} \log \Gamma_p(a) &= \log \left(\pi^{\frac{p(p-1)}{4 \prod_{j=1}^p \Gamma{\left(a + \frac{1-j}{2}\right)}\right) \\ &= \frac{p(p-1)}{4} \log \pi + \sum_{j=1}^p \log \Gamma{\left(a + \frac{1-j}{2}\right)} \end{align} We also need the
digamma function In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function: :\psi(z) = \frac\ln\Gamma(z) = \frac. It is the first of the polygamma functions. This function is Monotonic function, strictly increasing a ...
: \psi(x) = \frac{d}{dx} \log \Gamma(x). Then: \begin{align} \operatorname{E} \mathbf{X}, &= \frac{\partial}{\partial \eta_2} A\left (\ldots,\eta_2 \right) \\ ex&= \frac{\partial}{\partial \eta_2} \left \mathbf{V}\\right) + \log\Gamma_p{\left(\eta_2+\frac{p+1}{2}\right)} \right\\ ex&= \frac{\partial}{\partial \eta_2} \left \mathbf{V}\\right)\right+ \frac{\partial}{\partial \eta_2} \left frac{p(p-1)}{4} \log \pi\right\\ &\hphantom{=} + \frac{\partial}{\partial \eta_2} \sum_{j=1}^p \log \Gamma{\left(\eta_2 + \frac{p+1}{2} + \frac{1-j}{2}\right)} \\ ex&= p\log 2 + \log, \mathbf{V}, + \sum_{j=1}^p \psi{\left(\eta_2 + \frac{p+1}{2} + \frac{1-j}{2}\right)} \\ ex&= p\log 2 + \log, \mathbf{V}, + \sum_{j=1}^p \psi{\left(\frac{n-p-1}{2} + \frac{p+1}{2} + \frac{1-j}{2}\right)} \\ ex&= p\log 2 + \log, \mathbf{V}, + \sum_{j=1}^p \psi{\left(\frac{n+1-j}{2}\right)} \end{align} This latter formula is listed in the Wishart distribution article. Both of these expectations are needed when deriving the variational Bayes update equations in a Bayes network involving a Wishart distribution (which is the conjugate prior of the
multivariate normal distribution In probability theory and statistics, the multivariate normal distribution, multivariate Gaussian distribution, or joint normal distribution is a generalization of the one-dimensional ( univariate) normal distribution to higher dimensions. One d ...
). Computing these formulas using integration would be much more difficult. The first one, for example, would require matrix integration.


Entropy


Relative entropy

The
relative entropy Relative may refer to: General use *Kinship and family, the principle binding the most basic social units of society. If two people are connected by circumstances of birth, they are said to be ''relatives''. Philosophy *Relativism, the concept t ...
(
Kullback–Leibler divergence In mathematical statistics, the Kullback–Leibler (KL) divergence (also called relative entropy and I-divergence), denoted D_\text(P \parallel Q), is a type of statistical distance: a measure of how much a model probability distribution is diff ...
, KL divergence) of two distributions in an exponential family has a simple expression as the Bregman divergence between the natural parameters with respect to the log-normalizer. The relative entropy is defined in terms of an integral, while the Bregman divergence is defined in terms of a derivative and inner product, and thus is easier to calculate and has a
closed-form expression In mathematics, an expression or equation is in closed form if it is formed with constants, variables, and a set of functions considered as ''basic'' and connected by arithmetic operations (, and integer powers) and function composition. ...
(assuming the derivative has a closed-form expression). Further, the Bregman divergence in terms of the natural parameters and the log-normalizer equals the Bregman divergence of the dual parameters (expectation parameters), in the opposite order, for the
convex conjugate In mathematics and mathematical optimization, the convex conjugate of a function is a generalization of the Legendre transformation which applies to non-convex functions. It is also known as Legendre–Fenchel transformation, Fenchel transformati ...
function. Fixing an exponential family with log-normalizer (with convex conjugate ), writing P_{A,\theta} for the distribution in this family corresponding a fixed value of the natural parameter (writing for another value, and with for the corresponding dual expectation/moment parameters), writing for the KL divergence, and for the Bregman divergence, the divergences are related as: \operatorname{KL}(P_{A,\theta} \parallel P_{A,\theta'}) = B_A(\theta' \parallel \theta) = B_{A^*}(\eta \parallel \eta'). The KL divergence is conventionally written with respect to the ''first'' parameter, while the Bregman divergence is conventionally written with respect to the ''second'' parameter, and thus this can be read as "the relative entropy is equal to the Bregman divergence defined by the log-normalizer on the swapped natural parameters", or equivalently as "equal to the Bregman divergence defined by the dual to the log-normalizer on the expectation parameters".


Maximum-entropy derivation

Exponential families arise naturally as the answer to the following question: what is the maximum-entropy distribution consistent with given constraints on expected values? The
information entropy In information theory, the entropy of a random variable quantifies the average level of uncertainty or information associated with the variable's potential states or possible outcomes. This measures the expected amount of information needed ...
of a probability distribution can only be computed with respect to some other probability distribution (or, more generally, a positive measure), and both measures must be mutually
absolutely continuous In calculus and real analysis, absolute continuity is a smoothness property of functions that is stronger than continuity and uniform continuity. The notion of absolute continuity allows one to obtain generalizations of the relationship betwe ...
. Accordingly, we need to pick a ''reference measure'' with the same support as . The entropy of relative to is S F\mid dH= -\int \frac{dF}{dH}\log\frac{dF}{dH}\,dH or S F\mid dH= \int\log\frac{dH}{dF}\,dF where and are Radon–Nikodym derivatives. The ordinary definition of entropy for a discrete distribution supported on a set , namely S = - \sum_{i\in I} p_i \log p_i ''assumes'', though this is seldom pointed out, that is chosen to be the
counting measure In mathematics, specifically measure theory, the counting measure is an intuitive way to put a measure on any set – the "size" of a subset is taken to be the number of elements in the subset if the subset has finitely many elements, and infinit ...
on . Consider now a collection of observable quantities (random variables) . The probability distribution whose entropy with respect to is greatest, subject to the conditions that the expected value of be equal to , is an exponential family with ''dH'' as reference measure and as sufficient statistic. The derivation is a simple variational calculation using Lagrange multipliers. Normalization is imposed by letting be one of the constraints. The natural parameters of the distribution are the Lagrange multipliers, and the normalization factor is the Lagrange multiplier associated to . For examples of such derivations, see Maximum entropy probability distribution.


Role in statistics


Classical estimation: sufficiency

According to the PitmanKoopmanDarmois theorem, among families of probability distributions whose domain does not vary with the parameter being estimated, only in exponential families is there a
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
whose dimension remains bounded as sample size increases. Less tersely, suppose , (where ) are
independent Independent or Independents may refer to: Arts, entertainment, and media Artist groups * Independents (artist group), a group of modernist painters based in Pennsylvania, United States * Independentes (English: Independents), a Portuguese artist ...
, identically distributed random variables. Only if their distribution is one of the ''exponential family'' of distributions is there a
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
whose
number A number is a mathematical object used to count, measure, and label. The most basic examples are the natural numbers 1, 2, 3, 4, and so forth. Numbers can be represented in language with number words. More universally, individual numbers can ...
of scalar components does not increase as the sample size ''n'' increases; the statistic may be a
vector Vector most often refers to: * Euclidean vector, a quantity with a magnitude and a direction * Disease vector, an agent that carries and transmits an infectious pathogen into another living organism Vector may also refer to: Mathematics a ...
or a single scalar number, but whatever it is, its
size Size in general is the Magnitude (mathematics), magnitude or dimensions of a thing. More specifically, ''geometrical size'' (or ''spatial size'') can refer to three geometrical measures: length, area, or volume. Length can be generalized ...
will neither grow nor shrink when more data are obtained. As a counterexample if these conditions are relaxed, the family of uniform distributions (either
discrete Discrete may refer to: *Discrete particle or quantum in physics, for example in quantum theory * Discrete device, an electronic component with just one circuit element, either passive or active, other than an integrated circuit * Discrete group, ...
or continuous, with either or both bounds unknown) has a sufficient statistic, namely the sample maximum, sample minimum, and sample size, but does not form an exponential family, as the domain varies with the parameters.


Bayesian estimation: conjugate distributions

Exponential families are also important in
Bayesian statistics Bayesian statistics ( or ) is a theory in the field of statistics based on the Bayesian interpretation of probability, where probability expresses a ''degree of belief'' in an event. The degree of belief may be based on prior knowledge about ...
. In Bayesian statistics a
prior distribution A prior probability distribution of an uncertain quantity, simply called the prior, is its assumed probability distribution before some evidence is taken into account. For example, the prior could be the probability distribution representing the ...
is multiplied by a
likelihood function A likelihood function (often simply called the likelihood) measures how well a statistical model explains observed data by calculating the probability of seeing that data under different parameter values of the model. It is constructed from the ...
and then normalised to produce a
posterior distribution The posterior probability is a type of conditional probability that results from updating the prior probability with information summarized by the likelihood via an application of Bayes' rule. From an epistemological perspective, the posterior ...
. In the case of a likelihood which belongs to an exponential family there exists a conjugate prior, which is often also in an exponential family. A conjugate prior π for the parameter \boldsymbol\eta of an exponential family f(x \mid \boldsymbol\eta) = h(x) \, \exp \left {\boldsymbol\eta}^\mathsf{T} \mathbf{T}(x) - A(\boldsymbol\eta) \right/math> is given by p_\pi(\boldsymbol\eta \mid \boldsymbol\chi,\nu) = f(\boldsymbol\chi,\nu) \, \exp \left \boldsymbol\eta^\mathsf{T} \boldsymbol\chi - \nu A(\boldsymbol\eta) \right or equivalently p_\pi(\boldsymbol\eta \mid \boldsymbol\chi,\nu) = f(\boldsymbol\chi,\nu) \, g(\boldsymbol\eta)^\nu \, \exp \left (\boldsymbol\eta^\mathsf{T} \boldsymbol\chi \right ), \qquad \boldsymbol\chi \in \mathbb{R}^s where ''s'' is the dimension of \boldsymbol\eta and \nu > 0 and \boldsymbol\chi are hyperparameters (parameters controlling parameters). \nu corresponds to the effective number of observations that the prior distribution contributes, and \boldsymbol\chi corresponds to the total amount that these pseudo-observations contribute to the
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
over all observations and pseudo-observations. f(\boldsymbol\chi,\nu) is a
normalization constant In probability theory, a normalizing constant or normalizing factor is used to reduce any probability function to a probability density function with total probability of one. For example, a Gaussian function can be normalized into a probabilit ...
that is automatically determined by the remaining functions and serves to ensure that the given function is a
probability density function In probability theory, a probability density function (PDF), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
(i.e. it is normalized). A(\boldsymbol\eta) and equivalently g(\boldsymbol\eta) are the same functions as in the definition of the distribution over which π is the conjugate prior. A conjugate prior is one which, when combined with the likelihood and normalised, produces a posterior distribution which is of the same type as the prior. For example, if one is estimating the success probability of a binomial distribution, then if one chooses to use a beta distribution as one's prior, the posterior is another beta distribution. This makes the computation of the posterior particularly simple. Similarly, if one is estimating the parameter of a
Poisson distribution In probability theory and statistics, the Poisson distribution () is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time if these events occur with a known const ...
the use of a gamma prior will lead to another gamma posterior. Conjugate priors are often very flexible and can be very convenient. However, if one's belief about the likely value of the theta parameter of a binomial is represented by (say) a bimodal (two-humped) prior distribution, then this cannot be represented by a beta distribution. It can however be represented by using a mixture density as the prior, here a combination of two beta distributions; this is a form of
hyperprior In Bayesian statistics, a hyperprior is a prior distribution on a hyperparameter, that is, on a parameter of a prior distribution. As with the term ''hyperparameter,'' the use of ''hyper'' is to distinguish it from a prior distribution of a para ...
. An arbitrary likelihood will not belong to an exponential family, and thus in general no conjugate prior exists. The posterior will then have to be computed by numerical methods. To show that the above prior distribution is a conjugate prior, we can derive the posterior. First, assume that the probability of a single observation follows an exponential family, parameterized using its natural parameter: p_F(x\mid\boldsymbol \eta) = h(x) \, g(\boldsymbol\eta) \, \exp\left boldsymbol\eta^\mathsf{T} \mathbf{T}(x)\right/math> Then, for data \mathbf{X} = (x_1,\ldots,x_n), the likelihood is computed as follows: p(\mathbf{X}\mid\boldsymbol\eta) = \left(\prod_{i=1}^n h(x_i) \right) g(\boldsymbol\eta)^n \exp\left(\boldsymbol\eta^\mathsf{T}\sum_{i=1}^n \mathbf{T}(x_i) \right) Then, for the above conjugate prior: \begin{align} p_\pi(\boldsymbol\eta\mid\boldsymbol\chi,\nu) &= f(\boldsymbol\chi,\nu) g(\boldsymbol\eta)^\nu \exp(\boldsymbol\eta^\mathsf{T} \boldsymbol\chi) \propto g(\boldsymbol\eta)^\nu \exp(\boldsymbol\eta^\mathsf{T} \boldsymbol\chi) \end{align} We can then compute the posterior as follows: \begin{align} p(\boldsymbol\eta\mid\mathbf{X},\boldsymbol\chi,\nu)& \propto p(\mathbf{X}\mid\boldsymbol\eta) p_\pi(\boldsymbol\eta\mid\boldsymbol\chi,\nu) \\ &= \left(\prod_{i=1}^n h(x_i) \right) g(\boldsymbol\eta)^n \exp\left(\boldsymbol\eta^\mathsf{T} \sum_{i=1}^n \mathbf{T}(x_i)\right) f(\boldsymbol\chi,\nu) g(\boldsymbol\eta)^\nu \exp(\boldsymbol\eta^\mathsf{T} \boldsymbol\chi) \\ &\propto g(\boldsymbol\eta)^n \exp\left(\boldsymbol\eta^\mathsf{T}\sum_{i=1}^n \mathbf{T}(x_i)\right) g(\boldsymbol\eta)^\nu \exp(\boldsymbol\eta^\mathsf{T} \boldsymbol\chi) \\ &\propto g(\boldsymbol\eta)^{\nu + n} \exp\left(\boldsymbol\eta^\mathsf{T} \left(\boldsymbol\chi + \sum_{i=1}^n \mathbf{T}(x_i)\right)\right) \end{align} The last line is the kernel of the posterior distribution, i.e. p(\boldsymbol\eta\mid\mathbf{X},\boldsymbol\chi,\nu) = p_\pi\left(\boldsymbol\eta\left, ~\boldsymbol\chi + \sum_{i=1}^n \mathbf{T}(x_i), \nu + n \right.\right) This shows that the posterior has the same form as the prior. The data enters into this equation ''only'' in the expression \mathbf{T}(\mathbf{X}) = \sum_{i=1}^n \mathbf{T}(x_i), which is termed the
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
of the data. That is, the value of the sufficient statistic is sufficient to completely determine the posterior distribution. The actual data points themselves are not needed, and all sets of data points with the same sufficient statistic will have the same distribution. This is important because the dimension of the sufficient statistic does not grow with the data size — it has only as many components as the components of \boldsymbol\eta (equivalently, the number of parameters of the distribution of a single data point). The update equations are as follows: \begin{align} \boldsymbol\chi' &= \boldsymbol\chi + \mathbf{T}(\mathbf{X}) \\ &= \boldsymbol\chi + \sum_{i=1}^n \mathbf{T}(x_i) \\ \nu' &= \nu + n \end{align} This shows that the update equations can be written simply in terms of the number of data points and the
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
of the data. This can be seen clearly in the various examples of update equations shown in the conjugate prior page. Because of the way that the sufficient statistic is computed, it necessarily involves sums of components of the data (in some cases disguised as products or other forms — a product can be written in terms of a sum of
logarithm In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
s). The cases where the update equations for particular distributions don't exactly match the above forms are cases where the conjugate prior has been expressed using a different
parameterization In mathematics, and more specifically in geometry, parametrization (or parameterization; also parameterisation, parametrisation) is the process of finding parametric equations of a curve, a surface (mathematics), surface, or, more generally, a ma ...
than the one that produces a conjugate prior of the above form — often specifically because the above form is defined over the natural parameter \boldsymbol\eta while conjugate priors are usually defined over the actual parameter \boldsymbol\theta .


Unbiased estimation

If the likelihood z, \eta \sim e^{\eta z} f_1(\eta) f_0(z) is an exponential family, then the unbiased estimator of \eta is -\frac{d}{dz} \ln f_0(z).


Hypothesis testing: uniformly most powerful tests

A one-parameter exponential family has a monotone non-decreasing likelihood ratio in the
sufficient statistic In statistics, sufficiency is a property of a statistic computed on a sample dataset in relation to a parametric model of the dataset. A sufficient statistic contains all of the information that the dataset provides about the model parameters. It ...
, provided that is non-decreasing. As a consequence, there exists a uniformly most powerful test for testing the hypothesis : ''vs''. : .


Generalized linear models

Exponential families form the basis for the distribution functions used in
generalized linear model In statistics, a generalized linear model (GLM) is a flexible generalization of ordinary linear regression. The GLM generalizes linear regression by allowing the linear model to be related to the response variable via a ''link function'' and by ...
s (GLM), a class of model that encompasses many of the commonly used regression models in statistics. Examples include
logistic regression In statistics, a logistic model (or logit model) is a statistical model that models the logit, log-odds of an event as a linear function (calculus), linear combination of one or more independent variables. In regression analysis, logistic regres ...
using the binomial family and
Poisson regression In statistics, Poisson regression is a generalized linear model form of regression analysis used to model count data and contingency tables. Poisson regression assumes the response variable ''Y'' has a Poisson distribution, and assumes the lo ...
.


See also

* Exponential dispersion model * Gibbs measure * Modified half-normal distribution * Natural exponential family


Footnotes


References


Citations


Sources

* ** Reprinted as * *


Further reading

* * *


External links


A primer on the exponential family of distributions


on th


jMEF: A Java library for exponential families

Graphical Models, Exponential Families, and Variational Inference
by Wainwright and Jordan (2008) {{DEFAULTSORT:Exponential Family Exponentials Continuous distributions Discrete distributions Types of probability distributions