A branch of thermodynamics that deals with statistical aspects of the behavior of large ensembles of particles.