Part 3 · The Maths I: Gaussian Process Surrogates
Conditioning: the posterior in closed form
Observations (with Gaussian noise variance σn², possibly ≈0) and the prediction target f(x) are jointly Gaussian by definition — so conditioning is not an approximation, it is an identity. Writing K for the n×n matrix Kij = k(xi, xj) and k* for the vector k(x, xi):
μn, σn² posterior mean and variance after n observations · K the n×n kernel matrix between observed inputs · k* the vector of kernel values between x and each observed input · y the observed values · σn² (inside the inverse) the observation-noise variance · I the identity matrix
Read them as prose. The mean is a data-weighted correction to the prior: y filtered through the kernel’s similarity geometry. The variance is prior variance minus explained variance — what the data could not pin down. Note that σn²(x) does not depend on y at all: with a fixed kernel, where you measured determines what you still don’t know, not what you measured.
Why the closed form is the whole game. One O(n³) factorization of (K + σn²I), then every candidate x costs O(n) for μ and O(n²) for σ — microseconds at BO’s n ≤ a few hundred. That is what lets the acquisition step hammer the posterior with thousands of queries per iteration. The same O(n³) is also the ceiling that motivates sparse GPs and the pretrained-transformer surrogates in the Papers section.
(Block notation: the stacked vector is Gaussian with the blocked covariance.) This step is free — it is the definition of a GP plus independent Gaussian noise on the diagonal.
a, b the two halves of a jointly Gaussian vector · μa, μb their prior means · Σab the cross-covariance block, Σbb the block for the part being conditioned on
The single most useful identity in GP land; derived by completing the square in the joint density’s exponent.
Σab = k*T, Σbb = K + σn²I, priors zero.
Prior variance minus what the data explains. Independent of y — measurement locations alone determine remaining ignorance.
At x = x₁: k = 1, so μ = y₁ and σ² = 0 — exact interpolation. Far away: k → 0, so μ → 0 and σ² → 1 — the prior reasserts itself. Both limits are the picture from the Intuition widget.