Source: https://ethz.ch/content/dam/ethz/special-interest/chab/physical-chemistry/epr-dam/documents/education/statistical-thermodynamics/stat_TD.pdf