Specifically, entropy is a logarithmic measure for the system with a number of states, each with a probability p i of being occupied (usually given by the Boltzmann distribution): S = − − k B ∑ ∑ i p i ln ⁡ ⁡ p i where k B is the Boltzmann constant and the summation is performed over all possible microstates of the system.