A system in contact with its surroundings at temperature 𝑇 does not sit in a single state. It visits all of them, favouring those of low energy according to
𝑝𝑖=𝑒−𝐸𝑖/𝑘𝐵𝑇𝑍,𝑍=∑𝑗𝑒−𝐸𝑗/𝑘𝐵𝑇,
where 𝑍, 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/𝑘𝐵𝑇 then appears as the price of energy.
At room temperature 𝑘𝐵𝑇 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.