Probability and Statistical Ensembles
Statistical ensembles give us a way to connect the microscopic behavior of particles to the macroscopic properties we actually measure, like temperature and pressure. Instead of tracking every single particle (which is impossible for real systems), we consider a huge collection of hypothetical copies of the same system, each in a different possible microstate. By looking at the statistics across this collection, we can predict what the system will do on average.
Concept of Statistical Ensembles
A statistical ensemble is a large collection of identical systems, where each copy sits in one of the system's possible microstates. A microstate is a specific configuration defined by the positions and momenta of all particles in the system.
The central idea is that the ensemble average of any physical quantity (energy, pressure, magnetization, etc.) corresponds to the macroscopic value you'd actually measure in an experiment. So rather than solving equations of motion for particles, you calculate a weighted average over microstates. This is what makes statistical mechanics practical.

Probability in Microstates
The probability of finding a system in a particular microstate depends on two things: the energy of that microstate and the temperature of the system.
The Boltzmann distribution gives the probability of a system occupying a microstate with energy at temperature :
- is the Boltzmann constant ( J/K)
- The denominator is the partition function , which sums over all microstates and ensures the probabilities add up to 1
Two key behaviors follow from this expression:
- Lower energy microstates are more probable than higher energy ones, because the exponential decreases as increases.
- As temperature rises, the distribution flattens out. At high , the ratio becomes small for many states, so the system explores a wider range of microstates more evenly. Think of gas molecules at high temperature spreading across many energy levels, versus at low temperature clustering near the ground state.

Types of Statistical Ensembles
Each ensemble type models a different physical situation, depending on what the system can exchange with its surroundings.
- Microcanonical ensemble (NVE):
- Models an isolated system with fixed particle number , volume , and total energy .
- No energy or particle exchange with the environment.
- All accessible microstates at that energy are equally probable. This is the fundamental postulate of statistical mechanics.
- Example: an insulated gas container with rigid walls.
- Canonical ensemble (NVT):
- Models a system in thermal contact with a heat bath at fixed temperature .
- Particle number and volume are fixed, but the system can exchange energy with the bath.
- Microstate probabilities follow the Boltzmann distribution.
- Example: a sample of gas in a container submerged in a large water bath.
- Grand canonical ensemble (VT):
- Models a system that exchanges both energy and particles with a reservoir at fixed temperature and chemical potential .
- Volume is fixed, but and both fluctuate.
- Example: gas molecules adsorbing onto and desorbing from a surface in contact with a gas reservoir.
Microstate Probability Distributions
Here's a summary of the probability expression for each ensemble, along with its normalization factor:
-
Microcanonical ensemble: where is the total number of microstates with energy . Every accessible microstate gets the same weight.
-
Canonical ensemble: where is the canonical partition function. States with lower energy get higher probability, weighted by temperature.
-
Grand canonical ensemble: where is the grand canonical partition function. Notice the extra term: states with more particles are favored when the chemical potential is high, because the reservoir "wants" to push particles into the system.
The partition function in each case plays the same role: it normalizes the probability distribution so that . But it also encodes all the thermodynamic information about the system. Once you know or , you can derive quantities like average energy, entropy, and free energy directly from it.