Source: https://www-liphy.univ-grenoble-alpes.fr/pagesperso/bahram/Phys_Stat/phystat.pdf