Gaussian Processes

Gaussian Processes are a probabilistic regression algorithm that consists of a generalization of multivariate Gaussian over an uncountably infinite number of variables with an infinite mean vector and an infinite by infinite covariance matrix. It can be seen as a conditional Probability of the output given the input samples. A Gaussian Process is fully defined by a mean function and a covariance function:

\[f(\mathbf{x})\sim{\mathcal{G P}}(\underbrace{m(\mathbf{x})}_{\text{mean function}},\underbrace{K(\mathbf{x},\mathbf{x}^{\prime})}_{\text{covariance function}})\]

Key Idea: In a Gaussian Process (GP), each input point corresponds to one dimension of the multivariate Gaussian distribution.

Visualization

The function values y (evaluated at some input points) are assumed to be drawn from a multivariate normal distribution:

\[p(y|\theta)=N(0,\underbrace{\Sigma}_{\text{covariance matrix}})\] \[\Sigma(x_{1},x_{2})=\underbrace{K(x_{1},x_{2})}_{\text{covariance function}}+\underbrace{I\sigma_{y}^{2}}_{\text{observation noise}}\]

The covariance / kernel function can be, for example, defined as:

$K(x_{1},x_{2})=\sigma^{2}\mathrm{e}^{-\frac{1}{2l^2}(x_{1}-x_{2})^2}$$

$l$: horizontal or length scale (smoothness)

$\sigma^2$: vertical scale

Intuition: You start with a zero-mean prior over functions. The kernel defines how related any two input points are. If they’re close, their outputs should be strongly correlated. The covariance matrix $\Sigma$ includes this kernel and some noise on the diagonal. When you observe data, the GP uses Bayes Rule to form a posterior distribution over functions.

  • The kind of kernel function is a hyperparameter
  • The final function $f(x)$ can’t be expressed in closed form!