Natural exponential family

From HandWiki
Revision as of 16:32, 6 February 2024 by AIposter (talk | contribs) (simplify)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In probability and statistics, a natural exponential family (NEF) is a class of probability distributions that is a special case of an exponential family (EF).

Definition

Univariate case

The natural exponential families (NEF) are a subset of the exponential families. A NEF is an exponential family in which the natural parameter η and the natural statistic T(x) are both the identity. A distribution in an exponential family with parameter θ can be written with probability density function (PDF)

[math]\displaystyle{ f_X(x\mid \theta) = h(x)\ \exp\Big(\ \eta(\theta) T(x) - A(\theta)\ \Big) \,\! , }[/math]

where [math]\displaystyle{ h(x) }[/math] and [math]\displaystyle{ A(\theta) }[/math] are known functions. A distribution in a natural exponential family with parameter θ can thus be written with PDF

[math]\displaystyle{ f_X(x\mid \theta) = h(x)\ \exp\Big(\ \theta x - A(\theta)\ \Big) \,\! . }[/math]

[Note that slightly different notation is used by the originator of the NEF, Carl Morris.[1] Morris uses ω instead of η and ψ instead of A.]

General multivariate case

Suppose that [math]\displaystyle{ \mathbf{x} \in \mathcal{X} \subseteq \mathbb{R}^p }[/math], then a natural exponential family of order p has density or mass function of the form:

[math]\displaystyle{ f_X(\mathbf{x} \mid \boldsymbol\theta) = h(\mathbf{x})\ \exp\Big(\boldsymbol\theta^{\rm T} \mathbf{x} - A(\boldsymbol\theta)\ \Big) \,\! , }[/math]

where in this case the parameter [math]\displaystyle{ \boldsymbol\theta \in \mathbb{R}^p . }[/math]

Moment and cumulant generating functions

A member of a natural exponential family has moment generating function (MGF) of the form

[math]\displaystyle{ M_X(\mathbf{t}) = \exp\Big(\ A(\boldsymbol\theta + \mathbf{t}) - A(\boldsymbol\theta)\ \Big) \, . }[/math]

The cumulant generating function is by definition the logarithm of the MGF, so it is

[math]\displaystyle{ K_X(\mathbf{t}) = A(\boldsymbol\theta + \mathbf{t}) - A(\boldsymbol\theta) \, . }[/math]

Examples

The five most important univariate cases are:

These five examples – Poisson, binomial, negative binomial, normal, and gamma – are a special subset of NEF, called NEF with quadratic variance function (NEF-QVF) because the variance can be written as a quadratic function of the mean. NEF-QVF are discussed below.

Distributions such as the exponential, Bernoulli, and geometric distributions are special cases of the above five distributions. For example, the Bernoulli distribution is a binomial distribution with n = 1 trial, the exponential distribution is a gamma distribution with shape parameter α = 1 (or k = 1 ), and the geometric distribution is a special case of the negative binomial distribution.

Some exponential family distributions are not NEF. The lognormal and Beta distribution are in the exponential family, but not the natural exponential family. The gamma distribution with two parameters is an exponential family but not a NEF and the chi-squared distribution is a special case of the gamma distribution with fixed scale parameter, and thus is also an exponential family but not a NEF (note that only a gamma distribution with fixed shape parameter is a NEF).

The inverse Gaussian distribution is a NEF with a cubic variance function.

The parameterization of most of the above distributions has been written differently from the parameterization commonly used in textbooks and the above linked pages. For example, the above parameterization differs from the parameterization in the linked article in the Poisson case. The two parameterizations are related by [math]\displaystyle{ \theta = \log(\lambda) }[/math], where λ is the mean parameter, and so that the density may be written as

[math]\displaystyle{ f(k;\theta) = \frac{1}{k!} \exp\Big(\ \theta\ k - \exp(\theta)\ \Big) \ , }[/math]

for [math]\displaystyle{ \theta \in \mathbb{R} }[/math], so

[math]\displaystyle{ h(k) = \frac{1}{k!}, \text{ and } A(\theta) = \exp(\theta)\ . }[/math]

This alternative parameterization can greatly simplify calculations in mathematical statistics. For example, in Bayesian inference, a posterior probability distribution is calculated as the product of two distributions. Normally this calculation requires writing out the probability distribution functions (PDF) and integrating; with the above parameterization, however, that calculation can be avoided. Instead, relationships between distributions can be abstracted due to the properties of the NEF described below.

An example of the multivariate case is the multinomial distribution with known number of trials.

Properties

The properties of the natural exponential family can be used to simplify calculations involving these distributions.

Univariate case

1. The cumulants of an NEF can be calculated as derivatives of the NEF's cumulant generating function. The nth cumulant is the nth derivative of the cumulant generating function with respect to t evaluated at t = 0.

The cumulant generating function is

[math]\displaystyle{ K_X(t) = A(\theta + t) - A(\theta) \, . }[/math]

The first cumulant is

[math]\displaystyle{ \kappa_1 = K_X'(t)\Big|_{t = 0} = \left. \frac{d}{d t} A(\theta + t) \right|_{t = 0} \, . }[/math]

The mean is the first moment and always equal to the first cumulant, so

[math]\displaystyle{ \mu_1 = \kappa_1 = \operatorname{E}[X] = K'_X(0) = A'(\theta)\, . }[/math]

The variance is always the second cumulant, and it is always related to the first and second moments by

[math]\displaystyle{ \operatorname{Var}[X] = \kappa_2 = \mu_2 - \mu_1^2 \, , }[/math]

so that

[math]\displaystyle{ \operatorname{Var}[X] = K''_X(0) = A''(\theta) \, . }[/math]

Likewise, the nth cumulant is

[math]\displaystyle{ \kappa_n = A^{(n)}(\theta) \, . }[/math]

2. Natural exponential families (NEF) are closed under convolution.[2]

Given independent identically distributed (iid) [math]\displaystyle{ X_1,\ldots,X_n }[/math] with distribution from an NEF, then [math]\displaystyle{ \sum_{i=1}^n X_i\, }[/math] is an NEF, although not necessarily the original NEF. This follows from the properties of the cumulant generating function.

3. The variance function for random variables with an NEF distribution can be written in terms of the mean.[2]

[math]\displaystyle{ \operatorname{Var}(X) = V(\mu). }[/math]

4. The first two moments of a NEF distribution uniquely specify the distribution within that family of distributions.[2]

[math]\displaystyle{ X \sim \operatorname{NEF} [\mu, V(\mu)] . }[/math]

Multivariate case

In the multivariate case, the mean vector and covariance matrix are[citation needed]

[math]\displaystyle{ \operatorname{E}[X] = \nabla A(\boldsymbol\theta) \text{ and } \operatorname{Cov}[X] = \nabla \nabla^{\rm T} A(\boldsymbol\theta)\, , }[/math]

where[math]\displaystyle{ \nabla }[/math] is the gradient and [math]\displaystyle{ \nabla \nabla^{\rm T} }[/math] is the Hessian matrix.

Natural exponential families with quadratic variance functions (NEF-QVF)

A special case of the natural exponential families are those with quadratic variance functions. Six NEFs have quadratic variance functions (QVF) in which the variance of the distribution can be written as a quadratic function of the mean. These are called NEF-QVF. The properties of these distributions were first described by Carl Morris. [3]

[math]\displaystyle{ \operatorname{Var}(X) = V(\mu) = \nu_0 + \nu_1 \mu + \nu_2 \mu^2. }[/math]

The six NEF-QVFs

The six NEF-QVF are written here in increasing complexity of the relationship between variance and mean.

1. The normal distribution with fixed variance [math]\displaystyle{ X \sim N(\mu, \sigma^2) }[/math] is NEF-QVF because the variance is constant. The variance can be written [math]\displaystyle{ \operatorname{Var}(X) = V(\mu) = \sigma^2 }[/math], so variance is a degree 0 function of the mean.

2. The Poisson distribution [math]\displaystyle{ X \sim \operatorname{Poisson}(\mu) }[/math] is NEF-QVF because all Poisson distributions have variance equal to the mean [math]\displaystyle{ \operatorname{Var}(X) = V(\mu) = \mu }[/math], so variance is a linear function of the mean.

3. The Gamma distribution [math]\displaystyle{ X \sim \operatorname{Gamma}(r, \lambda) }[/math] is NEF-QVF because the mean of the Gamma distribution is [math]\displaystyle{ \mu = r\lambda }[/math] and the variance of the Gamma distribution is [math]\displaystyle{ \operatorname{Var}(X) = V(\mu) = \mu^2/r }[/math], so the variance is a quadratic function of the mean.

4. The binomial distribution [math]\displaystyle{ X \sim \operatorname{Binomial}(n, p) }[/math] is NEF-QVF because the mean is [math]\displaystyle{ \mu = np }[/math] and the variance is [math]\displaystyle{ \operatorname{Var}(X) = np(1-p) }[/math] which can be written in terms of the mean as [math]\displaystyle{ V(X) = - np^2 + np = -\mu^2/n + \mu. }[/math]

5. The negative binomial distribution [math]\displaystyle{ X \sim \operatorname{NegBin}(n, p) }[/math] is NEF-QVF because the mean is [math]\displaystyle{ \mu = np/(1-p) }[/math] and the variance is [math]\displaystyle{ V(\mu) = \mu^2/n + \mu. }[/math]

6. The (not very famous) distribution generated by the generalized[clarification needed] hyperbolic secant distribution (NEF-GHS) has[citation needed] [math]\displaystyle{ V(\mu) = \mu^2/n +n }[/math] and [math]\displaystyle{ \mu \gt 0. }[/math]

Properties of NEF-QVF

The properties of NEF-QVF can simplify calculations that use these distributions.

1. Natural exponential families with quadratic variance functions (NEF-QVF) are closed under convolutions of a linear transformation.[4] That is, a convolution of a linear transformation of an NEF-QVF is also an NEF-QVF, although not necessarily the original one.

Given independent identically distributed (iid) [math]\displaystyle{ X_1,\ldots,X_n }[/math] with distribution from a NEF-QVF. A convolution of a linear transformation of an NEF-QVF is also an NEF-QVF.

Let [math]\displaystyle{ Y = \sum_{i=1}^n (X_i - b)/c \, }[/math] be the convolution of a linear transformation of X. The mean of Y is [math]\displaystyle{ \mu^* = n(\mu - b)/c \, }[/math]. The variance of Y can be written in terms of the variance function of the original NEF-QVF. If the original NEF-QVF had variance function

[math]\displaystyle{ \operatorname{Var}(X) = V(\mu) = \nu_0 + \nu_1 \mu + \nu_2 \mu^2, }[/math]

then the new NEF-QVF has variance function

[math]\displaystyle{ \operatorname{Var}(Y) = V^*(\mu^*) = \nu^*_0 + \nu^*_1 \mu + \nu^*_2 \mu^2 , }[/math]

where

[math]\displaystyle{ \nu^*_0 = nV(b)/c^2 \, , }[/math]
[math]\displaystyle{ \nu^*_1 = V'(b)/c \, , }[/math]
[math]\displaystyle{ \nu^*_2/n = \nu_2/n \, . }[/math]

2. Let [math]\displaystyle{ X_1 }[/math] and [math]\displaystyle{ X_2 }[/math] be independent NEF with the same parameter θ and let [math]\displaystyle{ Y = X_1 + X_2 }[/math]. Then the conditional distribution of [math]\displaystyle{ X_1 }[/math] given [math]\displaystyle{ Y }[/math] has quadratic variance in [math]\displaystyle{ Y }[/math] if and only if [math]\displaystyle{ X_1 }[/math] and [math]\displaystyle{ X_2 }[/math] are NEF-QVF. Examples of such conditional distributions are the normal, binomial, beta, hypergeometric and geometric distributions, which are not all NEF-QVF.[1]

3. NEF-QVF have conjugate prior distributions on μ in the Pearson system of distributions (also called the Pearson distribution although the Pearson system of distributions is actually a family of distributions rather than a single distribution.) Examples of conjugate prior distributions of NEF-QVF distributions are the normal, gamma, reciprocal gamma, beta, F-, and t- distributions. Again, these conjugate priors are not all NEF-QVF.[1]

4. If [math]\displaystyle{ X \mid \mu }[/math] has an NEF-QVF distribution and μ has a conjugate prior distribution then the marginal distributions are well-known distributions.[1]

These properties together with the above notation can simplify calculations in mathematical statistics that would normally be done using complicated calculations and calculus.


See also

References

  1. 1.0 1.1 1.2 1.3 Morris C. (2006) "Natural exponential families", Encyclopedia of Statistical Sciences.
  2. 2.0 2.1 2.2 Carl N. Morris. "Natural Exponential Families with Quadratic Variance Functions: Statistical Theory." Ann. Statist. 11 (2) 515 - 529, June, 1983. https://doi.org/10.1214/aos/1176346158
  3. Morris, Carl (1982). "Natural Exponential Families with Quadratic Variance Functions". The Annals of Statistics 10 (1): 65–80. doi:10.1214/aos/1176345690. 
  4. Morris, Carl; Lock, Kari F. (2009). "Unifying the Named Natural Exponential Families and Their Relatives". The American Statistician 63 (3): 247–253. doi:10.1198/tast.2009.08145. 
  • Morris C. (1982) Natural exponential families with quadratic variance functions: statistical theory. Dept of mathematics, Institute of Statistics, University of Texas, Austin.