The principle of maximum entropy states that the probability distribution which best represents the current state of knowledge about a system is the one with largest entropy, in the context of precisely stated prior data (such as a proposition that expresses testable information).
Another way of stating this: Take precisely stated prior data or testable information about a probability distribution function. Consider the set of all trial probability distributions that would encode the prior data. According to this principle, the distribution with maximal information entropy is the best choice.
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 argued that the Gibbsian method of statistical mechanics is sound by also arguing that the entropy of statistical mechanics and the information entropy of information theory are the same concept. Consequently, statistical mechanics should be considered a particular application of a general tool of logical inference and information theory.
In most practical cases, the stated prior data or 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. The equivalence between conserved quantities and corresponding symmetry groups implies a similar equivalence for 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.
The maximum entropy principle makes explicit our freedom in using different forms of prior data. As a special case, a uniform prior probability density (Laplace's principle of indifference, sometimes called the principle of insufficient reason), may be adopted. Thus, the maximum entropy principle is not merely an alternative way to view the usual methods of inference of classical statistics, but represents a significant conceptual generalization of those methods.
However these statements do not imply that thermodynamical systems need not be shown to be ergodic to justify treatment as a statistical ensemble.
In ordinary language, the principle of maximum entropy can be said to express a claim of epistemic modesty, or of maximum ignorance. The selected distribution is the one that makes the least claim to being informed beyond the stated prior data, that is to say the one that admits the most ignorance beyond the stated prior data.
The principle of maximum entropy is useful explicitly only when applied to testable information. Testable information is a statement about a probability distribution whose truth or falsity is well-defined. For example, the statements
the expectation of the variable
x
p2+p3>0.6
(where
p2
p3
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.[3]
Entropy maximization with no testable information respects the universal "constraint" that the sum of the probabilities is one. Under this constraint, the maximum entropy discrete probability distribution is the uniform distribution,
p | ||||
|
{\rmfor all} i\in\{1,...,n\}.
The principle of maximum entropy is commonly applied in two ways to inferential problems:
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.[4] A large amount of literature is now dedicated to the elicitation of maximum entropy priors and links with channel coding.[5] [6] [7] [8]
Maximum entropy is a sufficient updating rule for radical probabilism. Richard Jeffrey's probability kinematics is a special case of maximum entropy inference. However, maximum entropy is not a generalisation of all such sufficient updating rules.[9]
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.
One of the main applications of the maximum entropy principle is in discrete and continuous density estimation.[10] [11] Similar to support vector machine estimators, the maximum entropy principle may require the solution to a quadratic programming problem, and thus provide a sparse mixture model as the optimal density estimator. One important advantage of the method is its ability to incorporate prior information in the density estimation.[12]
See main article: Maximum entropy probability distribution.
We have some testable information I about a quantity x taking values in . We assume this information has the form of m constraints on the expectations of the functions fk; that is, we require our probability distribution to satisfy the moment inequality/equality constraints:
n | |
\sum | |
i=1 |
\Pr(xi)fk(xi)\geqFk k=1,\ldots,m.
where the
Fk
n | |
\sum | |
i=1 |
\Pr(xi)=1.
The probability distribution with maximum information entropy subject to these inequality/equality constraints is of the form:[10]
\Pr(xi)=
1 | |
Z(λ1,\ldots,λm) |
\exp\left[λ1f1(xi)+ … +λmfm(xi)\right],
for some
λ1,\ldots,λm
Z(λ1,\ldots,λm)=
n | |
\sum | |
i=1 |
\exp\left[λ1f1(xi)+ … +λmfm(xi)\right],
and is conventionally called the partition function. (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. In the case of equality constraints their values are determined from the solution of the nonlinear equations
Fk=
\partial | |
\partialλk |
logZ(λ1,\ldots,λm).
In the case of inequality constraints, the Lagrange multipliers are determined from the solution of a convex optimization program with linear constraints.[10] In both cases, there is no closed form solution, and the computation of the Lagrange multipliers usually requires numerical methods.
For continuous distributions, the Shannon entropy cannot be used, as it is only defined for discrete probability spaces. Instead Edwin Jaynes (1963, 1968, 2003) gave the following formula, which is closely related to the relative entropy (see also differential entropy).
Hc=-\intp(x)log
p(x) | |
q(x) |
dx
where q(x), which Jaynes called the "invariant measure", is proportional to the limiting density of discrete points. For now, we shall assume that q 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 p from q (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 assume this information has the form of m constraints on the expectations of the functions fk, i.e. we require our probability density function to satisfy the inequality (or purely equality) moment constraints:
\intp(x)fk(x)dx\geqFk k=1,...c,m.
where the
Fk
\intp(x)dx=1.
The probability density function with maximum Hc subject to these constraints is:[11]
p(x)=
1 | |
Z(λ1,...c,λm) |
q(x)\exp\left[λ1f1(x)+...b+λmfm(x)\right]
with the partition function determined by
Z(λ1,...c,λm)=\intq(x)\exp\left[λ1f1(x)+...b+λmfm(x)\right]dx.
As in the discrete case, in the case where all moment constraints are equalities, the values of the
λk
Fk=
\partial | |
\partialλk |
logZ(λ1,...c,λm).
In the case with inequality moment constraints the Lagrange multipliers are determined from the solution of a convex optimization program.[11]
The invariant measure function q(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)=A ⋅ q(x), 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.
For several examples of maximum entropy distributions, see the article on maximum entropy probability distributions.
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.
Consider a discrete probability distribution among
m
logm
logm
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. Thus the maximum entropy distribution is the only reasonable distribution. The dependence of the solution on the dominating measure represented by
m(x)
The following argument is the result of a suggestion made by Graham Wallis to E. T. Jaynes in 1962. 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
N
1/N
m
N
m
pi=
ni | |
N |
where
pi
i
i
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, the protagonist decides to simply calculate and use the most probable result. The probability of any particular result is the multinomial distribution,
Pr(p)=W ⋅ m-N
where
W=
N! | |
n1!n2!...bnm! |
is sometimes known as the multiplicity of the outcome.
The most probable result is the one which maximizes the multiplicity
W
W
W
\begin{align} | 1 |
N |
logW&=
1 | |
N |
log
N! | |
n1!n2!...bnm! |
\\[6pt] &=
1 | |
N |
log
N! | |
(Np1)!(Np2)!...b(Npm)! |
\\[6pt] &=
1 | |
N |
\left(logN!-
m | |
\sum | |
i=1 |
log((Npi)!)\right). \end{align}
At this point, in order to simplify the expression, the protagonist takes the limit as
N\toinfty
\begin{align} \limN\left(
1 | |
N |
logW\right)&=
1 | |
N |
\left(NlogN-
m | |
\sum | |
i=1 |
Npilog(Npi)\right)\\[6pt] &=logN-
m | |
\sum | |
i=1 |
pilog(Npi)\\[6pt] &=logN-logN
m | |
\sum | |
i=1 |
pi-
m | |
\sum | |
i=1 |
pilogpi\\[6pt] &=\left(1-
m | |
\sum | |
i=1 |
pi\right)logN-
m | |
\sum | |
i=1 |
pilogpi\\[6pt] &=-
m | |
\sum | |
i=1 |
pilogpi\\[6pt] &=H(p). \end{align}
All that remains for the protagonist to do is to maximize entropy under the constraints of his testable information. He 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.
Giffin and Caticha (2007) state that Bayes' theorem and the principle of maximum entropy 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 maximal entropy principle 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' theorem was a way to calculate a probability, while maximum entropy was a way to assign a prior probability distribution.
It is however, possible in concept to solve for a posterior distribution directly from a stated prior distribution using the principle of minimum cross-entropy (or the Principle of Maximum Entropy being a special case of using a uniform distribution as the given prior), independently of any Bayesian considerations by treating the problem formally as a constrained optimisation problem, the Entropy functional being the objective function. For the case of given average values as testable information (averaged over the sought after probability distribution), the sought after distribution is formally the Gibbs (or Boltzmann) distribution the parameters of which must be solved for in order to achieve minimum cross entropy and satisfy the given testable information.
The principle of maximum entropy bears a relation to a key assumption of kinetic theory of gases known as molecular chaos or Stosszahlansatz. This asserts that the distribution function characterizing particles entering a collision can be factorized. Though this statement can be understood as a strictly physical hypothesis, it can also be interpreted as a heuristic hypothesis regarding the most probable configuration of particles before colliding.[13]