- Home
- Library
- Lattice and Hamiltonian Field Theory
- Generating and Testing Lattice Ensembles
- Correlated Errors in Lattice Measurements
Correlated Errors in Lattice Measurements
A scalar simulation measures several separations of the same correlator on every configuration. Those measurements are correlated both with one another and with nearby Monte Carlo steps. A mass-like ratio or a fitted energy can therefore have an uncertainty quite different from one obtained by attaching independent errors to each point.
We analyze the actual shared scalar histories using independent replicas, blocking and fixed-window covariance sums. A free finite-lattice correlator supplies an exact energy benchmark. The interacting calculation tests uncertainty propagation without assuming that a short correlator fit isolates a ground state.
Preparation: The first scalar simulation and local updates. The Computational QFT treatment derives effective sample size and tests coverage on exactly soluble processes; here the input is the chapter's shared field ensemble.
Specify the measured object
The dimensionless two-dimensional Euclidean action is
on a periodic lattice. We use and . A Monte Carlo step is a complete local sweep or a complete HMC trajectory, as appropriate. Every rejected proposal remains in the history as a repeated state.
Two correlators answer different questions. The axis average is
For a spectral analysis we instead project spatial momentum to zero. With Euclidean time and spatial coordinate , define
Time indices wrap periodically. contains spatial cross terms absent from ; the two cannot be substituted for one another. The data contain measured together, along with , , and the integration-by-parts observable .
The generator uses 16 independent replicas for each target and algorithm. Local random-walk and Gaussian-proposal updates each discard 2,048 sweeps and retain 8,192; HMC discards 256 trajectories and retains 1,024. Half start at zero field and half at constant field three. The seed for each is SeedSequence([761025,case_id,algorithm_id,replica_id]), with free/interacting case IDs 0/1 and random-walk/Gaussian/HMC IDs 0/1/2. HMC uses step size and independently chooses 8, 10 or 12 leapfrog steps per trajectory. The HMC article checks the integrator and work comparison.
These histories are generated once by run_scalar.py; analyze_scalar.py only reads them. Prefixes, the discarded histories and separate starting groups are retained for equilibration diagnostics. An error formula for a stationary chain cannot establish that the discarded interval was sufficient.
Sum correlations within replicas
Let be observable at retained step of independent replica . For replicas of equal length , the total number of records is . Center all records at the combined mean and estimate
No pair crosses a replica boundary. Centering each short replica separately could erase offsets that should instead warn about slow sampling. Global centering also has a finite-sample bias because the true mean is unknown; it does not eliminate that issue.
For a long stationary run with summable correlations, a fixed-window estimate of the covariance of the mean is
The transpose matters when the update sequence is not reversible. For one observable, this reduces to . A short window misses a tail; an excessively long window accumulates noise. A significantly negative variance or indefinite covariance estimate is a failed diagnostic, not permission to clip it into a physical answer.
The analysis uses predeclared windows local sweeps and HMC trajectories. It implements this fixed-window estimator, including its finite-mean bias, rather than claiming the full automatic -method and bias correction of Wolff [1, §§3.1–3.3]. The companion verifies its Fourier-transform implementation against a direct within-replica lag sum.
Blocks and replicas supply different comparisons
Partition each replica into complete aligned blocks of records, never joining two replicas. If their means are approximately independent, the covariance estimate is
The chosen block sizes are the same numerical values as the respective windows. Small blocks retain correlations; large blocks reduce the number of observations available to estimate an error. A plateau is useful evidence, not a proof against an invisible slow mode. For comparison, the scatter of the complete replica means gives
Only sixteen means enter the latter estimate. Its fluctuations can be substantial even when every chain samples correctly. If start groups remain inconsistent, increasing a lag window does not repair the underlying nonequilibrium problem. Blocking and replica comparisons are discussed in [1, §3.1 and Appendix B].
For , the same data give the following central values and standard errors. “Block” and “window” use the largest predeclared size; errors are displayed in units of .
| Target and update | Mean | Naive SE | Block SE | Window SE | Replica SE |
|---|---|---|---|---|---|
| Free, random walk | 0.004603 | 1.06 | 2.73 | 2.87 | 3.55 |
| Free, heat bath | 0.004155 | 1.06 | 1.37 | 1.36 | 1.36 |
| Free, HMC | 0.003916 | 2.98 | 4.17 | 3.75 | 4.21 |
| Quartic, random walk | 0.002924 | 0.94 | 2.28 | 2.33 | 2.53 |
| Quartic, Gaussian MH | 0.002617 | 0.95 | 1.20 | 1.23 | 0.87 |
| Quartic, HMC | 0.002622 | 2.68 | 3.64 | 3.80 | 3.45 |
For the free HMC stream the window error is in the table's units while the independent-configuration estimate is . For this observable and these finite windows the variance ratio is about . Its value depends on the measured separation and on the update. To test a window rule against an ensemble with known long-run variance, follow the autocorrelation-sum comparison.
These runs have different numbers and costs of updates, so this table compares error analyses, not algorithmic speed. In particular, the interacting Gaussian-MH replica error is smaller than its block error; no general equality of finite error estimators is being asserted.
The same free-field measurements are analyzed by blocking, fixed-window covariance sums and independent-replica scatter. Both panels use complete local sweeps; the HMC comparison is in the table.
The diagnostics are not uniformly flat. For free random-walk , the zero-start group gives and the constant-three group , about 2.4 combined replica standard errors apart. The interacting random-walk quarter-, half- and full-length prefixes give 0.002134, 0.002724 and 0.002924. Prefixes overlap and are correlated; these differences should remain visible rather than be turned into a binary equilibration certificate. The independent free target and alternative algorithms provide additional checks, while longer independent runs would sharpen the start comparison.
Propagate a nonlinear observable with its covariance
A convenient finite-time statistic is
It is real here only when and . At its derivative is singular. An undefined resample must be reported, not moved to the boundary by clipping.
For a smooth function , its leading fluctuating direction is , where at the sample mean. The leading covariance propagation is
For the displayed statistic the only nonzero derivatives are
Cross-covariances are indispensable because numerator and denominator share configurations. Their contributions can cancel or reinforce the diagonal terms. The companion checks this gradient by finite differences and applies each window covariance to this projected direction.
For a block jackknife, remove one entire aligned block at a time and recompute the nonlinear statistic from the remaining mean. If its values are and their average is , use
This preserves the relationships among all measured separations. The central value remains , without a jackknife bias correction; nonlinear estimates can have finite-sample bias even when each is unbiased. Large, approximately independent blocks and a smooth statistic underlie the error approximation.
| Update | Free | Quartic |
|---|---|---|
| Random walk | 0.95369 ± 0.01541 | 1.07825 ± 0.01866 |
| Gaussian proposal | 0.95595 ± 0.00795 | 1.06611 ± 0.01009 |
| HMC | 0.95874 ± 0.02326 | 1.06375 ± 0.02888 |
Errors use the largest-block jackknife. All delete-one-block effective energies are defined. The projected window errors agree with the jackknife errors at the displayed precision.
For , these are finite-time effective-energy statistics. The calculation does not show that isolates a single interacting state. A stable statistical error cannot replace an excited-state or fit-window analysis.
A correlated fit with an exact finite-lattice target
For the free field, zero spatial momentum reduces the covariance to a one-dimensional periodic inverse:
The second equality follows by solving the periodic difference equation. The backward contribution around the finite time circle is essential. In this Gaussian example the cosh is exact at every separation, not an assumption about a large-time plateau.
The fit range was fixed before production. Fit by minimizing
Here is the full four-separation covariance of the mean, using for local updates or for HMC. These give 512 or 128 blocks, respectively. The positive covariance is inverted without an eigenvalue cutoff. For each trial , the minimizing is obtained linearly; a bounded one-dimensional minimization then finds . The numerical search interval is fixed and a fit reaching a boundary is flagged as failed.
Refit every delete-one-block mean with the same covariance weights as the original fit. The retained output gives both parameter errors, covariance eigenvalues, and with two nominal degrees of freedom. Estimated, fixed weights and correlated finite data do not justify treating this as an exactly calibrated probability test.
The exact free value is . The fitted results are:
| Update | Fitted | Jackknife SE | / 2 |
|---|---|---|---|
| Random walk | 0.95666 | 0.01602 | 3.910 / 2 |
| Heat bath | 0.95635 | 0.00782 | 1.315 / 2 |
| HMC | 0.95983 | 0.02207 | 0.054 / 2 |
No seed or fit window was changed to improve agreement with the known energy. The result checks the measured object, periodic normalization and uncertainty propagation at this finite lattice. It does not establish coverage from one set of replicas or validate an interacting one-cosh model.
Summary
Analyze the observable actually used in the final answer, including its temporal and cross-separation covariance. Comparing windows, block sizes, independent replicas and starting groups exposes different limitations. The free correlator gives a quantitative check; none of these diagnostics proves that an unvisited slow sector has been sampled.
Exercises
1. A ratio with exact cancellation
Suppose every measurement obeys , with . Use covariance propagation to find the leading error of . What does discarding the cross-covariance do?
Solution
The gradient is . Since the entire histories obey the relation, every window or block covariance is proportional to
The gradient annihilates this matrix, giving zero variance. Indeed the ratio is exactly in every defined resample. Omitting the cross-covariance would instead give , a spurious positive uncertainty. Correlations are part of the calculation, not an optional refinement.
2. Independent replicas do not extend a lag window
There are independent stationary chains of length with scalar covariance . Derive the exact variance of their combined mean. Why is concatenating them into one chain of length inappropriate for estimating ?
Solution
Cross-replica covariances vanish. Within each chain there are diagonal pairs and ordered pairs at positive separation . Hence
The reduction comes from averaging independent chain means. Concatenation inserts artificial lag pairs across boundaries whose expectation is zero rather than , diluting the correlation estimate. More replicas improve the precision of within-chain estimates, but they do not observe the evolution of any one chain beyond steps. A correlation time much longer than remains a sampling problem even if the concatenated file is large.
References
- U. Wolff, “Monte Carlo errors with less errors,” Computer Physics Communications 156 (2004) 143–153, erratum 176 (2007) 383, arXiv:hep-lat/0306017v4. §§3.1–3.3, especially equations (31)–(36) and (49)–(52), treat primary and derived observables, independent replicas, finite-mean bias and automatic windows; Appendix B discusses binning. The present companion uses the explicitly stated fixed-window version.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.