Classical Quadrature as Inference
Summary
The foundational thesis of Part II made concrete: classical quadrature rules are the posterior-mean (MAP) estimators of Bayesian quadrature under specific Gaussian-process priors. The trapezoidal rule is the posterior mean under a Wiener-process prior on the integrand; higher-order spline rules arise from -times integrated Wiener processes; and the classical Gaussian (Gauss–Legendre etc.) quadrature rules arise from degenerate polynomial kernels, with the Bayesian-optimal design coinciding exactly with the Gaussian nodes. Polynomial exactness of degree corresponds to prior choice. We give the full trapezoid derivation and its equivalent Kalman-filter form.
Overview
Bayesian Quadrature showed BQ produces a weighted-sum rule whose weights come from the prior. This note runs the correspondence the other way: take a classical rule and exhibit the prior for which it is the BQ posterior mean. Doing so (i) proves classical rules are “implicitly probabilistic” and therefore that PN is no worse than classical numerics; (ii) equips each classical rule with a calibrated error bar (the posterior variance) for free or nearly free; and (iii) shows the probabilistic viewpoint is a design framework — new rules are built by choosing new priors. The chapter uses Gauss-Markov Processes and SDEs and Bayesian Filtering and Smoothing to give an filtering implementation, proving that a probabilistic method need not cost more than its classical twin.
Main Content
The Wiener-process prior behind the trapezoidal rule
Wiener-process prior for quadrature
Take zero prior mean and the covariance
giving . This is the Wiener process with starting time and intensity — a very broad prior whose samples are (almost surely) continuous but nowhere differentiable.
For ordered nodes with , and writing step sizes , the BQ ingredients (see Bayesian Quadrature ^def-three-integrals) evaluate to and
Derivation: the trapezoidal rule as posterior mean
The cleanest route is to note that the GP posterior mean over is a weighted sum of kernel functions at the nodes:
Each is piecewise linear in with a single kink (non-differentiable point) at . A sum of such functions is piecewise linear with kinks only at the nodes . Since this posterior mean must interpolate the data (pass through the points , as observations are noise-free), and there is a unique piecewise-linear interpolant through points, the posterior mean is exactly the linear spline connecting the evaluations. For (assuming , ):
The expected value of the integral is the integral of the expected value (Fubini):
The right-hand side is precisely the trapezoidal rule (integrating each linear segment gives the area of a trapezium). Hence:
Theorem 11.1 (Trapezoidal rule = Bayesian quadrature)
The trapezoidal rule is the posterior-mean (and, since a Gaussian’s mean equals its mode, the maximum-a-posteriori) estimate for under any centred Wiener-process prior with , for arbitrary and .
The trapezoidal rule is therefore literally Bayesian quadrature: a foundational classical algorithm has a clear probabilistic identity. Note the whole family gives the same trapezoidal mean — the rule is independent of the scale (which only sets the error bar).
The trapezoidal error estimate
The novelty over the classical rule is a computable error bar. The posterior variance (from Bayesian Quadrature ^thm-bq-posterior), which as always does not depend on the collected values , evaluates for the Wiener prior to
Minimising this over step sizes (subject to endpoints on the boundary) is achieved by the equidistant grid — so the regular grid is the maximally informative (variance-minimising) design, motivated probabilistically without any appeal to classical analysis. On an equidistant grid ,
contracting faster than the Monte Carlo (see Convergence and Priors in Bayesian Quadrature).
Equivalent derivation as a Kalman filter (O(N) cost)
The joint inference on under the Wiener model can equivalently be phrased as a Kalman filter (see Bayesian Filtering and Smoothing and Gauss-Markov Processes and SDEs), which (a) gives an alternative proof of Theorem 11.1, (b) yields the posterior variance on , and (c) proves the probabilistic method costs the same as the classical one. Define the antiderivative and the state . The Wiener prior is the linear SDE
whose discrete-time transition (step ) has
With and (exact observations ), the Kalman mean/covariance updates simplify to
Reading off the first component recovers, by a telescoping sum, exactly the trapezoidal estimate and the variance :
Filtering form (Algorithm 11.1 / Exercise 11.2)
The filter runs in operations — identical cost to the classical trapezoidal rule. Adding uncertainty to this computation incurs no overhead if one counts evaluations of , and only a small percentage if one counts all arithmetic.
The take-away: “the simple software implementation of the trapezoidal rule is that of a particular Bayesian quadrature algorithm.” Probabilistic numerics can be fast.
Spline rules for smoother integrands
The Wiener prior is too rough — its samples are non-differentiable, so it under-uses smoothness and gives over-conservative error bars. If has continuous derivatives, use the -times integrated Wiener process by extending the state to with (matrices as in the SDE chapter):
- : integrated Wiener process → posterior mean is a cubic spline.
- : twice-integrated Wiener process → quintic spline. Etc.
With the standard Kalman filter becomes a probabilistic integration method (Algorithm 11.2). Initialisation must express ignorance of the unknown derivatives: and with “very large” . These reproduce spline quadrature rules (Wahba) and give correspondingly faster convergence for smoother integrands (see Convergence and Priors in Bayesian Quadrature).
Gaussian quadrature via degenerate polynomial kernels
The most efficient classical family is Gaussian quadrature. A quadrature rule is of degree if it integrates all polynomials of degree exactly; for nodes chosen as the roots of the th -orthogonal polynomial one attains the maximal degree (Theorem 11.4, Gauss). The probabilistic reproduction uses a degenerate (finite-rank) kernel built from orthonormal polynomials:
Degenerate polynomial kernel
Let be -orthonormal polynomials, . For positive scales , set
The GP assumes with weights i.i.d. — i.e. is a degree- random polynomial.
Theorem 11.5 / Corollary 11.6 (Bayesian Gaussian quadrature; Karvonen & Särkkä 2017)
The Bayesian quadrature rule with kernel on coincides with the classical quadrature rule of degree if and only if , and for such a rule the posterior variance on the integral vanishes, . Setting : for each there is a unique -point optimal Bayesian quadrature rule for the kernel , and it coincides with the Gaussian quadrature rule. The optimal (variance-minimising) BQ design equals the Gaussian nodes (roots of the th orthonormal polynomial).
Thus polynomial exactness ↔ prior choice: choosing a degree- polynomial prior yields a rule exact to that degree. Popular pairings (Table 11.1): with Legendre (Gauss–Legendre), Chebyshev, Jacobi/Gegenbauer; with Laguerre; with Hermite. Clenshaw–Curtis likewise fits this polynomial-interpolation family.
Caveats (why the probabilistic reading is imperfect here). (1) The equivalence class of GP priors reproducing a given Gaussian rule is large — any in the prior over polynomial coefficients yields the same integral estimate, though wildly different priors over . (2) The variance vanishes () at the nodes, so this simple form gives no useful uncertainty; it is an open question whether an empirical-Bayes extension can restore a meaningful error bar. (3) The kernel must grow in rank as grows, so the “prior” depends on the data and is “not a real prior at all” (echoing the kernel-quadrature caveat in Kernel Quadrature and Kernel Means).
Examples
Trapezoid on the running integrand
For on , the Wiener-prior BQ with an equidistant grid gives exactly the trapezoidal estimate and the error bar . Empirically the trapezoidal rule overtakes Monte Carlo after evaluations; after evaluations the absolute error is , which would need Monte Carlo samples to match — a saving of billion evaluations.
Kepler's / Simpson's rule as a "contrived" prior
The piecewise-quadratic (Kepler/Simpson) rule can be obtained from a Gaussian prior on the weights of piecewise parametric polynomial features (Diaconis 1988). But this prior is “so far-fetched” (requiring a fixed pre-determined node grid) that it is a warning: not every classical rule has a natural GP-on-the-integrand prior.
Connections
- Concretises the Part-II thesis stated in The Integration Problem and Bayesian Quadrature: classical rules are BQ posterior means.
- Uses Gauss-Markov Processes and SDEs (Wiener / integrated-Wiener SDEs) and Bayesian Filtering and Smoothing (the Kalman implementation).
- Degenerate kernels relate to the RKHS view of Kernel Quadrature and Kernel Means (the finite-rank RKHS of polynomials; vanishing worst-case error at nodes).
- Convergence rates of trapezoid, spline, and Gaussian rules are compared in Convergence and Priors in Bayesian Quadrature.
- Design lesson (“classical methods are MAP estimators”) is drawn out in Lessons from Integration.
See Also
- Bayesian Quadrature — the general posterior whose mean these classical rules instantiate.
- Convergence and Priors in Bayesian Quadrature — (trapezoid) vs faster spline / Gauss rates.
- Kernel Quadrature and Kernel Means — degenerate/polynomial kernels and vanishing variance.
- Bayesian Filtering and Smoothing — the Kalman-filter implementation of the Bayesian trapezoidal rule.
- Gaussian Process Regression — the general regression whose posterior mean these classical rules are, once the integral functional is applied.