# Gibbs algorithm

Josiah Willard Gibbs

In statistical mechanics, the Gibbs algorithm, introduced by J. Willard Gibbs in 1902, is a criterion for choosing a probability distribution for the statistical ensemble of microstates of a thermodynamic system by minimizing the average log probability

${\displaystyle \langle \ln p_{i}\rangle =\sum _{i}p_{i}\ln p_{i}\,}$

subject to the probability distribution pi satisfying a set of constraints (usually expectation values) corresponding to the known macroscopic quantities.[1] in 1948, Claude Shannon interpreted the negative of this quantity, which he called information entropy, as a measure of the uncertainty in a probability distribution.[1] In 1957, E.T. Jaynes realized that this quantity could be interpreted as missing information about anything, and generalized the Gibbs algorithm to non-equilibrium systems with the principle of maximum entropy and maximum entropy thermodynamics.[1]

Physicists call the result of applying the Gibbs algorithm the Gibbs distribution for the given constraints, most notably Gibbs's grand canonical ensemble for open systems when the average energy and the average number of particles are given. (See also partition function).

This general result of the Gibbs algorithm is then a maximum entropy probability distribution. Statisticians identify such distributions as belonging to exponential families.

## References

1. ^ a b c Dewar, Roderick C. (2005). "4. Maximum Entropy Production and Non-equilibrium Statistical Mechanics". In Kleidon, A. (ed.). Non-equilibrium thermodynamics and the production of entropy : life, earth, and beyond. Berlin: Springer. pp. 41–55. doi:10.1007/11672906_4. ISBN 9783540224952.