Schur Complement for Gaussian Processes

Chapter 10 Linear algebra

Chapter 10: Matrix Block Partitioning — GP App

From the book

Chapter 10: Matrix Block Partitioning. In the chapter mind map this icon labels GP App: Schur Complement in Gaussian Processes. The discussion below is excerpted and lightly edited from § Theorem: Schur Complement in Mathematics for AI and Machine Learning.

where $A_{00} \in \mathbb{R}^{m \times m}$ is invertible. The Schur complement of $A_{00}$ in $A$ is defined as

The bottom blocks follow similarly. Subtracting $A_{10} A_{00}^{-1}$ times the first block row from the second, which does not change the determinant, leaves a block upper triangular matrix with diagonal blocks $A_{00}$ and $S$, so $\det A = \det A_{00} \det S$: with $A_{00}$ invertible, $A$ is invertible exactly when $S$ is.

the book figure demonstrates the Schur complement in the context of Gaussian process regression. The plot shows training observations (red points) and the posterior mean prediction (blue line) with a 95% confidence interval (shaded blue region). In this formulation, the posterior variance at any test point is exactly the Schur complement $k_{} - \mathbf{k}_^\top K^{-1} \mathbf{k}_$, where $k_{}$ is the prior variance, $K$ is the covariance matrix of training points, and $\mathbf{k}_*$ is the covariance between training and test points.

The shaded region represents the reduction in uncertainty (information gain) compared to the prior: near training points, the variance is small (high confidence), while far from training data, the variance approaches the prior variance. The prediction comes from the same conditional probability computation: the mean is $\mu_ = \mathbf k_^\top K^{-1} \mathbf f$, where $\mathbf f$ holds the observed values at the training points. With independent Gaussian noise of variance $\sigma^2$ on each observation, both formulas hold with $K + \sigma^2 I$ in place of $K$, and $\mu_*$ is then the kernel ridge regression of the matrix chapter with $\lambda = \sigma^2$. One Cholesky factorization of $K + \sigma^2 I$, costing $O(n^3)$ for $n$ training points, serves every test point: each prediction then costs $O(n)$ for the mean and $O(n^2)$ for the variance.

What this drawing shows

What you see. Represents block Gaussian conditioning where a Schur complement gives posterior covariance or marginal uncertainty.

In the mind map. Chapter 10 — GP App: Schur Complement in Gaussian Processes. See From the book above for definitions, figures, and worked examples.

Where to read next

Open Chapter 10 companion →

Read the full definitions, figures, and worked examples in Chapter 10: Matrix Block Partitioning — see the mind-map node GP App: Schur Complement in Gaussian Processes.

PNG Icons

Textless (256×256 px)
PNG 256×256 px Copy PNG URL
Textless (64×64 px)
PNG 64×64 px Copy PNG URL
Textless (32×32 px)
PNG 32×32 px Copy PNG URL

Animated GIFs