# Compound probability distribution

In probability and statistics, a **compound probability distribution** (also known as a **mixture distribution** or **contagious distribution**) is the probability distribution that results from assuming that a random variable is distributed according to some parametrized distribution, with (some of) the parameters of that distribution themselves being random variables.
If the parameter is a scale parameter, the resulting mixture is also called a **scale mixture**.

The compound distribution ("unconditional distribution") is the result of marginalizing (integrating) over the *latent* random variable(s) representing the parameter(s) of the parametrized distribution ("conditional distribution").

## Definition

A **compound probability distribution** is the probability distribution that results from assuming that a random variable [math]\displaystyle{ X }[/math] is distributed according to some parametrized distribution [math]\displaystyle{ F }[/math] with an unknown parameter [math]\displaystyle{ \theta }[/math] that is again distributed according to some other distribution [math]\displaystyle{ G }[/math]. The resulting distribution [math]\displaystyle{ H }[/math] is said to be the distribution that results from compounding [math]\displaystyle{ F }[/math] with [math]\displaystyle{ G }[/math]. The parameter's distribution [math]\displaystyle{ G }[/math] is also called the **mixing distribution** or **latent distribution**. Technically, the *unconditional* distribution [math]\displaystyle{ H }[/math] results from *marginalizing* over [math]\displaystyle{ G }[/math], i.e., from integrating out the unknown parameter(s) [math]\displaystyle{ \theta }[/math]. Its probability density function is given by:

- [math]\displaystyle{ p_H(x) = {\displaystyle \int\limits p_F(x|\theta)\,p_G(\theta) \operatorname{d}\!\theta} }[/math]

The same formula applies analogously if some or all of the variables are vectors.

From the above formula, one can see that a compound distribution essentially is a special case of a marginal distribution: The *joint distribution* of [math]\displaystyle{ x }[/math] and [math]\displaystyle{ \theta }[/math] is given by
[math]\displaystyle{ p(x,\theta)=p(x|\theta)p(\theta) }[/math], and the compound results as its marginal distribution:
[math]\displaystyle{ {\textstyle p(x) = \int p(x,\theta) \operatorname{d}\!\theta } }[/math].
If the domain of [math]\displaystyle{ \theta }[/math] is discrete, then the distribution is again a special case of a mixture distribution.

## Properties

The compound distribution [math]\displaystyle{ H }[/math] will depend on the specific expression of each distribution, as well as which parameter of [math]\displaystyle{ F }[/math] is distributed according to the distribution [math]\displaystyle{ G }[/math], and the parameters of [math]\displaystyle{ H }[/math] will include any parameters of [math]\displaystyle{ G }[/math] that are not marginalized, or integrated, out. The support of [math]\displaystyle{ H }[/math] is the same as that of [math]\displaystyle{ F }[/math], and if the latter is a two-parameter distribution parameterized with the mean and variance, some general properties exist.

The compound distribution's first two moments are given by:

[math]\displaystyle{ \operatorname{E}_H[X] = \operatorname{E}_G\bigl[\operatorname{E}_F[X|\theta]\bigr] }[/math]

[math]\displaystyle{ \operatorname{Var}_H(X) = \operatorname{E}_G\bigl[\operatorname{Var}_F(X|\theta)\bigr] + \operatorname{Var}_G\bigl(\operatorname{E}_F[X|\theta]\bigr) }[/math] (Law of total variance)

If the mean of [math]\displaystyle{ F }[/math] is distributed as [math]\displaystyle{ G }[/math], which in turn has mean [math]\displaystyle{ \mu }[/math] and variance [math]\displaystyle{ \sigma^2 }[/math] the expressions above imply [math]\displaystyle{ \operatorname{E}_H[X] = \operatorname{E}_G[\theta] = \mu }[/math] and [math]\displaystyle{ \operatorname{Var}_H(X) = \operatorname{Var}_F(X|\theta) + \operatorname{Var}_G(Y) = \tau^2 + \sigma^2 }[/math], where [math]\displaystyle{ \tau^2 }[/math] is the variance of [math]\displaystyle{ F }[/math].

### Proof

let [math]\displaystyle{ F }[/math] and [math]\displaystyle{ G }[/math] be probability distributions parameterized with mean a variance as [math]\displaystyle{ \begin{align} x &\sim \mathcal{F}(\theta,\tau^2) \\ \theta &\sim \mathcal{G}(\mu,\sigma^2) \end{align} }[/math] then denoting the probability density functions as [math]\displaystyle{ f(x|\theta) = p_F(x|\theta) }[/math] and [math]\displaystyle{ g(\theta) = p_G(\theta) }[/math] respectively, and [math]\displaystyle{ h(x) }[/math] being the probability density of [math]\displaystyle{ H }[/math] we have [math]\displaystyle{ \begin{align} \operatorname{E}_H[X] = \int_F x h(x)dx &= \int_F x \int_G f(x|\theta) g(\theta) d\theta dx \\ &= \int_G \int_F x f(x|\theta) dx\ g(\theta) d\theta \\ &= \int_G \operatorname{E}_F[X|\theta] g(\theta) d\theta \end{align} }[/math]

and we have from the parameterization [math]\displaystyle{ \mathcal{F} }[/math] and [math]\displaystyle{ \mathcal{G} }[/math] that

[math]\displaystyle{ \begin{align} \operatorname{E}_F[X|\theta] &= \int_F x f(x|\theta)dx = \theta \\ \operatorname{E}_G[\theta] &= \int_G \theta g(\theta)d\theta = \mu \end{align} }[/math] and therefore the mean of the compound distribution [math]\displaystyle{ \operatorname{E}_H[X] = \mu }[/math] as per the expression for its first moment above.

The variance of [math]\displaystyle{ H }[/math] is given by [math]\displaystyle{ \operatorname{E}_H[X^2] - (\operatorname{E}_H[X])^2 }[/math], and [math]\displaystyle{ \begin{align} \operatorname{E}_H[X^2] = \int_F x^2 h(x)dx &= \int_F x^2 \int_G f(x|\theta) g(\theta) d\theta dx \\ &= \int_G \int_F x^2 f(x|\theta) dx\ g(\theta) d\theta \\ &= \int_G \tau^2 + \theta^2 g(\theta) d\theta \end{align} }[/math] in the last step we use the fact that [math]\displaystyle{ \operatorname{Var}_F(X|\theta) = \langle x^2 \rangle - \langle x \rangle^2 = \langle x^2 \rangle - \theta^2 }[/math], and we also have that [math]\displaystyle{ \operatorname{Var}_G(\theta) = \langle \theta^2 \rangle - \langle \theta \rangle^2 = \langle \theta^2 \rangle - \mu^2 }[/math], so the expression above becomes: [math]\displaystyle{ \begin{align} \operatorname{E}_H[X^2] &= \int_G \tau^2 + \theta^2 g(\theta) d\theta \\ &= \tau^2 + \sigma^2 + \mu^2 \end{align} }[/math] and finally [math]\displaystyle{ \begin{align} \operatorname{Var}_H(X) &= \operatorname{E}_H[X^2] - (\operatorname{E}_H[X])^2 \\ &= \tau^2 + \sigma^2 \end{align} }[/math]

## Applications

### Testing

Distributions of common test statistics result as compound distributions under their null hypothesis, for example in Student's t-test (where the test statistic results as the ratio of a normal and a chi-squared random variable), or in the F-test (where the test statistic is the ratio of two chi-squared random variables).

### Overdispersion modeling

Compound distributions are useful for modeling outcomes exhibiting overdispersion, i.e., a greater amount of variability than would be expected under a certain model. For example, count data are commonly modeled using the Poisson distribution, whose variance is equal to its mean. The distribution may be generalized by allowing for variability in its rate parameter, implemented via a gamma distribution, which results in a marginal negative binomial distribution. This distribution is similar in its shape to the Poisson distribution, but it allows for larger variances. Similarly, a binomial distribution may be generalized to allow for additional variability by compounding it with a beta distribution for its success probability parameter, which results in a beta-binomial distribution.

### Bayesian inference

Besides ubiquitous marginal distributions that may be seen as special cases of compound distributions,
in Bayesian inference, compound distributions arise when, in the notation above, *F* represents the distribution of future observations and *G* is the posterior distribution of the parameters of *F*, given the information in a set of observed data. This gives a posterior predictive distribution. Correspondingly, for the prior predictive distribution, *F* is the distribution of a new data point while *G* is the prior distribution of the parameters.

### Convolution

Convolution of probability distributions (to derive the probability distribution of sums of random variables) may also be seen as a special case of compounding; here the sum's distribution essentially results from considering one summand as a random location parameter for the other summand.^{[1]}

## Computation

Compound distributions derived from exponential family distributions often have a closed form. If analytical integration is not possible, numerical methods may be necessary.

Compound distributions may relatively easily be investigated using Monte Carlo methods, i.e., by generating random samples. It is often easy to generate random numbers from the
distributions [math]\displaystyle{ p(\theta) }[/math] as well as [math]\displaystyle{ p(x|\theta) }[/math] and then utilize these to perform *collapsed Gibbs sampling* to generate samples from [math]\displaystyle{ p(x) }[/math].

A compound distribution may usually also be approximated to a sufficient degree by a mixture distribution using a finite number of mixture components, allowing to derive approximate density, distribution function etc.^{[1]}

Parameter estimation (maximum-likelihood or maximum-a-posteriori estimation) within a compound distribution model may sometimes be simplified by utilizing the EM-algorithm.^{[2]}

## Examples

- Gaussian scale mixtures:
^{[3]}- Compounding a normal distribution with variance distributed according to an inverse gamma distribution (or equivalently, with precision distributed as a gamma distribution) yields a non-standardized
**Student's t-distribution**.^{[4]}This distribution has the same symmetrical shape as a normal distribution with the same central point, but has greater variance and heavy tails. - Compounding a Gaussian (or normal) distribution with variance distributed according to an exponential distribution (or with standard deviation according to a Rayleigh distribution) yields a
**Laplace distribution**. More generally, compounding a Gaussian (or normal) distribution with variance distributed according to an gamma distribution yields a**variance-gamma distribution**. - Compounding a Gaussian distribution with variance distributed according to an exponential distribution whose rate parameter is itself distributed according to a gamma distribution yields a
**Normal-exponential-gamma distribution**. (This involves two compounding stages. The variance itself then follows a Lomax distribution; see below.) - Compounding a Gaussian distribution with standard deviation distributed according to a (standard) inverse uniform distribution yields a
**Slash distribution**.

- Compounding a normal distribution with variance distributed according to an inverse gamma distribution (or equivalently, with precision distributed as a gamma distribution) yields a non-standardized
- other Gaussian mixtures:
- Compounding a Gaussian distribution with mean distributed according to another Gaussian distribution yields (again) a
**Gaussian distribution**. - Compounding a Gaussian distribution with mean distributed according to a shifted exponential distribution yields an
**exponentially modified Gaussian distribution**.

- Compounding a Gaussian distribution with mean distributed according to another Gaussian distribution yields (again) a

- Compounding a Bernoulli distribution with probability of success [math]\displaystyle{ p }[/math] distributed according to a distribution [math]\displaystyle{ X }[/math] that has a defined expected value yields a Bernoulli distribution with success probability [math]\displaystyle{ E[X] }[/math]. An interesting consequence is that the dispersion of [math]\displaystyle{ X }[/math] does not influence the dispersion of the resulting compound distribution.
- Compounding a binomial distribution with probability of success distributed according to a beta distribution yields a
**beta-binomial distribution**. It possesses three parameters, a parameter [math]\displaystyle{ n }[/math] (number of samples) from the binomial distribution and shape parameters [math]\displaystyle{ \alpha }[/math] and [math]\displaystyle{ \beta }[/math] from the beta distribution.^{[5]}^{[6]} - Compounding a multinomial distribution with probability vector distributed according to a Dirichlet distribution yields a
**Dirichlet-multinomial distribution**. - Compounding a Poisson distribution with rate parameter distributed according to a gamma distribution yields a
**negative binomial distribution**.^{[7]}^{[8]} - Compounding a Poisson distribution with rate parameter distributed according to a exponential distribution yields a
**geometric distribution**. - Compounding an exponential distribution with its rate parameter distributed according to a gamma distribution yields a
**Lomax distribution**.^{[9]} - Compounding a gamma distribution with inverse scale parameter distributed according to another gamma distribution yields a three-parameter
**beta prime distribution**.^{[10]} - Compounding a half-normal distribution with its scale parameter distributed according to a Rayleigh distribution yields an
**exponential distribution**. This follows immediately from the Laplace distribution resulting as a normal scale mixture; see above. The roles of conditional and mixing distributions may also be exchanged here; consequently, compounding a Rayleigh distribution with its scale parameter distributed according to a half-normal distribution*also*yields an exponential distribution. - A Gamma(k=2,θ) - distributed random variable whose scale parameter θ again is uniformly distributed marginally yields an
**exponential distribution**.

## Similar terms

The notion of "compound distribution" as used e.g. in the definition of a Compound Poisson distribution or Compound Poisson process is different from the definition found in this article. The meaning in this article corresponds to what is used in e.g. Bayesian hierarchical modeling.

The special case for compound probability distributions where the parametrized distribution [math]\displaystyle{ F }[/math] is the Poisson distribution is also called mixed Poisson distribution.

## See also

- Mixture distribution
- Mixed Poisson distribution
- Bayesian hierarchical modeling
- Marginal distribution
- Conditional distribution, Joint distribution
- Convolution
- Overdispersion
- EM-algorithm

## References

- ↑
^{1.0}^{1.1}Röver, C.; Friede, T. (2017). "Discrete approximation of a mixture distribution via restricted divergence".*Journal of Computational and Graphical Statistics***26**(1): 217–222. doi:10.1080/10618600.2016.1276840. - ↑ Gelman, A.; Carlin, J. B.; Stern, H.; Rubin, D. B. (1997). "9.5
*Finding marginal posterior modes using EM and related algorithms*".*Bayesian Data Analysis*(1st ed.). Boca Raton: Chapman & Hall / CRC. p. 276. - ↑ Gneiting, T. (1997). "Normal scale mixtures and dual probability densities".
*Journal of Statistical Computation and Simulation***59**(4): 375–384. doi:10.1080/00949659708811867. - ↑ Mood, A. M.; Graybill, F. A.; Boes, D. C. (1974).
*Introduction to the theory of statistics*(3rd ed.). New York: McGraw-Hill. - ↑ Johnson, N. L.; Kemp, A. W.; Kotz, S. (2005). "6.2.2".
*Univariate discrete distributions*(3rd ed.). New York: Wiley. p. 253. - ↑ Gelman, A.; Carlin, J. B.; Stern, H.; Dunson, D. B.; Vehtari, A.; Rubin, D. B. (2014).
*Bayesian Data Analysis*(3rd ed.). Boca Raton: Chapman & Hall / CRC. - ↑ Lawless, J.F. (1987). "Negative binomial and mixed Poisson regression".
*The Canadian Journal of Statistics***15**(3): 209–225. doi:10.2307/3314912. - ↑ Teich, M. C.; Diament, P. (1989). "Multiply stochastic representations for K distributions and their Poisson transforms".
*Journal of the Optical Society of America A***6**(1): 80–91. doi:10.1364/JOSAA.6.000080. Bibcode: 1989JOSAA...6...80T. - ↑ Johnson, N. L.; Kotz, S.; Balakrishnan, N. (1994). "20
*Pareto distributions*".*Continuous univariate distributions*.**1**(2nd ed.). New York: Wiley. p. 573. - ↑ Dubey, S. D. (1970). "Compound gamma, beta and F distributions".
*Metrika***16**: 27–31. doi:10.1007/BF02613934.

## Further reading

- Lindsay, B. G. (1995),
*Mixture models: theory, geometry and applications*, NSF-CBMS Regional Conference Series in Probability and Statistics,**5**, Hayward, CA, USA: Institute of Mathematical Statistics, pp. i–163, ISBN 978-0-940600-32-4 - Seidel, W. (2010), Lovric, M., ed.,
*Mixture models*, Heidelberg: Springer, pp. 827–829, doi:10.1007/978-3-642-04898-2_368, ISBN 978-3-642-04898-2 - Mood, A. M.; Graybill, F. A.; Boes, D. C. (1974), "III.4.3
*Contagious distributions and truncated distributions*",*Introduction to the theory of statistics*(3rd ed.), New York: McGraw-Hill, ISBN 978-0-07-042864-5 - Johnson, N. L.; Kemp, A. W.; Kotz, S. (2005), "8
*Mixture distributions*",*Univariate discrete distributions*, New York: Wiley, ISBN 978-0-471-27246-5

Original source: https://en.wikipedia.org/wiki/Compound probability distribution.
Read more |