{
  "id": "statistical-ensemble",
  "title": "Statistical Ensemble",
  "lang": "en",
  "source_lang": "en",
  "summary": "A statistical ensemble is a probability-based description of possible microscopic states used to connect microscopic dynamics with macroscopic physical properties.",
  "category": "science",
  "subcategory": "physics",
  "type": "concept",
  "aliases": [
    "Gibbs ensemble",
    "statistical-mechanical ensemble"
  ],
  "generated_at": "2026-11-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/statistical-ensemble/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/statistical-ensemble/",
      "json": "https://aiwiki.page/zh/statistical-ensemble.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A statistical ensemble is a collection of possible microscopic states of a physical system, together with probabilities specifying how those states are represented. Often described as an imaginary collection of many copies of the same system, an ensemble provides a mathematical description of systems whose exact microscopic conditions are unknown, uncontrolled, or unnecessary to specify. It is a central construction of statistical mechanics, linking the motions and interactions of particles to the laws of thermodynamics.\n\nDifferent ensembles correspond to different physical constraints. An isolated system is commonly represented by a microcanonical ensemble; a system exchanging energy with a heat reservoir by a canonical ensemble; and a system exchanging both energy and particles by a grand canonical ensemble. These descriptions yield macroscopic quantities such as temperature, pressure, and chemical potential, while also predicting fluctuations around their mean values.\n\nThe ensemble concept applies to both classical and quantum systems and extends beyond thermal equilibrium. Its foundations involve probability, conservation laws, and the relationship between microscopic dynamics and macroscopic observations. Its practical uses range from calculating the properties of gases and magnetic materials to simulating liquids, studying phase transitions, and describing relaxation in isolated quantum systems."
    },
    {
      "heading": "Microscopic states and probability measures",
      "text": "A microscopic state specifies the information needed to describe a system at the chosen physical level. In classical mechanics, a system of \\(N\\) point particles in three dimensions is represented by positions and momenta,\n\n\\[\\Gamma=(\\mathbf q_1,\\ldots,\\mathbf q_N,\\mathbf p_1,\\ldots,\\mathbf p_N),\\]\n\nwhich form a point in a \\(6N\\)-dimensional phase space. Constraints, such as fixed total momentum or confinement to a surface, can reduce the accessible region. A macroscopic state, by contrast, specifies only a small number of collective properties, such as energy, volume, and particle number. Enormously many microscopic states can realize the same macroscopic conditions.\n\nAn ensemble assigns a probability distribution to these possible states. For a continuous classical system, a density \\(\\rho(\\Gamma)\\) is defined relative to a specified phase-space measure \\(d\\Gamma\\), with\n\n\\[\\rho(\\Gamma)\\geq 0, \\qquad \\int \\rho(\\Gamma)\\,d\\Gamma=1.\\]\n\nFor discrete states indexed by \\(i\\), the corresponding conditions are \\(p_i\\geq0\\) and \\(\\sum_i p_i=1\\). The probability distribution, rather than the imagined collection of copies, is the essential mathematical object. An ensemble need not contain physically existing duplicate systems.\n\nA classical observable is a function \\(A(\\Gamma)\\). Its ensemble average, or expectation value, is\n\n\\[\\langle A\\rangle=\\int A(\\Gamma)\\rho(\\Gamma)\\,d\\Gamma.\\]\n\nThe distribution also determines higher moments and correlations. For example, the variance\n\n\\[\\operatorname{Var}(A)=\\langle A^2\\rangle-\\langle A\\rangle^2\\]\n\nmeasures fluctuations around the mean. Two ensembles can predict nearly identical average pressure while assigning different energy fluctuations. An ensemble therefore contains more information than an equation giving only mean thermodynamic quantities.\n\nThe measure used in classical state counting requires care. A common convention for identical particles is\n\n\\[d\\Gamma_N=\\frac{d^{3N}q\\,d^{3N}p}{N!\\,h^{3N}},\\]\n\nwhere \\(h\\) is the Planck constant. Division by \\(N!\\) avoids counting permutations of identical particles as distinct physical arrangements, while \\(h^{3N}\\) makes the state-counting measure dimensionless. This convention is consistent with the classical limit of quantum statistical mechanics; it does not mean that classical trajectories themselves are quantized.\n\nAn ensemble description depends on which degrees of freedom are retained. A model of a gas may represent atoms individually, whereas a magnetic model may retain only localized spins. The same physical material can therefore support several useful ensembles at different resolutions. The probabilities must always be interpreted together with the model, the accessible state space, and the imposed constraints."
    },
    {
      "heading": "Historical development and dynamical foundations",
      "text": "The ensemble method developed from nineteenth-century attempts to explain heat and thermodynamic behavior through molecular motion. James Clerk Maxwell derived his equilibrium velocity distribution in 1860, while Ludwig Boltzmann developed statistical approaches to equilibrium and irreversibility during the following decades. Their work established that macroscopic regularities could emerge from probabilistic descriptions of enormous numbers of microscopic degrees of freedom, rather than from tracking each particle individually.\n\nJosiah Willard Gibbs gave the ensemble approach its systematic formulation in Elementary Principles in Statistical Mechanics, published in 1902. He organized equilibrium descriptions around probability distributions over microscopic states and distinguished microcanonical, canonical, and grand canonical ensembles. This framework made it possible to derive thermodynamic relations from a relatively small set of statistical constructions. Gibbs’s ensembles were not restricted to dilute gases and could be applied to interacting systems whose microscopic motions were too complicated to solve explicitly.\n\nThe classical dynamical foundation is Hamiltonian mechanics. If \\(H(\\Gamma)\\) is the Hamiltonian, the ensemble density evolves according to Liouville’s theorem and the associated Liouville equation,\n\n\\[\\frac{\\partial\\rho}{\\partial t}+\\{\\rho,H\\}=0,\\]\n\nwhere the braces denote the Poisson bracket. Hamiltonian motion preserves phase-space volume. Consequently, a density depending only on conserved quantities can be stationary: its probability distribution does not change even though individual representative points continue to move.\n\nStationarity alone does not select the physical equilibrium distribution. An isolated system may possess conserved quantities besides energy, and its trajectory may remain confined to only part of an energy surface. The connection between ensemble averages and measurements over time therefore raises the question of ergodicity. For suitable observables, an ergodic dynamics makes the long-time average\n\n\\[\\overline A= \\lim_{\\tau\\to\\infty}\\frac{1}{\\tau}\\int_0^\\tau A(\\Gamma(t))\\,dt\\]\n\nequal to the corresponding invariant-measure average for almost all initial conditions. Ergodicity is a mathematical property of a specified dynamics and measure, not a general consequence of having many particles.\n\nStrict ergodicity is neither universally established nor always required for useful statistical predictions. Macroscopic observables may relax reliably even when microscopic trajectories do not explore every accessible region on experimental timescales. Conversely, glasses, nearly integrable systems, and systems with large barriers can retain strong memory of initial conditions. These cases distinguish three questions that are sometimes conflated: whether a distribution is stationary, whether dynamics samples it, and whether measured observables are well described by its averages. Ensemble theory supplies the statistical descriptions; dynamical analysis determines when and how those descriptions apply."
    },
    {
      "heading": "The microcanonical ensemble",
      "text": "The microcanonical ensemble describes an isolated system with fixed particle number \\(N\\), volume \\(V\\), and energy confined to a specified narrow interval. Its defining equilibrium assumption is equal probability for accessible microscopic states consistent with those constraints. “Accessible” is important: if additional exact conserved quantities restrict the system, they must also be incorporated. Equal weighting is not a claim that all conceivable states, including states with incompatible energies, have the same probability.\n\nFor a classical system, an idealized energy-surface distribution can be written\n\n\\[\\rho_E(\\Gamma)= \\frac{\\delta(E-H(\\Gamma))}{\\omega(E)}, \\qquad \\omega(E)=\\int\\delta(E-H(\\Gamma))\\,d\\Gamma,\\]\n\nwhere \\(\\delta\\) is the Dirac delta distribution. The normalization induces a particular invariant measure on the energy surface; it is not simply uniform with respect to an arbitrary geometric surface coordinate. A finite-shell formulation instead counts states satisfying \\(E\\leq H<E+\\Delta E\\). The shell is usually chosen narrow on macroscopic energy scales but broad enough to contain many microscopic states.\n\nIf \\(W(E,V,N)\\) is the dimensionless number of states in the chosen shell, the Boltzmann entropy is\n\n\\[S_B=k_{\\mathrm B}\\ln W,\\]\n\nwhere \\(k_{\\mathrm B}\\) is the Boltzmann constant. A related volume definition uses\n\n\\[S_G=k_{\\mathrm B}\\ln\\Phi(E), \\qquad \\Phi(E)=\\int_{H(\\Gamma)\\leq E}d\\Gamma.\\]\n\nThese definitions commonly yield the same leading extensive thermodynamics for large ordinary systems, but they can differ for finite systems and systems with bounded energy spectra. The distinction is relevant when discussing negative temperatures and finite-system thermodynamics.\n\nOnce an entropy function is specified, thermodynamic variables follow from its derivatives:\n\n\\[\\frac{1}{T}= \\left(\\frac{\\partial S}{\\partial E}\\right)_{V,N}, \\qquad \\frac{P}{T}= \\left(\\frac{\\partial S}{\\partial V}\\right)_{E,N}, \\qquad -\\frac{\\mu}{T}= \\left(\\frac{\\partial S}{\\partial N}\\right)_{E,V}.\\]\n\nThese equations connect microscopic state counting to experimentally accessible quantities. For a classical monatomic ideal gas, the leading energy dependence is \\(W\\propto E^{3N/2}\\), giving \\(E=\\tfrac32Nk_{\\mathrm B}T\\) in the large-\\(N\\) limit.\n\nThe microcanonical ensemble is especially important when isolation is physically meaningful, as in idealized Hamiltonian simulations or certain trapped atomic systems. It is also the natural framework for studying how a small subsystem acquires an approximately thermal distribution through interaction with the rest of an isolated whole. Because total energy is fixed, its energy variance is zero, although subsystem energies, local densities, and other observables can fluctuate. This distinction separates a constraint on the complete system from the behavior of its parts."
    },
    {
      "heading": "The canonical ensemble and thermal reservoirs",
      "text": "The canonical ensemble describes a system at fixed \\(N\\) and \\(V\\) in thermal contact with a reservoir at temperature \\(T\\). The system exchanges energy with the reservoir, so its energy varies from one realization to another. The reservoir is assumed large enough that these exchanges do not appreciably change its temperature. Weak coupling is usually also assumed, allowing the system and reservoir energies to be treated as approximately additive.\n\nThe canonical probability follows by considering the system and reservoir together as an isolated whole. If the system occupies a state of energy \\(E_i\\), the reservoir has energy \\(E_{\\mathrm{tot}}-E_i\\). The probability of that state is proportional to the reservoir’s number of compatible states. Expanding its entropy gives\n\n\\[S_R(E_{\\mathrm{tot}}-E_i) \\simeq S_R(E_{\\mathrm{tot}})-\\frac{E_i}{T},\\]\n\nand therefore\n\n\\[p_i=\\frac{e^{-\\beta E_i}}{Z}, \\qquad \\beta=\\frac{1}{k_{\\mathrm B}T}, \\qquad Z=\\sum_i e^{-\\beta E_i}.\\]\n\nThis is the Boltzmann distribution, and \\(Z\\) is the canonical partition function. For classical systems, the sum becomes a phase-space integral.\n\nThe partition function generates thermodynamic properties:\n\n\\[F=-k_{\\mathrm B}T\\ln Z, \\qquad U=-\\frac{\\partial\\ln Z}{\\partial\\beta}, \\qquad P=k_{\\mathrm B}T \\left(\\frac{\\partial\\ln Z}{\\partial V}\\right)_{T,N}.\\]\n\nHere \\(F\\) is the Helmholtz free energy and \\(U=\\langle H\\rangle\\) is the internal energy. Entropy follows from \\(S=-(\\partial F/\\partial T)_{V,N}\\). These derivative relations assume the usual form of a Hamiltonian without additional explicit temperature dependence; effective temperature-dependent models require extra care.\n\nFor a classical monatomic ideal gas,\n\n\\[Z_N=\\frac{1}{N!}\\left(\\frac{V}{\\lambda_T^3}\\right)^N, \\qquad \\lambda_T=\\frac{h}{\\sqrt{2\\pi m k_{\\mathrm B}T}}.\\]\n\nThe thermal wavelength \\(\\lambda_T\\) expresses the state-counting scale inherited from quantum mechanics. This partition function yields \\(PV=Nk_{\\mathrm B}T\\) and \\(U=\\tfrac32Nk_{\\mathrm B}T\\). The classical expression is appropriate in the dilute, nondegenerate regime; quantum statistics becomes essential when wave-packet overlap is significant.\n\nCanonical probabilities can also be obtained by maximizing statistical entropy,\n\n\\[S=-k_{\\mathrm B}\\sum_i p_i\\ln p_i,\\]\n\nsubject to normalization and a fixed mean energy. This maximum-entropy principle expresses the ensemble as the least restrictive distribution compatible with those constraints. It does not by itself prove that a particular physical dynamics reaches that distribution. For strong system–reservoir coupling, the subsystem’s equilibrium state can also differ from the simple canonical distribution built from its isolated Hamiltonian, because interaction energy is no longer negligible."
    },
    {
      "heading": "The grand canonical ensemble and particle exchange",
      "text": "The grand canonical ensemble describes a system able to exchange particles as well as energy with a reservoir. Its controlled variables are temperature \\(T\\), volume \\(V\\), and chemical potential \\(\\mu\\). Particle number is now a fluctuating quantity rather than a fixed parameter. This description is useful for adsorption, gases passing through a permeable boundary, electrons exchanged with a contact, and small observation regions embedded in a larger fluid.\n\nA state with particle number \\(N\\) and energy \\(E_{i,N}\\) has probability\n\n\\[p_{i,N}= \\frac{\\exp[-\\beta(E_{i,N}-\\mu N)]}{\\Xi},\\]\n\nwhere\n\n\\[\\Xi(T,V,\\mu)= \\sum_{N=0}^{\\infty}e^{\\beta\\mu N}Z_N(T,V)\\]\n\nis the grand partition function. The factor \\(z=e^{\\beta\\mu}\\) is called the fugacity in a common dimensionless convention. For several particle species, \\(\\mu N\\) is replaced by \\(\\sum_a\\mu_aN_a\\), with a chemical potential associated with each independently exchanged or conserved particle quantity.\n\nThe natural potential is the grand potential,\n\n\\[\\Omega=-k_{\\mathrm B}T\\ln\\Xi =U-TS-\\mu\\langle N\\rangle.\\]\n\nIt gives\n\n\\[\\langle N\\rangle= k_{\\mathrm B}T \\left(\\frac{\\partial\\ln\\Xi}{\\partial\\mu}\\right)_{T,V}, \\qquad S=-\\left(\\frac{\\partial\\Omega}{\\partial T}\\right)_{V,\\mu}.\\]\n\nFor an extensive homogeneous bulk system with negligible surface contributions, \\(\\Omega=-PV\\). Finite containers, interfaces, and externally confined systems may introduce additional contributions, so this last identity is not unrestricted.\n\nFor a classical ideal gas,\n\n\\[\\Xi=\\exp\\left(\\frac{zV}{\\lambda_T^3}\\right).\\]\n\nThe particle-number distribution is Poissonian:\n\n\\[\\Pr(N)= e^{-\\overline N}\\frac{\\overline N^N}{N!}, \\qquad \\overline N=\\frac{zV}{\\lambda_T^3}.\\]\n\nConsequently, \\(\\operatorname{Var}(N)=\\overline N\\), and the relative fluctuation scales as \\(1/\\sqrt{\\overline N}\\). Interactions and quantum statistics alter this relation. Attractive correlations can enhance number fluctuations, whereas exclusion effects or repulsive interactions can suppress them.\n\nThe grand canonical ensemble is especially effective for quantum gases because independent occupation numbers often make its partition function factorize over single-particle modes. For equilibrium photons and phonons, particle number is not independently conserved and the corresponding chemical potential is zero. Conserved atoms generally require a nonzero chemical potential determined by their density and temperature.\n\nParticle exchange should not be confused with chemical transformation. A reacting mixture may exchange particles with an environment, but even in a closed reacting system the equilibrium chemical potentials satisfy relations fixed by reaction stoichiometry. The grand canonical framework accommodates such constraints by identifying the independently conserved combinations rather than assigning an arbitrary independent chemical potential to every species."
    },
    {
      "heading": "Mechanical constraints and other equilibrium ensembles",
      "text": "The familiar three ensembles are not an exhaustive classification. Different experimental controls lead to different probability measures, especially when a system can change its volume, shape, magnetization, or other extensive quantities. An ensemble is therefore selected by the physical constraints and reservoir couplings, not merely by a preference for one mathematical expression. The associated thermodynamic potential changes when a fixed extensive variable is replaced by its conjugate intensive variable.\n\nThe isothermal–isobaric ensemble, often denoted \\(NPT\\), fixes particle number, external pressure, and temperature while permitting volume fluctuations. For microstate energy \\(E\\) and volume \\(V\\), its statistical weight contains\n\n\\[e^{-\\beta(E+PV)}.\\]\n\nA dimensionless normalization can be written\n\n\\[\\Delta(N,P,T)= \\int_0^\\infty\\frac{dV}{V_0}\\, e^{-\\beta PV}Z(N,V,T),\\]\n\nwhere \\(V_0\\) is a fixed reference volume. Such a reference is needed because a logarithm must act on a dimensionless quantity. The connection between \\(-k_{\\mathrm B}T\\ln\\Delta\\) and Gibbs free energy includes finite-system normalization conventions, while ordinary bulk thermodynamics follows in the appropriate large-system limit.\n\nThe fluctuating combination \\(E+PV\\) is associated with enthalpy. This makes the \\(NPT\\) ensemble natural for many laboratory situations and molecular simulations, where the environment controls atmospheric or applied pressure rather than rigidly fixing the sample volume. Simulated volume changes may be isotropic or may include changes in cell shape. These choices matter for solids, anisotropic stress, and structural transformations, because a crystal’s response cannot always be represented by a single scalar volume.\n\nAnother useful construction is the semigrand canonical ensemble. Here the total number of particles is fixed while species identities or composition fluctuate under imposed chemical-potential differences. It is widely used for mixtures and alloys. If a particle changes from species \\(A\\) to species \\(B\\), the statistical weight depends on the energy change and on \\(\\mu_B-\\mu_A\\). The total population remains fixed even though the individual species populations do not.\n\nMore general distributions can be constructed by coupling conserved quantities \\(Q_a\\) to conjugate parameters:\n\n\\[p_i\\propto \\exp\\left[-\\sum_a\\lambda_a Q_{a,i}\\right].\\]\n\nExamples include constraints involving momentum or angular momentum, with suitable physical conditions for a normalizable equilibrium state. Thermodynamics organizes these alternatives through Legendre transformations of the relevant state functions.\n\nNot every proposed collection of independently controlled variables defines a stable, normalizable ensemble. In particular, fixing all intensive variables of a one-component bulk system does not generally determine a finite amount of material: the system may expand or lose particles without a restoring constraint. The existence and convergence of the statistical normalization must therefore be checked alongside the formal choice of variables."
    },
    {
      "heading": "Quantum ensembles and density operators",
      "text": "In quantum mechanics, an ensemble is represented by a density operator \\(\\hat\\rho\\), rather than a probability density over simultaneous particle positions and momenta. The operator is positive and normalized:\n\n\\[\\hat\\rho\\geq0, \\qquad \\operatorname{Tr}\\hat\\rho=1.\\]\n\nFor an observable represented by \\(\\hat A\\),\n\n\\[\\langle A\\rangle=\\operatorname{Tr}(\\hat\\rho\\hat A).\\]\n\nA pure state has \\(\\hat\\rho=|\\psi\\rangle\\langle\\psi|\\), while a mixed state has a density operator that is not a rank-one projector. Different statistical mixtures of pure states can produce the same density operator and are indistinguishable by measurements on that system alone.\n\nQuantum equilibrium ensembles retain the classical thermodynamic structure while replacing phase-space integrals by traces. The canonical state is\n\n\\[\\hat\\rho_\\beta= \\frac{e^{-\\beta\\hat H}}{\\operatorname{Tr}e^{-\\beta\\hat H}},\\]\n\nwhere \\(\\hat H\\) is the Hamiltonian operator. A microcanonical state is proportional to the projector onto a specified energy window. When particle number is conserved, the grand canonical state is\n\n\\[\\hat\\rho= \\frac{e^{-\\beta(\\hat H-\\mu\\hat N)}}{\\Xi}.\\]\n\nFor ordinary particle-conserving equilibrium, \\([\\hat H,\\hat N]=0\\), so energy and particle-number sectors can be treated consistently.\n\nQuantum indistinguishability changes the allowed many-particle states. Bosons occupy symmetric states, while fermions occupy antisymmetric states and obey the Pauli exclusion principle. For noninteracting particles with single-particle energies \\(\\epsilon_r\\), grand canonical averaging gives\n\n\\[\\overline n_r= \\frac{1}{e^{\\beta(\\epsilon_r-\\mu)}-1}\\]\n\nfor Bose–Einstein statistics, and\n\n\\[\\overline n_r= \\frac{1}{e^{\\beta(\\epsilon_r-\\mu)}+1}\\]\n\nfor Fermi–Dirac statistics. These are occupation statistics within an ensemble, not alternative definitions of the ensemble itself. At sufficiently low occupation, both approach the classical Maxwell–Boltzmann result.\n\nThe quantum statistical entropy is\n\n\\[S=-k_{\\mathrm B}\\operatorname{Tr}(\\hat\\rho\\ln\\hat\\rho).\\]\n\nIt vanishes for a pure state, but a subsystem of a pure composite state can have nonzero entropy. If systems \\(A\\) and \\(B\\) are entangled, the reduced state\n\n\\[\\hat\\rho_A=\\operatorname{Tr}_B\\hat\\rho_{AB}\\]\n\ncan be mixed even when the full state is pure. This links ensemble descriptions with quantum entanglement and distinguishes uncertainty about a subsystem from uncertainty about the total system.\n\nA reduced state is not automatically thermal. Whether it approximates a canonical density operator depends on the total state, interactions, subsystem size, and dynamical properties. Likewise, coherences between energy eigenstates can matter outside equilibrium. The density-operator formalism accommodates all these cases, whereas the simple assignment of probabilities to energy levels describes only a more restricted class of quantum states."
    },
    {
      "heading": "Fluctuations, response, and ensemble equivalence",
      "text": "Fluctuations are quantitative predictions of an ensemble, not imperfections added to an otherwise exact thermodynamic description. In the canonical ensemble, differentiation of the partition function gives\n\n\\[\\operatorname{Var}(E) =\\frac{\\partial^2\\ln Z}{\\partial\\beta^2} =k_{\\mathrm B}T^2C_V,\\]\n\nwhere \\(C_V=(\\partial U/\\partial T)_{V,N}\\) is the heat capacity at fixed volume. Thus a response to changing temperature is determined by equilibrium energy fluctuations. For an ordinary extensive system away from a critical point, both \\(U\\) and \\(C_V\\) scale with \\(N\\), so relative energy fluctuations usually decrease as \\(N^{-1/2}\\).\n\nRelated identities connect other responses to fluctuations:\n\n\\[\\operatorname{Var}(N) =k_{\\mathrm B}T \\left(\\frac{\\partial\\langle N\\rangle}{\\partial\\mu}\\right)_{T,V},\\]\n\nand, in the isothermal–isobaric ensemble,\n\n\\[\\operatorname{Var}(V) =k_{\\mathrm B}T\\,\\kappa_T\\langle V\\rangle,\\]\n\nwhere \\(\\kappa_T=-(1/\\langle V\\rangle)(\\partial\\langle V\\rangle/\\partial P)_{T,N}\\) is the isothermal compressibility. Cross derivatives similarly yield covariances between observables. These identities explain how microscopic fluctuations encode macroscopic susceptibility and why fluctuations can become large near a critical point.\n\nEnsemble equivalence concerns the agreement of different statistical descriptions in an appropriate thermodynamic limit, typically \\(N,V\\to\\infty\\) at fixed density. For stable short-range interactions and suitable regularity conditions, canonical energy distributions concentrate strongly around the thermodynamic mean. Many local observables then have the same limiting values as in the corresponding microcanonical ensemble. The different boundary conditions cease to affect ordinary bulk averages.\n\nEquivalence does not mean that the complete probability distributions become identical. Total energy is fixed in a microcanonical ensemble and fluctuates in a canonical ensemble. Total particle number is fixed canonically but fluctuates grand canonically. These distinctions can remain essential when fluctuations themselves are the observable, when only a small region is measured, or when finite-size corrections are important. Near a phase transition, long-range correlations and competing macroscopic states can also make convergence slow or change its form.\n\nLong-range interacting systems provide stronger failures of equivalence. If energy is nonadditive, as can occur in self-gravitating systems, the microcanonical entropy may contain a nonconcave region. Writing \\(S'(E)=1/T\\) gives\n\n\\[C=-\\frac{[S'(E)]^2}{S''(E)}.\\]\n\nA region with \\(S''(E)>0\\) therefore has negative microcanonical heat capacity. By contrast, the ordinary canonical fluctuation identity enforces nonnegative \\(C_V\\). A state can consequently be admissible microcanonically but absent as a stable canonical equilibrium. Finite clusters and long-range models make such distinctions physically relevant rather than merely formal."
    },
    {
      "heading": "Nonequilibrium ensembles and thermalization",
      "text": "An ensemble need not be in equilibrium. A time-dependent distribution \\(\\rho(\\Gamma,t)\\) or density operator \\(\\hat\\rho(t)\\) describes a population of systems prepared under common conditions and then allowed to evolve. Nonequilibrium examples include a gas expanding after a partition is removed, spins responding to a sudden field change, and a quantum system after an abrupt change of Hamiltonian. The initial distribution is part of the physical specification; it cannot generally be replaced by an equilibrium ensemble without analyzing the subsequent dynamics.\n\nFor an isolated classical Hamiltonian system, Liouville evolution preserves the fine-grained Gibbs entropy under appropriate regularity conditions. Similarly, isolated quantum evolution obeys\n\n\\[i\\hbar\\frac{d\\hat\\rho}{dt}=[\\hat H,\\hat\\rho],\\]\n\nwhich preserves the eigenvalues of \\(\\hat\\rho\\) and hence its von Neumann entropy. These conservation statements do not prevent observable relaxation. A distribution can develop structures on increasingly fine scales, while averages of experimentally accessible quantities approach stable values. Reduced subsystem entropies may also increase as correlations with the remainder grow.\n\nA major question is why an isolated quantum system can appear thermal despite unitary evolution. The eigenstate thermalization hypothesis proposes that, in suitable nonintegrable many-body systems, individual energy eigenstates already reproduce thermal expectation values for a broad class of local observables. If an initial state has a sufficiently narrow energy distribution, dephasing and the structure of eigenstate matrix elements can then explain agreement with microcanonical predictions. The hypothesis is not a theorem for arbitrary Hamiltonians and does not apply uniformly to every observable.\n\nIntegrable systems possess additional conserved quantities that can prevent relaxation to an ordinary canonical ensemble. A generalized Gibbs ensemble retains relevant conserved charges:\n\n\\[\\hat\\rho_{\\mathrm{GGE}} =\\frac{1}{\\mathcal Z} \\exp\\left(-\\sum_a\\lambda_a\\hat Q_a\\right).\\]\n\nThe multipliers are chosen to reproduce conserved expectation values fixed by preparation. Which charges must be included is a substantive model-dependent question; in some systems, local charges alone are insufficient and quasilocal charges are required.\n\nOpen nonequilibrium systems can reach stationary distributions while sustaining currents. A conductor between reservoirs at different temperatures, for example, can maintain a steady energy flow. Such a state is stationary but is not in thermodynamic equilibrium, because the reservoirs continue to drive transport and entropy production. Its distribution generally cannot be specified by a single temperature and chemical potential.\n\nThese examples distinguish equilibrium ensembles, time-evolving ensembles, and nonequilibrium steady-state ensembles. Identical mean energy does not make their statistical content equivalent: correlations, currents, coherences, and higher moments can remain different. Their analysis requires not only probability measures but also equations of motion, preparation protocols, and information about exchanges with the environment."
    },
    {
      "heading": "Computational sampling and physical applications",
      "text": "Ensemble theory supplies the target distributions for computational statistical mechanics. Since the number of microscopic states grows extremely rapidly with system size, direct evaluation of a partition sum is usually impossible for interacting many-particle systems. Simulations instead sample representative states and estimate observables from averages. The central requirement is that the generated sample has the intended statistical weights, with sufficient exploration of the relevant parts of state space.\n\nMonte Carlo methods construct random sequences of configurations. The Metropolis method, introduced in 1953, accepts a proposed symmetric move with energy change \\(\\Delta E\\) with probability\n\n\\[a=\\min\\{1,e^{-\\beta\\Delta E}\\}\\]\n\nwhen sampling a canonical distribution. More generally, for target weight \\(\\pi(x)\\) and proposal probability \\(q(x\\to y)\\), the Metropolis–Hastings acceptance probability is\n\n\\[a(x\\to y)= \\min\\left\\{1, \\frac{\\pi(y)q(y\\to x)}{\\pi(x)q(x\\to y)} \\right\\}.\\]\n\nThis construction satisfies detailed balance, a sufficient condition for stationarity. Stationarity alone does not guarantee efficient sampling: the transition process must also connect the relevant states and avoid pathological cycling.\n\nMolecular dynamics follows trajectories generated by equations of motion. Ideal Hamiltonian dynamics conserves energy and naturally supports microcanonical sampling, although a finite numerical time step introduces integration errors. Thermostats modify or supplement the dynamics to target canonical statistics, while barostats permit volume or cell fluctuations for pressure-controlled sampling. Merely holding the average kinetic temperature close to a desired value does not establish that a method samples the canonical ensemble correctly; its invariant distribution must also be appropriate.\n\nStatistical efficiency depends on correlations between successive samples. For \\(M\\) observations of an observable \\(A\\), a common large-sample estimate is\n\n\\[\\operatorname{Var}(\\overline A) \\simeq \\frac{2\\tau_{\\mathrm{int}}}{M}\\operatorname{Var}(A),\\]\n\nwhere \\(\\tau_{\\mathrm{int}}\\) is the integrated autocorrelation time measured in sampling intervals under the convention \\(\\tau_{\\mathrm{int}}=\\tfrac12+\\sum_{t\\geq1}\\rho_A(t)\\). Near critical points or across high free-energy barriers, this time can become very large. Long trajectories may then contain far fewer effectively independent observations than their raw length suggests.\n\nApplications require matching both the model and the ensemble to the physical question. Canonical or pressure-controlled simulations are common in studies of liquids, membranes, and protein folding. Grand canonical sampling is useful for adsorption in porous materials because molecules enter and leave the simulated region. Spin ensembles in the Ising model reveal magnetic ordering and critical behavior. Free-energy methods compare the statistical weights of competing phases or molecular conformations rather than relying only on their average energies.\n\nSimulation trajectories also require interpretive care. A Monte Carlo sequence designed to sample equilibrium configurations generally has no direct physical time scale. Thermostatted molecular dynamics can reproduce equilibrium averages while altering dynamical correlations. Reliable ensemble calculations therefore separate three tasks: obtaining the correct equilibrium measure, estimating statistical uncertainty, and establishing whether the sampling dynamics represents the actual time-dependent process."
    }
  ],
  "links": [
    "statistical-mechanics",
    "thermodynamics",
    "temperature",
    "pressure",
    "chemical-potential",
    "classical-mechanics",
    "phase-space",
    "probability-distribution",
    "expected-value",
    "variance",
    "planck-constant",
    "james-clerk-maxwell",
    "hamiltonian-mechanics",
    "liouville-theorem",
    "ergodicity",
    "microcanonical-ensemble",
    "boltzmann-constant",
    "ideal-gas",
    "canonical-ensemble",
    "energy",
    "boltzmann-distribution",
    "partition-function",
    "helmholtz-free-energy",
    "internal-energy",
    "entropy",
    "maximum-entropy-principle",
    "grand-canonical-ensemble",
    "photon",
    "phonon",
    "gibbs-free-energy",
    "enthalpy",
    "quantum-mechanics",
    "density-matrix",
    "hamiltonian-operator",
    "pauli-exclusion-principle",
    "bose-einstein-statistics",
    "fermi-dirac-statistics",
    "quantum-entanglement",
    "heat-capacity",
    "critical-point",
    "thermodynamic-limit",
    "phase-transition",
    "thermodynamic-equilibrium",
    "monte-carlo-method",
    "detailed-balance",
    "molecular-dynamics",
    "protein-folding",
    "adsorption",
    "ising-model"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}