Statistical mechanics is a branch of mathematical physics that studies, using probability theory, the average behaviour of a mechanical system where the state of the system is uncertain. A common use of statistical mechanics is in explaining the thermodynamic behaviour of large systems.[1]