Source: https://femto-physique.fr/physique_statistique/pdf/book_phystat.pdf