Statistical mechanics is a branch of physics that combines statistics principles and procedures with the laws of both classical and quantum mechanics, particularly in the field of thermodynamics.
It aims to predict and explain the measurable properties of macroscopic systems based on the properties and behaviour of those systems' microscopic constituents.
Thermal energy, for example, is interpreted by statistical mechanics as the energy of atomic particles in disordered states, and temperature as a quantitative measure of how energy is shared among such particles.