The Integration Problem

Summary

Numerical integration (quadrature) is the task of computing a definite integral that has no closed form, using only a finite number of evaluations of the integrand. Classical rules estimate by a weighted sum ; the values of are epistemically uncertain even though is a deterministic function, which licenses a probabilistic treatment. This note fixes the setup, notation, and the two ingredients — a model and a design rule — from which every probabilistic quadrature method is built.

Overview

Integration is one of the oldest and most elementary numerical tasks, which makes it the ideal pedagogical starting point for Probabilistic Numerics. It is also ubiquitous: it is the central operation of Bayesian inference (marginalisation, model evidence), and a provocative Bayesian view holds that integration is “the single challenge separating us from systems that fully automate statistics” (Hennig et al., Ch. 9, p. 69).

The key conceptual move is to notice that although a definite integral such as is a single, unique real number fully specified by a handful of symbols, we cannot compute its value elementarily: there is no antiderivative in the standard tables and no atomic machine operation returns it. Our uncertainty about is therefore epistemic — arising from a lack of knowledge/computation, not from randomness. This is exactly the kind of uncertainty that Computation as Probabilistic Inference proposes to quantify with a probability measure, and it distinguishes numerical from atomic operations (whose uncertainty is always nil). This note motivates and sets up the problem; Bayesian Quadrature solves it, and Classical Quadrature as Inference shows classical rules are special cases.

Main Content

The integration (quadrature) problem

Given an integrand and a measure on the domain (in the univariate case usually a bounded interval ), compute

Here may be the Lebesgue measure (, giving ) or a probability measure (e.g. a prior , in which case ). The algorithm may only access through a finite set of evaluations at nodes .

Symbols. = integration domain; = base/weight measure; = integrand; = the (scalar) integral, the latent quantity of interest; = nodes/knots/sigma-points; = observed function values; = quadrature weights.

Why it is intractable

The integrand of the running example can be evaluated to machine precision in nanoseconds using only atomic operations (exp, sin, +, \times). Yet has no elementary antiderivative and no atomic operation returns it. Despite the formal clarity of , the number is only accessible through further computation — hence the epistemic uncertainty.

Because here, ; and since for all , we have the a priori bounds

Such analytic bounds already allow a proper prior measure over (e.g. ), the first hint that inference is available. Collecting evaluations related to through a likelihood yields a posterior that concentrates on the true value.

Classical rules as weighted sums

Almost all classical quadrature rules are linear in the evaluations:

differing only in their choice of nodes and weights . The trapezoidal rule, Simpson’s/Kepler’s rule, Gauss and Clenshaw–Curtis rules all take this form. A central thesis of Part II is that each such rule is the posterior mean of a Bayesian quadrature method under a specific Gaussian-process prior — classical quadrature is contained in Bayesian Quadrature as a set of special cases (see Classical Quadrature as Inference).

The two ingredients of a probabilistic quadrature method

(1) A model : a joint probability measure over the integral and the data . Assuming sufficient regularity it factors as a prior and likelihood through the integrand as latent variable (using that and are conditionally independent given ):

(2) A design rule governing the choice of nodes . In general a function of the model , previous choices , and previously collected data . If it uses it is adaptive / closed-loop; if it depends only on the model it is non-adaptive / open-loop.

Interpretation. The model encodes assumptions not only over the integrand but over its relationship to the numbers being computed. A solver is thus a probabilistic agent (see The Numerical Agent): the design rule translates the information in the model — and, for adaptive rules, the observations — into actions (choices of where to evaluate ).

Models must be simpler than the problem

One might wish to encode maximal prior information. But an agent’s model of the world must be simpler and smaller than the world itself (Fig. 9.3). A “perfect” prior placing unit mass on the true would be as intractable as the original task. The goal is instead tractable priors that (a) place high mass near the truth, (b) allow efficient computation of using only atomic operations, and (c) give non-trivial uncertainty at intermediate points. This tractability constraint is what makes Gaussian-process priors so attractive (see Bayesian Quadrature).

Contrast: Monte Carlo

Monte Carlo (MC) is a non-probabilistic (frequentist) but stochastic route. With a sampling measure wherever and i.i.d. draws , the importance-sampling estimator is

Lemma 9.2 (Monte Carlo is unbiased with rate)

If is integrable, is unbiased, , with variance

assuming exists. Hence the standard deviation (root-mean-square error) drops as .

Proof sketch. Unbiasedness follows from for i.i.d. draws with known . As is a linear combination of i.i.d. variables, .

MC converts a deterministic-but-unknown number into a random one, introducing an aleatory form of uncertainty. Its virtue is generality (almost no assumptions on ); Part II argues its rate is the worst achievable among sensible integrators because it uses the weakest possible model (see Lessons from Integration and Convergence and Priors in Bayesian Quadrature).

Examples

The running univariate integrand

The whole of Part II uses

is smooth and strictly positive; it is bounded above by the Gaussian , giving before any evaluation. This can be read either as integrating against Lebesgue measure on , or as integrating against the Gaussian measure . Both readings are used depending on which prior/measure pairing yields tractable Bayesian-quadrature integrals.

Adaptive vs non-adaptive design

A non-adaptive rule fixes the nodes in advance (e.g. an equidistant grid for the trapezoidal rule), independent of the observed ; it can be pre-computed and parallelised. An adaptive rule chooses using the values already seen (e.g. placing the next node where the model is most uncertain). For Gaussian models the posterior variance on is independent of the values , so the “optimal” node placement is already open-loop — adaptivity only helps once one moves to non-Gaussian models (see Active Bayesian Quadrature and Bayesian Monte Carlo).

Connections

  • Specialised by Bayesian Quadrature, which chooses the model to be a Gaussian process on , making Gaussian and giving closed-form posterior mean and variance.
  • Instance of the general PN programme of Computation as Probabilistic Inference: a numerical quantity () is inferred from computable data () via a prior and likelihood.
  • Contrasts with Monte Carlo, the stochastic/frequentist alternative analysed via Lemma 9.2, discussed critically in Lessons from Integration.
  • Uses the agent framing of The Numerical Agent: the design rule is the agent’s policy for choosing evaluations.

See Also