Course-wide Conventions & Notation
Overview and Learning Objectives¶
Statistical mechanics bridges microscopic states and macroscopic thermodynamics by treating measurable quantities as ensemble averages. This section introduces expected values, defines the common ensembles (microcanonical, canonical, and grand canonical), and states the fundamental postulate for an isolated system.
Learning objectives:
Distinguish an arithmetic average (sample mean) from an ensemble (expected) average .
Define microstates, macrostates, and an ensemble, and identify the constraints defining the microcanonical, canonical, and grand canonical ensembles.
State the fundamental postulate of statistical mechanics for the microcanonical ensemble.
Compute microcanonical probabilities and simple expected values from a discrete distribution.
Core Ideas and Derivations¶
Macroscopic Properties as Expected Values of Microscopic Properties¶
A core principle of statistical mechanics is that macroscopic thermodynamic properties are statistical averages (expected values) of microscopic properties.
Arithmetic Average vs. Expected Value¶
In basic statistics, the arithmetic average (sample mean) of a dataset is:
In statistical mechanics, we typically work with an expected value, which weights each outcome by its probability. For a discrete random variable that takes values with probabilities , the expected value is
where is the probability of the -th outcome (microstate), and the sum runs over the microstates included in the ensemble.
Table 1:Statistical Variables and Their Definitions
Symbol | Meaning |
|---|---|
Number of possible microstates (outcomes) | |
Index of a microstate | |
Value of a microscopic property in microstate | |
Expected (ensemble) average of | |
Probability of finding the system in microstate |
In thermodynamics, typical choices of include the internal energy, enthalpy, or other measurable properties. We will compute such quantities by specifying the probabilities appropriate to the ensemble of interest.
Ensembles of Microstates¶
- Ensemble
- The set of microstates consistent with specified macroscopic constraints.
- Microcanonical ensemble
- Microstates are sampled at fixed .
- Canonical ensemble
- Microstates are sampled at fixed .
- Grand canonical ensemble
- Microstates are sampled at fixed .
Probability of a Microstate in the Microcanonical Ensemble¶
For an isolated system—one that exchanges neither energy nor matter with its surroundings—the appropriate statistical description is the microcanonical ensemble.
Source
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from myst_nb import glue
# Helper function to plot a system
def plot_system(ax, title, annotations, boundary_color='b'):
box = mpatches.FancyBboxPatch((0, 0), 1, 1, boxstyle='roundtooth', ec=boundary_color, fc='w')
ax.add_patch(box)
ax.set_title(title, fontsize=14)
ax.text(0.5, 0.5, 'System', ha='center', va='center', fontsize=12)
ax.text(0.5, -0.65, 'Surroundings', ha='center', va='center', fontsize=12)
ax.text(0.5, 1.3, 'Boundary', ha='center', va='bottom', fontsize=12, color=boundary_color)
for annotation in annotations:
if "arrowprops" in annotation: # Arrow annotations
ax.annotate('', **annotation)
else: # Text annotations
ax.text(**annotation)
ax.set_xlim(-1, 2)
ax.set_ylim(-1, 2)
ax.set_aspect('equal')
ax.axis('off')
fig, ax = plt.subplots(1, 1, figsize=(4, 4))
plot_system(ax, "", [])
plt.show()
plt.close(fig)
An isolated system exchanges neither energy nor matter with its surroundings.
Fundamental Postulate of Statistical Mechanics¶
Therefore, the probability of finding the system in the -th microstate is
where is the total number of accessible microstates compatible with .
Worked Example¶
Expected value vs. arithmetic mean (die rolls)¶
A fair die is rolled times. Let if the -th outcome is a six and otherwise.
One roll
Linearity of expectation
For independent, identical trials, the expected total number of sixes is the sum of the individual expectations:
Result. The expected number of sixes in 300 rolls is 50.
Concept Checks¶
In what sense is “temperature” absent from the microcanonical ensemble description?
Why is the expected value more informative than the arithmetic mean of a single dataset when predicting thermodynamic properties?
What physical meaning does “accessible microstate” carry in the fundamental postulate?
How would you modify the probability assignment if only a subset of the nominal microstates were accessible?
Key Takeaways¶
Macroscopic properties are computed as expected values over microstates.
An ensemble is a probability model for microstates consistent with specified macroscopic constraints.
In the microcanonical ensemble, each accessible microstate has equal probability: .
Choosing the right ensemble is choosing the right constraints: , , or .