- Home
- Library
- Computational Quantum Field Theory
- What Euclidean Data Can Resolve
- Bayesian Spectral Inference
Bayesian Spectral Inference
A Euclidean correlator does not determine an unrestricted spectral density from a few noisy times. Bayesian inference makes the missing information explicit: it combines a likelihood with a prior over an identified class of spectra. Its credible intervals answer a conditional probability question. They need not cover every fixed underlying spectrum at the same frequency.
We work through a continuous two-peak model, reduce its posterior to one-dimensional quadrature, and compute posterior expectations of physically specified spectral averages. Repeated observations reveal prior sensitivity, while independent integration and tail controls distinguish numerical uncertainty from uncertainty under the model.
Preparation. Ill-conditioned inversion, multivariate Gaussian distributions and conditional probability. The smearing page defines the Gaussian spectral averages used throughout the chapter.
Start with a likelihood and a measure
Use a connected zero-temperature positive channel with
For a diagonal Hermitian channel positivity follows from squared matrix elements. The compact support and normalization are additional benchmark information. They are not general ultraviolet statements about local-QFT correlators; the site's convention is .
Our finite family consists of normalized triangles:
A triangle is the convolution of two uniform densities. Its Laplace transform is therefore
The value at zero is defined continuously. No reconstruction bins are used to generate these data.
There are sixteen observations at . Write , with and
is fixed at , independently of the trial parameters. The covariance describes one observed vector; it contains no hidden configuration count. Inverting an estimated sample covariance would introduce a separate uncertainty problem.
Let . Relative to the measure ,
is the evidence, obtained by integrating the numerator. Correlations must remain in this likelihood; replacing by its diagonal changes the statistical model. The likelihood construction is discussed in Asakawa, Hatsuda and Nakahara, §3.1 (PDF).
We fix three proper independent priors before inspecting the observations:
| Prior | Separation | Weight |
|---|---|---|
| Uniform | Uniform on | Uniform on |
| Close peaks | conditioned on | Same uniform weight |
| Balanced weights | Same uniform separation | conditioned on |
The truncation normalizations are retained. “Uniform” always refers to the named coordinates: a prior uniform in is not uniform in . The close-peaks prior deliberately places the primary truth in its tail. It expresses a different information assumption, not an algorithmic setting selected by recovery quality.
Restricting the family is itself strong prior information. The comparison of parametric Bayesian inference with learned reconstruction in Kades et al., §III and Appendix B makes this issue concrete for a different spectral family. Their numerical model and sampler are not used here.
Integrate the mixture weight analytically
At fixed , the correlator is affine in :
where is the upper-energy triangle transform and is the lower transform minus the upper. Factor and whiten,
Represent the weight-prior quadratic by precision : for either uniform-weight prior, and for balanced weights, whose center is . Define
Completing the square gives
The direct expression for avoids subtracting two large nearly equal numbers. The conditional law is a normal distribution of location and scale , restricted to , . Its standardized endpoints and normalization are
with the standard-normal CDF and its density. Its conditional mean is
If is the normalization multiplying in the weight prior, integrating leaves
This reduces all posterior means to smooth one-dimensional integrals. It is an exact reduction within the finite family, not a Gaussian approximation to the joint posterior. Standardized truncation bounds are also the convention used by SciPy's truncated-normal distribution.
For far-tail intervals, subtracting two CDF values that have both rounded to one fails. The companion evaluates logarithmic Gaussian interval masses with tail symmetry and log-difference identities. Eight fixed stress cases include a location outside the support by 1,200 conditional standard deviations. Fresh 80- and 120-digit formulas bound the observed binary64 mean and CDF discrepancies by about . No observation is clipped, and tiny normalizers are not replaced by arbitrary constants.
Infer the observable, not a parameter plug-in
For a Gaussian window normalized on , define
The six windows have centers and widths . They are ordered by width, then center. These averages have inverse-energy units, unlike a bin probability.
Let and be the window integrals over the lower and upper triangle. Then
and the posterior expectation is
This generally differs from . For squared-error loss, the expectation is the optimal conditional estimator, because for any proposed number ,
The optimality is conditional on the declared family, likelihood and prior.
Marginal intervals require a separate calculation. For nonzero slope , the conditional target CDF is the truncated-normal weight CDF at , reversing the inequality if . Integrate this CDF over and invert it.
For a window centered at , symmetry instead gives exactly. The target is independent of ; division by the zero slope would be an error. The convolution of the symmetric triangle and Gaussian is symmetric and strictly decreasing away from its center, so decreases for . Thus a target's equal-tail interval follows directly from reversed separation quantiles:
These are individual 95% marginal intervals, not a simultaneous band for the density or all six targets.
What the retained observations show
The primary display observation is fixed at replica zero and . Under the uniform prior, it gives
For the narrow window centered at , the posterior expectation is , whereas the parameter plug-in gives . The difference is small in this observation but conceptually necessary: the latter is not the estimator in (16).
The repeated study applies every prior to the same 256 observations at each noise scale. Selected parameter results are:
| Noise | Prior | RMSE of | RMSE of | Coverage of | Coverage of |
|---|---|---|---|---|---|
| 0.003 | Uniform | 0.00637 | 0.00373 | 0.953 | 0.934 |
| 0.01 | Uniform | 0.02084 | 0.01248 | 0.941 | 0.938 |
| 0.03 | Uniform | 0.05977 | 0.03692 | 0.953 | 0.953 |
| 0.03 | Close peaks | 0.08538 | 0.05358 | 0.859 | 0.855 |
| 0.03 | Balanced weights | 0.05171 | 0.03036 | 0.969 | 0.949 |
These are fixed-truth repetition results, not posterior probabilities for a newly observed datum. A coverage near estimated from 256 independent repeats has a binomial standard error around . The poorer close-peaks coverage at high noise is a visible effect of an informative prior pulling away from this fixed truth. Conversely, a helpful prior can reduce RMSE at some truths without being uniformly superior.
The priors are specified before observing the data. The posterior curves use the fixed representative datum; coverage uses 256 independent observations at each noise scale. Error bars show finite-repeat binomial standard errors, not uncertainty in a single posterior interval.
Bayesian calibration has a precise averaging statement. If is drawn from the same prior used in inference, from the stated likelihood, and has posterior probability , then
This integrates over truths. It does not say the coverage function is at every fixed . The second exercise makes the distinction explicit.
The learned-inference comparison uses the same uniform generating prior and the actual posterior expectations (15) on common held-out observations. Broader peaks, an extra peak, shifted times and an incorrectly supplied covariance test different kinds of misspecification. Updating the times or covariance can repair the corresponding observation model; it cannot repair a wrong two-peak spectral family. A narrow interval under a false family is still conditional on that family.
Numerical integration has its own error
The primary rule uses 32 fixed panels in and 32 Gauss–Legendre points per panel: 1,024 nodes. Every case is compared with 512 nodes. A fixed first sixteen cases per noise/prior and four noiseless parameter corners also receive 2,048-node controls. Quantiles use at most 32 bisections. The separation CDF integrates a partial final panel; quadrature nodes are not treated as discrete posterior atoms.
All 2,304 primary cases return finite results, and all target means meet the preset 512-to-1,024 difference target . The target intervals are more demanding. At , the scaled endpoint target is missed in 246, 240 and 245 of 256 observations for the uniform, close-peaks and balanced priors. At the other two noise levels it is met in every primary case. The fixed 1,024-to-2,048 controls at low noise change endpoints by at most .
The cause is numerical: conditional target CDFs change sharply across a narrow joint posterior even when means are smoothly integrated. The primary 1,024-node intervals and failure flags are retained; the selected 2,048-node agreement does not certify every unresolved case. The low-noise parameter coverage and target-endpoint refinement use different diagnostics.
An independent check integrates the original two-dimensional likelihood, without performing the conditional Gaussian integral. It uses fixed 32-by-16 panel boundaries in so that initial adaptive nodes cannot simply skip a narrow ridge. For replica zero at each noise/prior, all nine integrations terminate successfully with nonzero rescaled normalizations, approximately 270,000–287,000 integrand evaluations each, and no inner-integration failures. Target means agree with the reduced calculation to and log evidences to . Absolute normalization, subdivision counts and reported integration errors are retained alongside the comparisons. These controls test normalization and means, not every posterior quantile.
Summary
A spectral posterior requires a likelihood, a measure and explicit prior information. In the two-triangle family, conditional Gaussian integration gives accurate posterior expectations of actual smeared observables. Credible intervals remain conditional on that family and prior, and their numerical integration needs separate refinement. Fixed-truth coverage, prior-averaged calibration and robustness to misspecification answer different questions.
Exercises
1. Add a truncated Gaussian weight prior
At fixed , suppose the whitened likelihood is proportional to and the weight prior is proportional to on . Derive the conditional distribution, its mean, and the factor contributed to the marginal likelihood of .
Solution
Set , , , and . Expanding the quadratics and completing the square gives (9), with .
The normalized prior prefactor is
The conditional density is
Using , its mean is (11). Integration over contributes to the marginal likelihood, in addition to the common normalized Gaussian likelihood prefactor. Omitting changes the evidence; omitting the truncation mass changes even the posterior shape in .
The conditional location may lie outside without making the distribution invalid. It then concentrates toward a boundary. Replacing it by a clipped point would discard the tail normalization and uncertainty.
2. Credible intervals and fixed-truth coverage
Let and , with positive known variances. Find the posterior 95% equal-tail interval and its repeated-sampling coverage at a fixed true value . Prove prior-averaged coverage is 95%.
Solution
Completing the square gives
Let and . The interval is . At fixed truth, , with . Therefore coverage is
It depends on . For sufficiently large , shrinkage toward zero produces low coverage; near zero the interval can overcover. In the weak-prior limit , , , recovering nominal coverage for each fixed truth.
For the proper finite prior, integrate the coverage against its density. Interchanging the joint integrals yields
The equality is an average under the same prior and likelihood used to construct the interval. It does not survive arbitrary changes to the truth-generating distribution or noise model.
References
- M. Asakawa, T. Hatsuda and Y. Nakahara, “Maximum Entropy Analysis of the Spectral Functions in Lattice QCD,” Progress in Particle and Nuclear Physics 46 (2001), 459–508, arXiv:hep-lat/0011040v2 (PDF). §3.1: correlated likelihood; §§3.2–3.3: prior measures and posterior treatment.
- L. Kades et al., “Spectral Reconstruction with Deep Neural Networks,” Physical Review D 102 (2020), 096001, arXiv:1905.04305v2. §III and Appendices A–B distinguish spectral priors, parametric posterior inference and learned information.
- SciPy developers, Truncated normal distribution, SciPy 1.13.1. Standardized truncation bounds and probability-function conventions.
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.