Statistical ensembles define the boundaries within which statistical mechanics is applied in physics and chemistry.