Exponential family
 "Natural parameter" links here. For the usage of this term in differential geometry, see differential geometry of curves.
In probability and statistics, an exponential family is a parametric set of probability distributions of a certain form, specified below. This special form is chosen for mathematical convenience, 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",^{[1]} or the older term KoopmanDarmois family. The terms "distribution" and "family" are often used loosely: properly, an exponential family is a set of distributions, where the specific distribution varies with the parameter;^{[note 1]} 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.
The concept of exponential families is credited to^{[2]} E. J. G. Pitman,^{[3]} G. Darmois,^{[4]} and B. O. Koopman^{[5]} in 1935–36. Exponential families of distributions provides a general framework for selecting a possible alternative parameterisation of a parametric family of distributions, in terms of natural parameters, and for defining useful sample statistics, called the natural sufficient statistics of the family.
Contents
Definition[edit]
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 singleparameter family of discrete or continuous probability distributions.
Examples of exponential family distributions[edit]
Exponential families include many of the most common distributions. Among many others, exponential families includes the following:
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 (with fixed number of failures)
Notice that in each case, the parameters which must be fixed determine a limit on the size of observation values.
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 for more discussion.
Scalar parameter[edit]
A singleparameter exponential family is a set of probability distributions whose probability density function (or probability mass function, for the case of a discrete distribution) can be expressed in the form
where T(x), h(x), η(θ), and A(θ) are known functions.
An alternative, equivalent form often given is
or equivalently
The value θ is called the parameter of the family.
In addition, the support of (i.e. the set of all for which is greater than 0) does not depend on .^{[6]} This can be used to exclude a parametric family distribution from being an exponential family. For example, the Pareto distribution has a pdf which is defined for ( being the scale parameter) and its support, therefore, has a lower limit of . Since the support of is dependent on the value of the parameter, the family of Pareto distributions does not form an exponential family of distributions.
Note that x is often 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, η(θ) and T(x) can each be vectorvalued such that is realvalued.
If η(θ) = θ, then the exponential family is said to be in canonical form. By defining a transformed parameter η = η(θ), it is always possible to convert an exponential family to canonical form. The canonical form is nonunique, since η(θ) can be multiplied by any nonzero constant, provided that T(x) is multiplied by that constant's reciprocal, or a constant c can be added to η(θ) and h(x) multiplied by to offset it.
Even when x is a scalar, and there is only a single parameter, the functions η(θ) and T(x) can still be vectors, as described below.
Note also that the function A(θ), or equivalently g(θ), 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 η, even when η(θ) is not a onetoone function, i.e. two or more different values of θ map to the same value of η(θ), and hence η(θ) cannot be inverted. In such a case, all values of θ mapping to the same η(θ) will also have the same value for A(θ) and g(θ).
Factorization of the variables involved[edit]
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 operation. Generally, this means that all of the factors constituting the density or mass function must be of one of the following forms:
where f and h are arbitrary functions of x; g and j are arbitrary functions of θ; and c is an arbitrary "constant" expression (i.e. an expression not involving x or θ).
There are further restrictions on how many such factors can occur. For example, the two expressions:
are the same, i.e. a product of two "allowed" factors. However, when rewritten into the factorized form,
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.^{[citation needed]})
To see why an expression of the form
qualifies, note that
and hence factorizes inside of the exponent. Similarly,
and again factorizes inside of the exponent.
Note also that a factor consisting of a sum where both types of variables are involved (e.g. a factor of the form ) cannot be factorized in this fashion (except in some cases where occurring directly in an exponent); this is why, for example, the Cauchy distribution and Student's t distribution are not exponential families.
Vector parameter[edit]
The definition in terms of one realnumber parameter can be extended to one realvector parameter
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
Or in a more compact form,
This form writes the sum as a dot product of vectorvalued functions and .
An alternative, equivalent form often seen is
As in the scalar valued case, the exponential family is said to be in canonical form if
A vector exponential family is said to be curved if the dimension of
is less than the dimension of the vector
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. Note that 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.
Note that, as in the above case of a scalarvalued parameter, the function or equivalently is automatically determined once the other functions have been chosen, so that the entire distribution is normalized. In addition, as above, both of these functions can always be written as functions of , regardless of the form of the transformation that generates from . Hence an exponential family in its "natural form" (parametrized by its natural parameter) looks like
or equivalently
Note that the above forms may sometimes be seen with in place of . These are exactly equivalent formulations, merely using different notation for the dot product.
Vector parameter, vector variable[edit]
The vectorparameter form over a single scalarvalued 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 scalarvalued random variable with each occurrence of the scalar x replaced by the vector
Note that the dimension k of the random variable need not match the dimension d of the parameter vector, nor (in the case of a curved exponential function) the dimension s of the natural parameter and sufficient statistic T(x).
The distribution in this case is written as
Or more compactly as
Or alternatively as
Measuretheoretic formulation[edit]
We use cumulative distribution functions (cdf) in order to encompass both discrete and continuous distributions.
Suppose H is a nondecreasing function of a real variable. Then Lebesgue–Stieltjes integrals with respect to dH(x) are integrals with respect to the "reference measure" of the exponential family generated by H.
Any member of that exponential family has cumulative distribution function
If F is a continuous distribution with a density, one can write dF(x) = f(x) dx.
H(x) is a Lebesgue–Stieltjes integrator for the reference measure. When the reference measure is finite, it can be normalized and H is actually the cumulative distribution function of a probability distribution. If F is absolutely continuous with a density, then so is H, which can then be written dH(x) = h(x) dx. If F is discrete, then H is a step function (with steps on the support of F).
Interpretation[edit]
In the definitions above, the functions T(x), η(θ) and A(η) were apparently arbitrarily defined. However, these functions play a significant role in the resulting probability distribution.
 T(x) is a sufficient statistic 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 and , the likelihood ratio is the same (that is, ) if . This is true even if x and y are quite different—that is, . The dimension of T(x) 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 of the parameters, given the data (and hence to derive any desired estimate of the parameters). This important property is further discussed below.
 η is called the natural parameter. The set of values of η for which the function is finite is called the natural parameter space. It can be shown that the natural parameter space is always convex.
 A(η) is called the logpartition function because it is the logarithm of a normalization factor, without which would not be a probability distribution ("partition function" is often used in statistics as a synonym of "normalization factor"):
The function A is important in its own right, because the mean, variance and other moments of the sufficient statistic T(x) can be derived simply by differentiating A(η). For example, because log(x) is one of the components of the sufficient statistic of the gamma distribution, can be easily determined for this distribution using A(η). Technically, this is true because
is the cumulant generating function of the sufficient statistic.
Properties[edit]
Exponential families have a large number of properties that make them extremely useful for statistical analysis. In many cases, it can be shown that, except in a few exceptional cases, only exponential families have these properties. Examples:
 Exponential families have sufficient statistics that can summarize arbitrary amounts of independent identically distributed data using a fixed number of values.
 Exponential families have conjugate priors, an important property in Bayesian statistics.
 The posterior predictive distribution of an exponentialfamily random variable with a conjugate prior can always be written in closed form (provided that the normalizing factor of the exponentialfamily distribution can itself be written in closed form). Note that these distributions are often not themselves exponential families. Common examples of nonexponential families arising from exponential ones are the Student's tdistribution, betabinomial distribution and Dirichletmultinomial distribution.
 In the meanfield approximation in variational Bayes (used for approximating the posterior distribution in large Bayesian networks), the best approximating posterior distribution of an exponentialfamily 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.^{[7]}
Examples[edit]
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, lognormal, gamma, chisquared, beta, Dirichlet, Bernoulli, categorical, Poisson, geometric, inverse Gaussian, von Mises and von MisesFisher distributions are all exponential families.
Some distributions are exponential families only if some of their parameters are held fixed. The family of Pareto distributions 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 distributions with fixed number of failures (a.k.a. stoppingtime parameter) r is an exponential family. However, when any of the abovementioned 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 nor continuous uniform distribution are exponential families as one or both bounds vary. If both bounds are held fixed, the result is a single distribution; this can be considered a zerodimensional exponential family, and is the only zerodimensional exponential family with a given support, but this is generally considered too trivial to consider as a family.
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 nonexponential is due rather to the particular form of the Weibull's probability density function (k appears in the exponent of an exponent).
In general, distributions that result from a finite or infinite mixture 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 heavytailed distributions that result from compounding (i.e. infinitely mixing) a distribution with a prior distribution over one of its parameters, e.g. the Student's tdistribution (compounding a normal distribution over a gammadistributed precision prior), and the betabinomial and Dirichletmultinomial distributions. Other examples of distributions that are not exponential families are the Fdistribution, Cauchy distribution, hypergeometric distribution and logistic distribution.
Following are some detailed examples of the representation of some useful distribution as exponential families.
Normal distribution: unknown mean, known variance[edit]
As a first example, consider a random variable distributed normally with unknown mean μ and known variance σ^{2}. The probability density function is then
This is a singleparameter exponential family, as can be seen by setting
If σ = 1 this is in canonical form, as then η(μ) = μ.
Normal distribution: unknown mean and unknown variance[edit]
Next, consider the case of a normal distribution with unknown mean and unknown variance. The probability density function is then
This is an exponential family which can be written in canonical form by defining
Binomial distribution[edit]
As an example of a discrete exponential family, consider the binomial distribution with known number of trials n. The probability mass function for this distribution is
This can equivalently be written as
which shows that the binomial distribution is an exponential family, whose natural parameter is
This function of p is known as logit.
Table of distributions[edit]
The following table shows how to rewrite a number of common distributions as exponentialfamily distributions with natural parameters. Refer to the flashcards^{[8]} for main exponential families.
For a scalar variable and scalar parameter, the form is as follows:
For a scalar variable and vector parameter:
For a vector variable and vector parameter:
The above formulas choose the functional form of the exponentialfamily with a logpartition function . 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 instead of the natural parameter, and/or using a factor outside of the exponential. The relation between the latter and the former is:
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.
Distribution  Parameter(s)  Natural parameter(s)  Inverse parameter mapping  Base measure  Sufficient statistic  Logpartition  Logpartition 

Bernoulli distribution  p 



binomial distribution with known number of trials n 
p  
Poisson distribution  λ  
negative binomial distribution with known number of failures r 
p  
exponential distribution  λ  
Pareto distribution with known minimum value x_{m} 
α  
Weibull distribution with known shape k 
λ  
Laplace distribution with known mean μ 
b  
chisquared distribution  ν  
normal distribution known variance 
μ  
normal distribution  μ,σ^{2}  
lognormal distribution  μ,σ^{2}  
inverse Gaussian distribution  μ,λ  
gamma distribution  α,β  
k, θ  
inverse gamma distribution  α,β  
scaled inverse chisquared distribution  ν,σ^{2}  
beta distribution  α,β  
multivariate normal distribution  μ,Σ  
categorical distribution (variant 1)  p_{1},...,p_{k} where 
where 


categorical distribution (variant 2)  p_{1},...,p_{k} where 
where 


categorical distribution (variant 3)  p_{1},...,p_{k} where 




multinomial distribution (variant 1) with known number of trials n 
p_{1},...,p_{k} where 
where 

multinomial distribution (variant 2) with known number of trials n 
p_{1},...,p_{k} where 
where 

multinomial distribution (variant 3) with known number of trials n 
p_{1},...,p_{k} where 


Dirichlet distribution  α_{1},...,α_{k}  
Wishart distribution  V,n 


NOTE: Uses the fact that i.e. the trace of a matrix product is much like a dot product. The matrix parameters are assumed to be vectorized (laid out in a vector) when inserted into the exponential form. Also, V and X are symmetric, so e.g.  
inverse Wishart distribution  Ψ,m  

normalgamma distribution  α,β,μ,λ 

The three variants of the categorical distribution and multinomial distribution are due to the fact that the parameters are constrained, such that
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 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.
Note also that 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 kdimensional parameter space.^{[9]} Many of the standard results for exponential families do not apply to curved exponential families. An example is the logpartition 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 cumulants) 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) in variant 3.)
Moments and cumulants of the sufficient statistic[edit]
Normalization of the distribution[edit]
We start with the normalization of the probability distribution. In general, any nonnegative 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.
where
The factor Z is sometimes termed the normalizer or partition function, based on an analogy to statistical physics.
In the case of an exponential family where
the kernel is
and the partition function is
Since the distribution must be normalized, we have
In other words,
or equivalently
This justifies calling A the lognormalizer or logpartition function.
Momentgenerating function of the sufficient statistic[edit]
Now, the momentgenerating function of T(x) is
where t means transpose, proving the earlier statement that
is the cumulant generating function for T.
An important subclass of exponential families are the natural exponential families, which have a similar form for the momentgenerating function for the distribution of x.
Differential identities for cumulants[edit]
In particular, using the properties of the cumulant generating function,
and
The first two raw moments and all mixed second moments can be recovered from these two identities. Higherorder moments and cumulants are obtained by higher derivatives. This technique is often useful when T 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 cumulants 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 onedimensional parameter, but an analogous derivation holds more generally.
In the onedimensional case, we have
This must be normalized, so
Take the derivative of both sides with respect to η:
Therefore,
Example 1[edit]
As an introductory example, consider the gamma distribution, whose distribution is defined by
Referring to the above table, we can see that the natural parameter is given by
the reverse substitutions are
the sufficient statistics are and the logpartition function is
We can find the mean of the sufficient statistics as follows. First, for η_{1}:
Where is the digamma function (derivative of log gamma), and we used the reverse substitutions in the last step.
Now, for η_{2}:
again making the reverse substitution in the last step.
To compute the variance of x, we just differentiate again:
All of these calculations can be done using integration, making use of various properties of the gamma function, but this requires significantly more work.
Example 2[edit]
As another example consider a real valued random variable X with density
indexed by shape parameter (this is called the skewlogistic distribution). The density can be rewritten as
Notice this is an exponential family with natural parameter
sufficient statistic
and logpartition function
So using the first identity,
and using the second identity
This example illustrates a case where using this method is very simple, but the direct calculation would be nearly impossible.
Example 3[edit]
The final example is one where integration would be extremely difficult. This is the case of the Wishart distribution, which is defined over matrices. Even taking derivatives is a bit tricky, as it involves matrix calculus, but the respective identities are listed in that article.
From the above table, we can see that the natural parameter is given by
the reverse substitutions are
and the sufficient statistics are
The logpartition function is written in various forms in the table, to facilitate differentiation and backsubstitution. We use the following forms:
 Expectation of X (associated with η_{1})
To differentiate with respect to η_{1}, we need the following matrix calculus identity:
Then:
The last line uses the fact that V is symmetric, and therefore it is the same when transposed.
 Expectation of log X (associated with η_{2})
Now, for η_{2}, we first need to expand the part of the logpartition function that involves the multivariate gamma function:
We also need the digamma function:
Then:
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).
Computing these formulas using integration would be much more difficult. The first one, for example, would require matrix integration.
Entropy[edit]
Relative entropy[edit]
The relative entropy (Kullback–Leibler divergence, 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 lognormalizer.^{[10]} 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 closedform expression (assuming the derivative has a closedform expression). Further, the Bregman divergence in terms of the natural parameters and the lognormalizer equals the Bregman divergence of the dual parameters (expectation parameters), in the opposite order, for the convex conjugate function.
Fixing an exponential family with lognormalizer (with convex conjugate ), writing 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 KL for the KL divergence, and for the Bregman divergence, the divergences are related as:
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 lognormalizer on the swapped natural parameters", or equivalently as "equal to the Bregman divergence defined by the dual to the lognormalizer on the expectation parameters".
Maximum entropy derivation[edit]
Exponential families arise naturally as the answer to the following question: what is the maximumentropy distribution consistent with given constraints on expected values?
The information entropy of a probability distribution dF(x) 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. Accordingly, we need to pick a reference measure dH(x) with the same support as dF(x).
The entropy of dF(x) relative to dH(x) is
or
where dF/dH and dH/dF are Radon–Nikodym derivatives. Note that the ordinary definition of entropy for a discrete distribution supported on a set I, namely
assumes, though this is seldom pointed out, that dH is chosen to be the counting measure on I.
Consider now a collection of observable quantities (random variables) T_{i}. The probability distribution dF whose entropy with respect to dH is greatest, subject to the conditions that the expected value of T_{i} be equal to t_{i}, is an exponential family with dH as reference measure and (T_{1}, ..., T_{n}) as sufficient statistic.
The derivation is a simple variational calculation using Lagrange multipliers. Normalization is imposed by letting T_{0} = 1 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 T_{0}.
For examples of such derivations, see Maximum entropy probability distribution.
Role in statistics[edit]
Classical estimation: sufficiency[edit]
According to the Pitman–Koopman–Darmois 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 whose dimension remains bounded as sample size increases.
Less tersely, suppose X_{k}, (where k = 1, 2, 3, ... n) are independent, identically distributed random variables. Only if their distribution is one of the exponential family of distributions is there a sufficient statistic T(X_{1}, ..., X_{n}) whose number of scalar components does not increase as the sample size n increases; the statistic T may be a vector or a single scalar number, but whatever it is, its size will neither grow nor shrink when more data are obtained.
As a counterexample if these conditions are relaxed, note that the family of uniform distributions (either discrete 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[edit]
Exponential families are also important in Bayesian statistics. In Bayesian statistics a prior distribution is multiplied by a likelihood function and then normalised to produce a posterior distribution. 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 of an exponential family
is given by
or equivalently
where s is the dimension of and and are hyperparameters (parameters controlling parameters). corresponds to the effective number of observations that the prior distribution contributes, and corresponds to the total amount that these pseudoobservations contribute to the sufficient statistic over all observations and pseudoobservations. is a normalization constant that is automatically determined by the remaining functions and serves to ensure that the given function is a probability density function (i.e. it is normalized). and equivalently 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 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 (twohumped) 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.
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:
Then, for data , the likelihood is computed as follows:
Then, for the above conjugate prior:
We can then compute the posterior as follows:
The last line is the kernel of the posterior distribution, i.e.
This shows that the posterior has the same form as the prior.
Note in particular that the data X enters into this equation only in the expression
which is termed the sufficient statistic 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 (equivalently, the number of parameters of the distribution of a single data point).
The update equations are as follows:
This shows that the update equations can be written simply in terms of the number of data points and the sufficient statistic of the data. This can be seen clearly in the various examples of update equations shown in the conjugate prior page. Note also that 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 logarithms). 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 than the one that produces a conjugate prior of the above form — often specifically because the above form is defined over the natural parameter while conjugate priors are usually defined over the actual parameter
Hypothesis testing: uniformly most powerful tests[edit]
A oneparameter exponential family has a monotone nondecreasing likelihood ratio in the sufficient statistic T(x), provided that η(θ) is nondecreasing. As a consequence, there exists a uniformly most powerful test for testing the hypothesis H_{0}: θ ≥ θ_{0} vs. H_{1}: θ < θ_{0}.
Generalized linear models[edit]
Exponential families form the basis for the distribution functions used in generalized linear models, a class of model that encompass many of the commonly used regression models in statistics.
See also[edit]
Notes[edit]
 ^ For example, the family of normal distributions includes the standard normal distribution N(0, 1) with mean 0 and variance 1, as well as other normal distributions with different mean and variance.
References[edit]
Citations[edit]
 ^ Kupperman, M. (1958) "Probabilities of Hypotheses and InformationStatistics in Sampling from ExponentialClass Populations", Annals of Mathematical Statistics, 9 (2), 571–575 JSTOR 2237349
 ^ Andersen, Erling (September 1970). "Sufficiency and Exponential Families for Discrete Sample Spaces". Journal of the American Statistical Association. Journal of the American Statistical Association, Vol. 65, No. 331. 65 (331): 1248–1255. doi:10.2307/2284291. JSTOR 2284291. MR 0268992.
 ^ Pitman, E.; Wishart, J. (1936). "Sufficient statistics and intrinsic accuracy". Mathematical Proceedings of the Cambridge Philosophical Society. 32 (4): 567–579. Bibcode:1936PCPS...32..567P. doi:10.1017/S0305004100019307.
 ^ Darmois, G. (1935). "Sur les lois de probabilites a estimation exhaustive". C. R. Acad. Sci. Paris (in French). 200: 1265–1266.
 ^ Koopman, B (1936). "On distribution admitting a sufficient statistic". Transactions of the American Mathematical Society. American Mathematical Society. 39 (3): 399–409. doi:10.2307/1989758. JSTOR 1989758. MR 1501854.
 ^ Abramovich & Ritov (2013). Statistical Theory: A Concise Introduction. Chapman & Hall. ISBN 9781439851845.
 ^ Blei, David. "Variational Inference" (PDF). Princeton.
 ^ Nielsen, Frank; Garcia, Vincent (2009). "Statistical exponential families: A digest with flash cards". arXiv:0911.4863.
 ^ van Garderen, Kees Jan (1997). "Curved Exponential Models in Econometrics". Econometric Theory. 13 (6): 771–790. doi:10.1017/S0266466600006253.
 ^ Nielsen & Nock 2010, 4. Bregman Divergences and Relative Entropy of Exponential Families.
This article includes a list of references, but its sources remain unclear because it has insufficient inline citations. (November 2010) (Learn how and when to remove this template message) 
Sources[edit]
 Nielsen, Frank; Garcia, Vincent (2009). "Statistical exponential families: A digest with flash cards". arXiv:0911.4863. Bibcode:2009arXiv0911.4863N.
 Nielsen, Frank; Nock, Richard (2010). Entropies and crossentropies of exponential families (PDF). IEEE International Conference on Image Processing. doi:10.1109/ICIP.2010.5652054. Archived from the original (PDF) on 20190331.
Further reading[edit]
 Fahrmeir, Ludwig; Tutz, G. (1994). Multivariate Statistical Modelling based on Generalized Linear Models. Springer. pp. 18–22, 345–349. ISBN 0387942335.
 Keener, Robert W. (2006). Theoretical Statistics: Topics for a Core Course. Springer. pp. 27–28, 32–33. ISBN 9780387938387.
 Lehmann, E. L.; Casella, G. (1998). Theory of Point Estimation (2nd ed.). sec. 1.5. ISBN 0387985026.