# Principle of maximum entropy

Principle of maximum entropy

In Bayesian probability, the principle of maximum entropy is a postulate which states that, subject to known constraints (called testable information), the probability distribution which best represents the current state of knowledge is the one with largest entropy.

Let some testable information about a probability distribution function be given. Consider the set of all trial probability distributions that encode this information. Then, the probability distribution that maximizes the information entropy is the true probability distribution with respect to the testable information prescribed.

## History

The principle was first expounded by E.T. Jaynes in two papers in 1957[1][2] where he emphasized a natural correspondence between statistical mechanics and information theory. In particular, Jaynes offered a new and very general rationale why the Gibbsian method of statistical mechanics works. He argued that the entropy of statistical mechanics, and the information entropy of information theory, are principally the same thing. Consequently, statistical mechanics should be seen just as a particular application of a general tool of logical inference and information theory.

## Overview

In most practical cases, the testable information is given by a set of conserved quantities (average values of some moment functions), associated with the probability distribution in question. This is the way the maximum entropy principle is most often used in statistical thermodynamics. Another possibility is to prescribe some symmetries of the probability distribution. An equivalence between the conserved quantities and corresponding symmetry groups implies the same level of equivalence for both these two ways of specifying the testable information in the maximum entropy method.

The maximum entropy principle is also needed to guarantee the uniqueness and consistency of probability assignments obtained by different methods, statistical mechanics and logical inference in particular. Strictly speaking, the trial distributions, which do not maximize the entropy, are actually not probability distributions.

The maximum entropy principle makes explicit our freedom in using different forms of prior information. As a special case, a uniform prior probability density (Laplace's principle of indifference) may be adopted. Thus, the maximum entropy principle is not just an alternative to the methods of inference of classical statistics, but it is an important conceptual generalization of those methods.

## Testable information

The principle of maximum entropy is useful explicitly only when applied to testable information. A piece of information is testable if it can be determined whether a given distribution is consistent with it. For example, the statements

The expectation of the variable x is 2.87

and

p2 + p3 > 0.6

are statements of testable information.

Given testable information, the maximum entropy procedure consists of seeking the probability distribution which maximizes information entropy, subject to the constraints of the information. This constrained optimization problem is typically solved using the method of Lagrange multipliers.

Entropy maximization with no testable information takes place under a single constraint: the sum of the probabilities must be one. Under this constraint, the maximum entropy discrete probability distribution is the uniform distribution,

$p_i=\frac{1}{n}\ {\rm for\ all}\ i\in\{\,1,\dots,n\,\}.$

The principle of maximum entropy can thus be seen as a generalization of the classical principle of indifference, also known as the principle of insufficient reason.

## Applications

The principle of maximum entropy is commonly applied in two ways to inferential problems:

### Prior probabilities

The principle of maximum entropy is often used to obtain prior probability distributions for Bayesian inference. Jaynes was a strong advocate of this approach, claiming the maximum entropy distribution represented the least informative distribution.[3] A large amount of literature is now dedicated to the elicitation of maximum entropy priors and links with channel coding.[4][5][6]

### Maximum entropy models

Alternatively, the principle is often invoked for model specification: in this case the observed data itself is assumed to be the testable information. Such models are widely used in natural language processing. An example of such a model is logistic regression, which corresponds to the maximum entropy classifier for independent observations.

## General solution for the maximum entropy distribution with linear constraints

### Discrete case

We have some testable information I about a quantity x taking values in {x1, x2,..., xn}. We express this information as m constraints on the expectations of the functions fk; that is, we require our probability distribution to satisfy

$\sum_{i=1}^n \Pr(x_i|I)f_k(x_i) = F_k \qquad k = 1, \ldots,m.$

Furthermore, the probabilities must sum to one, giving the constraint

$\sum_{i=1}^n \Pr(x_i|I) = 1.$

The probability distribution with maximum information entropy subject to these constraints is

$\Pr(x_i|I) = \frac{1}{Z(\lambda_1,\ldots, \lambda_m)} \exp\left[\lambda_1 f_1(x_i) + \cdots + \lambda_m f_m(x_i)\right]$

It is sometimes called the Gibbs distribution. The normalization constant is determined by

$Z(\lambda_1,\ldots, \lambda_m) = \sum_{i=1}^n \exp\left[\lambda_1 f_1(x_i) + \cdots + \lambda_m f_m(x_i)\right],$

and is conventionally called the partition function. (Interestingly, the Pitman–Koopman theorem states that the necessary and sufficient condition for a sampling distribution to admit sufficient statistics of bounded dimension is that it have the general form of a maximum entropy distribution.)

The λk parameters are Lagrange multipliers whose particular values are determined by the constraints according to

$F_k = \frac{\partial}{\partial \lambda_k} \log Z(\lambda_1,\ldots, \lambda_m).$

These m simultaneous equations do not generally possess a closed form solution, and are usually solved by numerical methods.

### Continuous case

For continuous distributions, the simple definition of Shannon entropy ceases to be so useful (see differential entropy). Instead Edwin Jaynes (1963, 1968, 2003) gave the following formula, which is closely related to the relative entropy.

$H_c=-\int p(x)\log\frac{p(x)}{m(x)}\,dx$

where m(x), which Jaynes called the "invariant measure", is proportional to the limiting density of discrete points. For now, we shall assume that it is known; we will discuss it further after the solution equations are given.

A closely related quantity, the relative entropy, is usually defined as the Kullback-Leibler divergence of m from p (although it is sometimes, confusingly, defined as the negative of this). The inference principle of minimizing this, due to Kullback, is known as the Principle of Minimum Discrimination Information.

We have some testable information I about a quantity x which takes values in some interval of the real numbers (all integrals below are over this interval). We express this information as m constraints on the expectations of the functions fk, i.e. we require our probability density function to satisfy

$\int p(x|I)f_k(x)dx = F_k \qquad k = 1, \cdots,m$

And of course, the probability density must integrate to one, giving the constraint

$\int p(x|I)dx = 1$

The probability density function with maximum Hc subject to these constraints is

$p(x|I) = \frac{1}{Z(\lambda_1,\cdots, \lambda_m)} m(x)\exp\left[\lambda_1 f_1(x) + \cdots + \lambda_m f_m(x)\right]$

with the partition function determined by

$Z(\lambda_1,\cdots, \lambda_m) = \int m(x)\exp\left[\lambda_1 f_1(x) + \cdots + \lambda_m f_m(x)\right]dx$

As in the discrete case, the values of the λk parameters are determined by the constraints according to

$F_k = \frac{\partial}{\partial \lambda_k} \log Z(\lambda_1,\cdots, \lambda_m)$

The invariant measure function m(x) can be best understood by supposing that x is known to take values only in the bounded interval (a, b), and that no other information is given. Then the maximum entropy probability density function is

$p(x|I) = A \cdot m(x), \qquad a < x < b$

where A is a normalization constant. The invariant measure function is actually the prior density function encoding 'lack of relevant information'. It cannot be determined by the principle of maximum entropy, and must be determined by some other logical method, such as the principle of transformation groups or marginalization theory.

### Examples

For several examples of maximum entropy distributions, see the article on maximum entropy probability distributions.

## Justifications for the principle of maximum entropy

Proponents of the principle of maximum entropy justify its use in assigning probabilities in several ways, including the following two arguments. These arguments take the use of Bayesian probability as given, and are thus subject to the same postulates.

### Information entropy as a measure of 'uninformativeness'

Consider a discrete probability distribution among m mutually exclusive propositions. The most informative distribution would occur when one of the propositions was known to be true. In that case, the information entropy would be equal to zero. The least informative distribution would occur when there is no reason to favor any one of the propositions over the others. In that case, the only reasonable probability distribution would be uniform, and then the information entropy would be equal to its maximum possible value, log m. The information entropy can therefore be seen as a numerical measure which describes how uninformative a particular probability distribution is, ranging from zero (completely informative) to log m (completely uninformative).

By choosing to use the distribution with the maximum entropy allowed by our information, the argument goes, we are choosing the most uninformative distribution possible. To choose a distribution with lower entropy would be to assume information we do not possess; to choose one with a higher entropy would violate the constraints of the information we do possess. Thus the maximum entropy distribution is the only reasonable distribution.

### The Wallis derivation

The following argument is the result of a suggestion made by Graham Wallis to E. T. Jaynes in 1962 (Jaynes, 2003). It is essentially the same mathematical argument used for the Maxwell-Boltzmann statistics in statistical mechanics, although the conceptual emphasis is quite different. It has the advantage of being strictly combinatorial in nature, making no reference to information entropy as a measure of 'uncertainty', 'uninformativeness', or any other imprecisely defined concept. The information entropy function is not assumed a priori, but rather is found in the course of the argument; and the argument leads naturally to the procedure of maximizing the information entropy, rather than treating it in some other way.

Suppose an individual wishes to make a probability assignment among m mutually exclusive propositions. She has some testable information, but is not sure how to go about including this information in her probability assessment. She therefore conceives of the following random experiment. She will distribute N quanta of probability (each worth 1/N) at random among the m possibilities. (One might imagine that she will throw N balls into m buckets while blindfolded. In order to be as fair as possible, each throw is to be independent of any other, and every bucket is to be the same size.) Once the experiment is done, she will check if the probability assignment thus obtained is consistent with her information. If not, she will reject it and try again. Otherwise, her assessment will be

$p_i = \frac{n_i}{N}$

where pi is the probability of the ith proposition, while ni is the number of quanta that were assigned to the ith proposition (if the individual in our experiment carries out the ball throwing experiment, then ni is the number of balls that ended up in bucket i).

Now, in order to reduce the 'graininess' of the probability assignment, it will be necessary to use quite a large number of quanta of probability. Rather than actually carry out, and possibly have to repeat, the rather long random experiment, our protagonist decides to simply calculate and use the most probable result. The probability of any particular result is the multinomial distribution,

$Pr(\mathbf{p}) = W \cdot m^{-N}$

where

$W = \frac{N!}{n_1 !n_2 !...n_m!}$

is sometimes known as the multiplicity of the outcome.

The most probable result is the one which maximizes the multiplicity W. Rather than maximizing W directly, our protagonist could equivalently maximize any monotonic increasing function of W. She decides to maximize

$\begin{matrix}\frac{1}{N}\log W &=& \frac{1}{N}\log \frac{N!}{n_1 !n_2 !...n_m!}\qquad\qquad\qquad\qquad\qquad \\ \\ \ &=& \frac{1}{N}\log \frac{N!}{Np_1 !Np_2 !...Np_m!} \qquad\qquad\qquad\qquad\\ \\ \ &=& \frac{1}{N}\left( \log N! - \sum_{i=1}^m \log Np_i! \right) \qquad\qquad\end{matrix}$

At this point, in order to simplify the expression, our protagonist takes the limit as $N\to\infty$, i.e. as the probability levels go from grainy discrete values to smooth continuous values. Using Stirling's approximation, she finds

$\begin{matrix}\lim_{N \to \infty}\left(\frac{1}{N}\log W\right) &=& \frac{1}{N}\left( N\log N - \sum_{i=1}^m Np_i\log Np_i \right)\qquad\qquad\qquad\qquad \\ \\ \ &=& \log N - \sum_{i=1}^m p_i\log Np_i \qquad\qquad\qquad\qquad\qquad\qquad \\ \\ \ &=& \log N - \log N \sum_{i=1}^m p_i - \sum_{i=1}^m p_i\log p_i \qquad\qquad\qquad \\ \\ \ &=& \left(1 - \sum_{i=1}^m p_i \right)\log N - \sum_{i=1}^m p_i\log p_i \qquad\qquad\qquad \\ \\ \ &=& - \sum_{i=1}^m p_i\log p_i \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad \\ \\ \ &=& H(\mathbf{p}) \qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad \end{matrix}$

All that remains for our protagonist to do is to maximize entropy under the constraints of her testable information. She has found that the maximum entropy distribution is the most probable of all "fair" random distributions, in the limit as the probability levels go from discrete to continuous.

### Compatibility with Bayes Rule

Giffin et al. (2007) state that Bayes' Rule and the Principle of Maximum Entropy (MaxEnt) are completely compatible and can be seen as special cases of the Method of Maximum (relative) Entropy. They state that this method reproduces every aspect of orthodox Bayesian inference methods. In addition this new method opens the door to tackling problems that could not be addressed by either the MaxEnt or orthodox Bayesian methods individually. Moreover, recent contributions (Lazar 2003, and Schennach 2005) show that frequentist relative-entropy-based inference approaches (such as Empirical Likelihood and Exponentially Tilted Empirical Likelihood - see e.g. Owen 2001 and Kitamura 2006) can be combined with prior information to perform Bayesian posterior analysis.

Jaynes stated Bayes' Rule was a way to calculate a probability, while Maximum Entropy was a way to assign a prior probability distribution (Jaynes 1988).

## References

### Footnotes

1. ^
2. ^
3. ^ Jaynes, E. T. (1968). "Prior Probabilities" (PDF or PostScript). IEEE Transactions on Systems Science and Cybernetics 4 (3): 227–241. doi:10.1109/TSSC.1968.300117.
4. ^ Clarke, B. (2006). "Information optimality and Bayesian modelling". Journal of Econometrics 138 (2): 405–429. doi:10.1016/j.jeconom.2006.05.003.
5. ^ Soofi, E.S. (2000). "Principal Information Theoretic Approaches". Journal of the American Statistical Association 95 (452): 1349–1353. doi:10.2307/2669786. JSTOR 2669786. MR1825292.
6. ^ Bousquet, N. (2008). "Eliciting vague but proper maximal entropy priors in Bayesian experiments". Statistical Papers 51 (3): 613–628. doi:10.1007/s00362-008-0149-9.

• Jaynes, E. T. (1963). "Information Theory and Statistical Mechanics". In Ford, K. (ed.). Statistical Physics. New York: Benjamin. p. 181.
• Jaynes, E. T., 1986 (new version online 1996), 'Monkeys, kangaroos and N', in Maximum-Entropy and Bayesian Methods in Applied Statistics, J. H. Justice (ed.), Cambridge University Press, Cambridge, p. 26.
• Bajkova, A. T., 1992, The generalization of maximum entropy method for reconstruction of complex functions. Astronomical and Astrophysical Transactions, V.1, issue 4, p. 313-320.
• Jaynes, E. T., 2003, Probability Theory: The Logic of Science, Cambridge University Press.
• Giffin, A. and Caticha, A., 2007, Updating Probabilities with Data and Moments
• Guiasu, S. and Shenitzer, A., 1985, 'The principle of maximum entropy', The Mathematical Intelligencer, 7(1), 42-48.
• Harremoës P. and Topsøe F., 2001, Maximum Entropy Fundamentals, Entropy, 3(3), 191-226.
• Kapur, J. N.; and Kesevan, H. K., 1992, Entropy optimization principles with applications, Boston: Academic Press. ISBN 0-12-397670-7
• Kitamura, Y., 2006, Empirical Likelihood Methods in Econometrics: Theory and Practice, Cowles Foundation Discussion Papers 1569, Cowles Foundation, Yale University.
• Lazar, N., 2003, "Bayesian Empirical Likelihood", Biometrika, 90, 319-326.
• Owen, A. B., Empirical Likelihood, Chapman and Hall.
• Schennach, S. M., 2005, "Bayesian Exponentially Tilted Empirical Likelihood", Biometrika, 92(1), 31-46.
• Uffink, Jos, 1995, 'Can the Maximum Entropy Principle be explained as a consistency requirement?', Studies in History and Philosophy of Modern Physics 26B, 223-261.
• Jaynes, E. T., 1988, 'The Relation of Bayesian and Maximum Entropy Methods', in Maximum-Entropy and Bayesian Methods in Science and Engineering (Vol. 1), Kluwer Academic Publishers, p. 25-26.

Wikimedia Foundation. 2010.

### Look at other dictionaries:

• Maximum entropy spectral analysis — (MaxEnt spectral analysis) is a method of improving spectral quality based on the principle of maximum entropy. It is simply the application of maximum entropy modeling to any type of spectrum and is used in all fields where data is presented in… …   Wikipedia

• Maximum entropy — may refer to: The principle of maximum entropy The maximum entropy probability distribution Maximum entropy spectral estimation Maximum entropy spectral analysis Maximum entropy thermodynamics The law of maximum entropy production Entropy… …   Wikipedia

• Maximum entropy thermodynamics — In physics, maximum entropy thermodynamics (colloquially, MaxEnt thermodynamics) views equilibrium thermodynamics and statistical mechanics as inference processes. More specifically, MaxEnt applies inference techniques rooted in Shannon… …   Wikipedia

• Maximum entropy probability distribution — In statistics and information theory, a maximum entropy probability distribution is a probability distribution whose entropy is at least as great as that of all other members of a specified class of distributions. According to the principle of… …   Wikipedia

• Principle of maximum work — In the history of science, the principle of maximum work was a postulate concerning the relationship between chemical reactions, heat evolution, and the potential work produced there from. The principle was developed in approximate form in 1875… …   Wikipedia

• Principle of minimum energy — The principle of minimum energy is essentially a restatement of the second law of thermodynamics. It states that for a closed system, with constant external parameters and entropy, the internal energy will decrease and approach a minimum value at …   Wikipedia

• Principle of indifference — The principle of indifference (also called principle of insufficient reason) is a rule for assigning epistemic probabilities.Suppose that there are n gt; 1 mutually exclusive and collectively exhaustive possibilities.The principle of indifference …   Wikipedia

• Entropy maximization — An entropy maximization problem is a convex optimization problem of the form:maximize f 0(x) = sum {i=1}^n x i log x i :subject to Ax leq b, quad mathbf{1}^T x =1where x in mathbb{R}^n {++} is the optimization variable, Ainmathbb{R}^{m imes n}… …   Wikipedia

• Entropy — This article is about entropy in thermodynamics. For entropy in information theory, see Entropy (information theory). For a comparison of entropy in information theory with entropy in thermodynamics, see Entropy in thermodynamics and information… …   Wikipedia

• Entropy in thermodynamics and information theory — There are close parallels between the mathematical expressions for the thermodynamic entropy, usually denoted by S , of a physical system in the statistical thermodynamics established by Ludwig Boltzmann and J. Willard Gibbs in the 1870s; and the …   Wikipedia