A finite lattice changes the probability distribution we calculate, and a finite sample changes how accurately we know it. Keeping those two effects apart lets us improve a calculation for the right reason. More samples reduce random uncertainty. A smaller spacing tests the short-distance approximation. A larger interval tests the influence of the boundary.
Prerequisites: the classical-field and free-field quantization chapters of this course, together with the ideas of a mean and a variance. We will use a matrix as a compact way to write coupled quadratic terms; the steps below explain what its entries mean. After this chapter, you should be able to design separate tests for spacing, volume and sampling errors.
Replace an integral with neighboring sites
Consider one real field on a line. Measure distance in a reference length , mass in , and field amplitude in . We use natural units, so the Euclidean action is dimensionless. The numerical inputs below are expressed in these units.
Let be the site spacing and the mass parameter. On a periodic ring, sites fill a length . Neighboring values approximate a derivative: the change in field divided by the distance between them. Replacing the continuum integral by a sum gives
A configuration with large differences between neighbors has a larger action and receives less probability, according to . This is why nearby sites tend to fluctuate together.
The coordinate is Euclidean. It can represent imaginary time for a quantum harmonic oscillator. A periodic interval then gives finite-temperature paths; increasing the interval approaches the ground-state limit. Fixing both endpoint values instead gives a conditioned path distribution. The equal-real-time covariance of a quantum field in one spatial dimension has a different mode weight, . Our one-dimensional Euclidean calculation uses the inverse quadratic operator.
Find the covariance before drawing samples
Expand the neighboring differences. Each interior square occurs in two bonds, giving a diagonal coefficient . Each adjacent pair contributes an off-diagonal coefficient . These numbers form a matrix , and the action becomes .
The covariance matrix , whose entry is , obeys . One way to see this is to integrate the derivative of with respect to . The boundary term at infinite field amplitude vanishes because the positive quadratic action suppresses it. Differentiating the two factors gives . Thus .
On the ring, a mode with phase change per site turns the neighboring-difference operator into the number . Summing the contribution of every mode gives
Here counts site intervals and is physical separation. This exact finite-lattice curve is available before sampling. The workbench draws fields by factoring and solving triangular equations, then compares them with this separately calculated spectral reference.
A numerical example with three answers
Take , , and , so and . The exact lattice correlation is in units of . The continuum Green function on a ring of the same length is
It gives . The second exponential describes the other way around the ring. Both values are deterministic predictions for their respective models.
The saved default record has model version gaussian-chain-1.0.0, seed and independent fields. Multiplying the values at the two probes in each field and averaging gives , with standard error . Its difference from the lattice prediction is about standard errors. This is an ordinary sampling fluctuation in that particular record.
The lattice-to-continuum difference is only . It stays the same when we change the seed. Resolving that small spacing effect calls for a much more precise sample estimate.
Why correlated samples need wider error bars
To give the sampling process a controllable memory, update the whole field by
Each is independent. The first field is also drawn from , so the chain starts in its stationary distribution. The update index counts samples. At , each update replaces the field completely.
Let be the product at the two probes. Gaussian fourth moments give . Expand the variance of the mean as a double sum over sample pairs. There are pairs at positive lag , and equally many at negative lag. Dividing by gives
where is the variance of one product. The effective count is . For and , and the effective count is about .
The ordinary sample variance itself has expectation for this chain. Correcting that bias gives the workbench's estimate
These error bars use the known sampler correlation. The displayed gold autocorrelation curve is estimated from the saved products and consequently fluctuates around its reference.
Experiments that answer separate questions
Open Euclidean Field Correlations. Predict what will happen before making each change.
- To isolate sampling, keep the lattice fixed and change only the seed. The gold estimate moves; both reference curves stay put. Increase the retained count and compare the size of those movements over several seeds.
- To test spacing at fixed volume, compare . Two inputs must change together to keep . Keep , which requires . The lattice predictions are , and , approaching the continuum value.
- To test volume on a periodic ring, hold and fixed and change only . Keep the same probe separation. The contribution that wraps around the ring shrinks as the ring grows.
Export the record before changing settings. It contains every field vector, the seed and the model version, so another calculation can reconstruct the sample means.
Practice
You quadruple the number of independent samples. What happens to the standard error, and to the spacing error?
Explanation
The standard error falls by a factor of two because it scales as . The lattice distribution has not changed, so its difference from the continuum distribution stays fixed.
A colleague measures the field at one site instead of a two-point product. With , may they reuse the product's effective count?
Explanation
The field's lag correlation is ; the product has lag correlation . For a long record its variance inflation approaches . The product's approaches . The single-field average therefore has a smaller effective count. Sampling efficiency depends on the observable.
The correlation curve moves when you double the number of sites at fixed spacing. Design one further comparison that can tell whether the movement was caused by volume or resolution.
Explanation
The first change doubled the physical length. Compare a second pair with the same physical length but half the spacing and twice as many sites, keeping the probe's physical separation fixed. That comparison isolates resolution. Reseeding each setting several times helps reveal the statistical variation around each curve.
The Gaussian Green-function derivation follows Tong, Statistical Field Theory, section 2.2. The relation between autocorrelation and uncertainty is developed in Wolff, Monte Carlo errors with less errors, version 4, equations 21–25.
Try the physics
Euclidean Field Correlations →Move two probes apart on a sampled scalar field. Compare the correlation estimated from many field configurations with the lattice prediction and its continuum limit.Sources and reading scope
- David Tong, Statistical Field Theory, Chapter 2
Gaussian integrals, inverse-kernel covariance, correlation length and the Euclidean quantum-mechanical interpretation. Finite-chain normalizations are derived for this course.
- U. Wolff, Monte Carlo errors with less errors, arXiv:hep-lat/0306017v4
Autocorrelation and the variance of an average, equations 21–25. The finite-record correction for the specified Gaussian sampler is derived in the chapter and checked across independent records.