A million saved configurations need not contain a million independent pieces of information. If they all lie in the same slowly evolving domain, their mean may look stable while missing another important region of the ensemble. The sampling construction tells us which distribution is invariant. It does not tell us the precision of a finite estimate.
We will separate three questions: whether a long average converges, how its fluctuations scale, and whether the measured observable has the physical interpretation we intend.
5.1 Convergence does not supply an error bar
For an integrable observable , an appropriate ergodic law gives
For a finite irreducible chain this holds even if it is periodic. For a continuous process, one needs the corresponding recurrence and integrability conditions. Hamiltonian time averages have an analogous assertion only on the invariant component actually explored by the trajectory. Energy conservation alone does not imply ergodicity.
The law is asymptotic. It gives neither a convergence speed nor permission to use independent-sample standard errors. A central limit theorem is a stronger statement, requiring additional mixing and moment conditions. Long memory can prevent the usual regime even when the mean converges.
5.2 Count every covariance pair
Assume now that the chain is stationary, has finite nonzero variance , and write
Expanding the variance of the mean gives diagonal terms and covariance terms at each positive lag . Therefore the exact finite-length identity is
The taper counts how many pairs actually exist. If the correlations are absolutely summable, the bracket tends to
Then , and a conventional effective sample size is when . Our independent-sample convention is , hence .
The source used the infinite-lag expression as a finite- equality. It is an asymptotic approximation, and stationarity was implicit. Correlations also need not inflate error: sufficiently negative correlations can give . All these quantities depend on the observable, not just the chain.
A simple exact comparison uses , with , as for a stationary Gaussian AR(1) process. Summing the geometric series gives . Inspect how a slowly decaying correlation changes the error scale even though each marginal variance is still one.
How slowly does memory decay?
A larger a leaves substantial correlation at many positive lags.
Sum the covariance contributions
The variance multiplier is g; the standard-error multiplier is its square root.
At , : 1900 observations contain roughly the mean-estimation information of 100 independent ones in the long-run regime. The standard error grows by , rather than by 19. For a fixed computational budget, compare the product of correlation time and cost per update; a more expensive collective move can still be worthwhile.
The marginal variance stays one. How much does correlation change the uncertainty of a mean formed from the observations seen so far?
Var(X̄M) = [1 + 2Σ(1−k/M)aᵏ]/M
22 observations; mean standard deviation 0.572; independent reference 0.213.
Paused. Play the sequence, step through it, or drag the position slider.
Stationary Gaussian AR(1), Xₙ₊₁ = aXₙ + √(1−a²)ξₙ. The displayed ±1.96 standard-deviation intervals use the exact known covariance, not an estimated MCMC diagnostic. No initialisation bias is present in this example. The value scale is fixed during playback and adapts to the selected a.
5.3 Estimate uncertainty without confusing it with equilibration
Under a valid Markov-chain CLT, a large-sample interval has the form . Estimating the long-run variance is itself a statistical problem. Summing empirical correlations to arbitrarily large lags accumulates noise. Windowed estimates, batch means, or blocking methods use a finite lag/block scale that must be long compared with the relevant correlation time and short compared with the run.
A practical analysis compares progressively larger blocks and independent runs, including starts in different plausible basins. Stability of a short observable trace cannot rule out an unvisited state. Burn-in targets initial-distribution bias; the stationary covariance formula targets sampling variability. Neither corrects force-field error, finite-size effects or timestep bias.
Thinning usually throws away information at a fixed number of computed steps. It can help when storing or evaluating an observable is expensive, but it does not make an inadequately explored trajectory representative. Report the production length, equilibration procedure, observable-specific error estimate and physical/numerical settings together.
5.4 Energy fluctuations are a thermodynamic response
An equilibrium observable can contain more information than its mean. At fixed , with a temperature-independent Hamiltonian,
Since , the canonical heat capacity is
The derivation explains the interpretation: a system whose energy distribution changes strongly with temperature also has large energy fluctuations. The formula does not apply to the total-energy variance of a fixed-energy NVE trajectory, which vanishes in exact dynamics.
If configurational Monte Carlo samples only , the independent quadratic momenta supply the missing kinetic term. For independent unconstrained-or-linearly-constrained quadratic momentum degrees of freedom,
More general constraints and temperature-dependent effective potentials require revisiting the measure and derivative. Estimating a fluctuation quantity involves correlated estimates of both and ; blocks should preserve their joint fluctuations.
5.5 A pair histogram must be compared with available volume
For a homogeneous isotropic fluid in three dimensions, the radial distribution function compares neighbour density at separation with the mean density . Using ordered pairs, a shell with volume gives
For unordered pair counts, multiply the numerator by two. At finite fixed , this convention gives for an ideal gas; using as the reference density makes its finite- ideal-gas baseline exactly one. State which convention is used. Shells must fit the minimum-image geometry or receive a geometric volume correction.
Peaks reveal preferred neighbour distances, and gives a mean coordination count under the stated convention. The angular distribution function similarly records selected triplet angles and requires its own counting and angular measure. These are equilibrium structural averages accessible to either correctly sampled MC configurations or equilibrated MD frames; the order in which configurations were generated is irrelevant to their static definitions.
Sweep a spherical shell outward. Why does a larger raw neighbour count not necessarily imply stronger structural ordering?
g = count / [ρ · 4π((r+Δr)³−r³)/3]
7 neighbours; shell volume 0.149; g = 1.09.
Paused. Play the sequence, step through it, or drag the position slider.
180 independent uniform neighbours inside a 3D unit ball around one fixed probe. Orthographic projection hides depth; selection uses x²+y²+z². This ideal-gas illustration uses neighbour density 180/(4π/3), so its expected g is one.
5.6 A transport coefficient needs physical time
Thermal conductivity instead describes a response to a temperature gradient:
for an isotropic material in the linear-response regime. A reverse nonequilibrium MD construction, associated with Müller–Plathe, exchanges kinetic energy between selected slabs and measures the resulting steady temperature profile. The imposed energy-transfer rate determines the flux; for a symmetric periodic geometry with two equal heat-flow paths, each path carries half the total transfer rate per area. Other geometries require their own flux accounting. Fit the bulk gradient away from perturbed slabs and verify the weak-driving regime.
For a monatomic model one can implement energy transfer by appropriate velocity exchanges; with equal masses, exchanging velocities preserves the pair's total kinetic energy and momentum while moving energy between spatial slabs. More general masses require a correspondingly conservative exchange rule. Momentum-exchange constructions similarly measure viscosity from an imposed momentum flux and velocity gradient.
Transport requires a time-evolution model with an appropriate physical interpretation and controlled thermostat, size and finite-time effects. Arbitrary Metropolis or event-chain step counts do not provide that time. This is why the same particle configurations may suffice for but fail to determine .
The next chapter uses our error analysis to diagnose a different problem: an algorithm may accept many local moves while leaving the slowest collective observable almost unchanged.
Exercises
- Derive the finite- covariance identity by counting pairs at each lag. Evaluate it for and compare with the infinite-lag approximation.
- For , compute and explain why effective sample size can exceed the number of observations for this particular mean.
- Derive the heat-capacity identity directly by differentiating the ratio defining .
- Write an RDF normalisation for unordered pairs and verify the ideal-gas finite- baseline.