A system in contact with its surroundings at temperature T does not sit in a single state. It visits all of them, favouring those of low energy according to

pi=e−Ei/kBTZ,Z=∑je−Ej/kBT,

where Z, the partition function, makes the probabilities add to one. The distribution can be derived by maximising entropy while holding the average energy fixed; the inverse temperature β=1/kBT then appears as the price of energy.

At room temperature kBT is about 0.026 electronvolts, so a state 0.1 electronvolts higher in energy is roughly fifty times less likely to be occupied.

The same formula runs through machine learning. The softmax function that turns a network's scores into probabilities is a Boltzmann distribution, and the Boltzmann machine, an early neural network developed by Geoffrey Hinton and Terrence Sejnowski in the 1980s, is named after it.