Gaussian process regression Created 2026-10-14 Updated 2026-11-05
Gaussian process regression estimates an unknown function by assigning its values a Gaussian process law, then conditioning on observed values, often with independent Gaussian noise. The covariance function expresses the proposed relation between nearby inputs; the conditional multivariate normal distribution gives the resulting Gaussian process regression posterior. Its conditional mean provides a prediction and its conditional variance quantifies uncertainty under the chosen model. The index set can represent spatial locations or other inputs as well as time.
Gaussian process regression posterior Created 2026-09-24 Updated 2026-11-05
Let have a zero-mean Gaussian process prior with covariance function . Observe with independent normal noise of variance , independent of . Write , and . The Gaussian process regression posterior at a new input is
This is the Conditional multivariate normal distribution applied to the joint prior of and . The kernel matrix is positive semidefinite; positive observation-noise variance makes the matrix being inverted positive definite. The subtracted quadratic form is the uncertainty removed by the observations. The variance of a new noisy observation is , which differs from the latent function variance .[ref]
For one observation at the prediction input with prior variance , and . The posterior interpolates between trusting a precise observation and retaining a noisy prior prediction.
Use only the first observations to define
Thus the full noisy covariance matrix is and the full cross-covariance vector is . Set
The scalar is the Schur complement of . Substituting the block inverse into the Gaussian process regression posterior variance gives
Consequently,
and
For interpretation, after the first observations the remaining covariance between and is , while the conditional variance of the new noisy observation is . Thus the reduction is the squared remaining covariance divided by the remaining observation variance.
At the fitted hyperparameters, define , , and , with the matrices formed by pairwise kernel evaluations. Conditional independence of observation noise and future latent values gives
The residual has zero covariance with , so the joint normal law makes it independent of . This derives the conditional multivariate normal distribution and the Gaussian process regression posterior:
The covariance is a Schur complement and is positive semidefinite. When nonsingular, its joint density is . Repeated phases can make it singular, in which case the displayed normal law is interpreted on its support.
This predicts the true latent light curve, so no future measurement variance is added. For noisy future observations, add their independent noise covariance to . Fixing the hyperparameters omits their estimation uncertainty, as requested; integrating over their posterior would add it. The periodic model extrapolates by phase, even though all prediction times follow the observed times.
At the fitted parameters, let and . For prediction times define
The microlensing processes and measurement errors contribute no cross-covariance with the latent quasar light curve. The Gaussian process regression posterior is therefore
The requested pointwise posterior variances are the diagonal entries of the latter matrix.
The vector is Jointly Gaussian. Assuming , Gaussian conditional independence gives
Thus the required condition is . Under it, conditioning on supplies no further information after , and the Gaussian process regression posterior is
Both the conditional expectation and conditional variance depend only on ; neither contains or .
Let have entries , let have entries , and let . The Gaussian process prior and independent Gaussian noise imply
Applying the conditional multivariate normal distribution gives the Gaussian process regression posterior
where