In statistics and information theory, a maximum entropy probability distribution has entropy that is at least as great as that of all other members of a specified class of probability distributions. According to the principle of maximum entropy, if nothing is known about a distribution except that it belongs to a certain class (usually defined in terms of specified properties or measures), then the distribution with the largest entropy should be chosen as the least-informative default. The motivation is twofold: first, maximizing entropy minimizes the amount of prior information built into the distribution; second, many physical systems tend to move towards maximal entropy configurations over time.
Definition of entropy and differential entropy
If X is a continuous random variable with probability density p(x), then the differential entropy of X is defined as H(X)=−∫−∞∞p(x)logp(x)dx . If X is a discrete random variable with distribution given by Pr(X=xk)=pk for k=1,2,… then the entropy of X is defined as H(X)=−∑k≥1pklogpk. The seemingly divergent term p(x)logp(x) is replaced by zero, whenever p(x)=0. This is a special case of more general forms described in the articles Entropy (information theory), Principle of maximum entropy, and differential entropy. In connection with maximum entropy distributions, this is the only one needed, because maximizing H(X) will also maximize the more general forms. The base of the logarithm is not important, as long as the same one is used consistently: Change of base merely results in a rescaling of the entropy. Information theorists may prefer to use base 2 in order to express the entropy in bits; mathematicians and physicists often prefer the natural logarithm, resulting in a unit of "nat"s for the entropy. However, the chosen measure dx is crucial, even though the typical use of the Lebesgue measure is often defended as a "natural" choice: Which measure is chosen determines the entropy and the consequent maximum entropy distribution.
Distributions with measured constants Many statistical distributions of applicable interest are those for which the moments or other measurable quantities are constrained to be constants. The following theorem by Ludwig Boltzmann gives the form of the probability density under these constraints.
Continuous case Suppose S is a continuous, closed subset of the real numbers ℝ and we choose to specify n measurable functions f1,…,fn and n numbers a1,…,an. We consider the class C of all real-valued random variables which are supported on S (i.e. whose density function is zero outside of S) and which satisfy the n moment conditions: E[fj(X)]≥ajfor j=1,…,n If there is a member in C whose density function is positive everywhere in S, and if there exists a maximal entropy distribution for C, then its probability density p(x) has the following form: p(x)=exp(∑j=0nλjfj(x)) for all x∈S where we assume that f0(x)=1. The constant λ0 and the n Lagrange multipliers 𝝀=(λ1,…,λn) solve the constrained optimization problem with a0=1 (which ensures that p integrates to unity): maxλ0;𝝀{∑j=0nλjaj−∫exp(∑j=0nλjfj(x))dx} subject to 𝝀≥𝟎 Using the Karush–Kuhn–Tucker conditions, it can be shown that the optimization problem has a unique solution because the objective function in the optimization is concave in 𝝀. Note that when the moment constraints are equalities (instead of inequalities), that is, E[fj(X)]=aj for j=1,…,n, then the constraint condition 𝝀≥𝟎 can be dropped, which makes optimization over the Lagrange multipliers unconstrained.
Discrete case Suppose S={x1,x2,…} is a (finite or infinite) discrete subset of the reals, and that we choose to specify n functions f1,…,fn and n numbers a1,…,an. We consider the class C of all discrete random variables X which are supported on S and which satisfy the n moment conditions E[fj(X)]≥aj for j=1,…,n If there exists a member of class C which assigns positive probability to all members of S and if there exists a maximum entropy distribution for C, then this distribution has the following shape: Pr(X=xk)=exp(∑j=0nλjfj(xk)) for k=1,2,… where we assume that f0=1 and the constants λ0,𝝀≡(λ1,…,λn) solve the constrained optimization problem with a0=1: maxλ0;𝝀{∑j=0nλjaj−∑k≥1exp(∑j=0nλjfj(xk))} for which 𝝀≥𝟎 Again as above, if the moment conditions are equalities (instead of inequalities), then the constraint condition 𝝀≥𝟎 is not present in the optimization.
Proof in the case of equality constraints In the case of equality constraints, this theorem is proved with the calculus of variations and Lagrange multipliers. The constraints can be written as ∫−∞∞fj(x)p(x)dx=aj We consider the functional J(p)=∫−∞∞p(x)lnp(x)dx−η0(∫−∞∞p(x)dx−1)−∑j=1nλj(∫−∞∞fj(x)p(x)dx−aj) where η0 and λj,j≥1 are the Lagrange multipliers. The zeroth constraint ensures the second axiom of probability. The other constraints are that the measurements of the function are given constants up to order n. The entropy attains an extremum when the functional derivative is equal to zero: δJ(p)δp=lnp(x)+1−η0−∑j=1nλjfj(x)=0 Therefore, the extremal entropy probability distribution in this case must be of the form (λ0:=η0−1), p(x)=e−1+η0e∑j=1nλjfj(x)=exp(∑j=0nλjfj(x)), remembering that f0(x)=1. It can be verified that this is the maximal solution by checking that the variation around this solution is always negative.
… excerpt ends here. Continue reading the full article.