This document introduces key concepts in statistical mechanics, including the idea that macroscopic properties are thermal averages of microscopic properties. It discusses common statistical ensembles like the microcanonical ensemble (isolated systems with constant energy) and the canonical ensemble (systems in equilibrium with a heat reservoir). The canonical partition function Z relates microscopic quantum mechanics to macroscopic thermodynamics and can be used to calculate thermodynamic variables. Properties like heat capacity can be derived from fluctuations in energy calculated from the partition function.