Statistical physics is fundamentally about using probability theory and statistical methods to connect microscopic dynamics to macroscopic observables. Since you have a mathematical background, I'll frame this in terms of the mathematical structures involved.
The central object of study is the phase space Γ, which for a classical system of N particles is a 6N-dimensional manifold (3N position coordinates, 3N momentum coordinates). A microstate is a point in this space, and the system evolves according to Hamilton's equations, which define a flow on Γ.
The key insight is that we can't track 10²³ particles individually, so we describe the system probabilistically. We introduce a probability density ρ(q,p,t) on phase space, where q represents all positions and p all momenta. This density evolves according to Liouville's equation:
∂ρ/∂t + {ρ,H} = 0
where {·,·} is the Poisson bracket and H is the Hamiltonian.
For systems in thermal equilibrium, we use ensemble theory. The three main ensembles are:
Microcanonical ensemble: Fixed energy E, particle number N, volume V. All accessible microstates have equal probability. The density of states Ω(E) counts microstates with energy E, and entropy is S = k log Ω(E).
Canonical ensemble: System can exchange energy with a heat bath at temperature T. The probability distribution is the Boltzmann distribution:
ρ(q,p) = (1/Z) exp(-βH(q,p))
where β = 1/(kT) and Z is the partition function:
Z = ∫ exp(-βH(q,p)) dq dp
The partition function is the moment generating function for the energy distribution. All thermodynamic quantities follow from Z: free energy F = -kT log Z, average energy ⟨E⟩ = -∂(log Z)/∂β, etc.
Grand canonical ensemble: System can exchange both energy and particles with a reservoir. The distribution becomes:
ρ = (1/Ξ) exp(-β(H - μN))
where μ is the chemical potential and Ξ is the grand partition function.
In quantum statistical mechanics, microstates are vectors in Hilbert space, and we work with the density operator ρ̂ instead of a phase space density. For the canonical ensemble:
ρ̂ = (1/Z) exp(-βĤ)
where Z = Tr(exp(-βĤ)).
A crucial distinction arises between fermions (antisymmetric wavefunctions) and bosons (symmetric wavefunctions), leading to Fermi-Dirac and Bose-Einstein statistics respectively. The occupation numbers for energy level ε are:
Fermions: n(ε) = 1/(exp(β(ε-μ)) + 1)
Bosons: n(ε) = 1/(exp(β(ε-μ)) - 1)
Critical phenomena showcase the power of statistical physics. Near phase transitions, correlation lengths diverge, and systems exhibit scale invariance. The renormalization group provides a systematic way to study this, treating the partition function under successive coarse-graining transformations.
The mathematical beauty lies in how universal behavior emerges: systems with completely different microscopic details can belong to the same universality class, characterized by critical exponents that depend only on dimensionality and symmetries.
From a mathematical perspective, statistical physics is really about: measure theory on high-dimensional spaces, ergodic theory (connecting time averages to ensemble averages), large deviation theory (understanding fluctuations), and the interplay between discrete (quantum) and continuous (classical) probability distributions. The field provides rigorous foundations for thermodynamics while revealing deep connections to information theory, where entropy appears as both a thermodynamic quantity and a measure of information.