HOME

TheInfoList



OR:

In
probability theory Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set ...
and
statistics Statistics (from German: '' Statistik'', "description of a state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a scientific, indust ...
, a Gaussian process is a
stochastic process In probability theory and related fields, a stochastic () or random process is a mathematical object usually defined as a family of random variables. Stochastic processes are widely used as mathematical models of systems and phenomena that ap ...
(a collection of random variables indexed by time or space), such that every finite collection of those random variables has a multivariate normal distribution, i.e. every finite linear combination of them is normally distributed. The distribution of a Gaussian process is the joint distribution of all those (infinitely many) random variables, and as such, it is a distribution over functions with a continuous domain, e.g. time or space. The concept of Gaussian processes is named after Carl Friedrich Gauss because it is based on the notion of the Gaussian distribution (
normal distribution In statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is : f(x) = \frac e^ The parameter \mu ...
). Gaussian processes can be seen as an infinite-dimensional generalization of multivariate normal distributions. Gaussian processes are useful in
statistical model A statistical model is a mathematical model that embodies a set of statistical assumptions concerning the generation of sample data (and similar data from a larger population). A statistical model represents, often in considerably idealized form ...
ling, benefiting from properties inherited from the normal distribution. For example, if a random process is modelled as a Gaussian process, the distributions of various derived quantities can be obtained explicitly. Such quantities include the average value of the process over a range of times and the error in estimating the average using sample values at a small set of times. While exact models often scale poorly as the amount of data increases, multiple approximation methods have been developed which often retain good accuracy while drastically reducing computation time.


Definition

A time continuous
stochastic process In probability theory and related fields, a stochastic () or random process is a mathematical object usually defined as a family of random variables. Stochastic processes are widely used as mathematical models of systems and phenomena that ap ...
\left\ is Gaussian
if and only if In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false. The connective is bic ...
for every finite set of indices t_1,\ldots,t_k in the index set T \mathbf_ = (X_, \ldots, X_) is a multivariate Gaussian random variable. That is the same as saying every linear combination of (X_, \ldots, X_) has a univariate normal (or Gaussian) distribution. Using characteristic functions of random variables, the Gaussian property can be formulated as follows: \left\ is Gaussian if and only if, for every finite set of indices t_1,\ldots,t_k, there are real-valued \sigma_, \mu_\ell with \sigma_ > 0 such that the following equality holds for all s_1,s_2,\ldots,s_k\in\mathbb \operatorname\left(\exp\left(i \ \sum_^k s_\ell \ \mathbf_\right)\right) = \exp \left(-\frac \, \sum_ \sigma_ s_\ell s_j + i \sum_\ell \mu_\ell s_\ell\right), where i denotes the
imaginary unit The imaginary unit or unit imaginary number () is a solution to the quadratic equation x^2+1=0. Although there is no real number with this property, can be used to extend the real numbers to what are called complex numbers, using addition an ...
such that i^2 =-1. The numbers \sigma_ and \mu_\ell can be shown to be the
covariance In probability theory and statistics, covariance is a measure of the joint variability of two random variables. If the greater values of one variable mainly correspond with the greater values of the other variable, and the same holds for the le ...
s and means of the variables in the process.


Variance

The variance of a Gaussian process is finite at any time t, formally \operatorname (t)= \operatorname\left X(t)-\operatorname ^2\right< \infty \quad \text t \in T.


Stationarity

For general stochastic processes strict-sense stationarity implies wide-sense stationarity but not every wide-sense stationary stochastic process is strict-sense stationary. However, for a Gaussian stochastic process the two concepts are equivalent. A Gaussian stochastic process is strict-sense stationary if, and only if, it is wide-sense stationary.


Example

There is an explicit representation for stationary Gaussian processes. A simple example of this representation is X_t = \cos(at) \xi_1 + \sin(at) \xi_2 where \xi_1 and \xi_2 are independent random variables with the standard normal distribution.


Covariance functions

A key fact of Gaussian processes is that they can be completely defined by their second-order statistics. Thus, if a Gaussian process is assumed to have mean zero, defining the
covariance function In probability theory and statistics, the covariance function describes how much two random variables change together (their ''covariance'') with varying spatial or temporal separation. For a random field or stochastic process ''Z''(''x'') on a doma ...
completely defines the process' behaviour. Importantly the non-negative definiteness of this function enables its spectral decomposition using the Karhunen–Loève expansion. Basic aspects that can be defined through the covariance function are the process' stationarity,
isotropy Isotropy is uniformity in all orientations; it is derived . Precise definitions depend on the subject area. Exceptions, or inequalities, are frequently indicated by the prefix ' or ', hence '' anisotropy''. ''Anisotropy'' is also used to describ ...
, smoothness and
periodicity Periodicity or periodic may refer to: Mathematics * Bott periodicity theorem, addresses Bott periodicity: a modulo-8 recurrence relation in the homotopy groups of classical groups * Periodic function, a function whose output contains values tha ...
. Stationarity refers to the process' behaviour regarding the separation of any two points x and x'. If the process is stationary, the covariance function depends only on x-x'. For example, the Ornstein–Uhlenbeck process is stationary. If the process depends only on , x-x', , the Euclidean distance (not the direction) between x and x', then the process is considered isotropic. A process that is concurrently stationary and isotropic is considered to be homogeneous; in practice these properties reflect the differences (or rather the lack of them) in the behaviour of the process given the location of the observer. Ultimately Gaussian processes translate as taking priors on functions and the smoothness of these priors can be induced by the covariance function. If we expect that for "near-by" input points x and x' their corresponding output points y and y' to be "near-by" also, then the assumption of continuity is present. If we wish to allow for significant displacement then we might choose a rougher covariance function. Extreme examples of the behaviour is the Ornstein–Uhlenbeck covariance function and the squared exponential where the former is never differentiable and the latter infinitely differentiable. Periodicity refers to inducing periodic patterns within the behaviour of the process. Formally, this is achieved by mapping the input x to a two dimensional vector u(x) = \left( \cos(x), \sin(x) \right).


Usual covariance functions

There are a number of common covariance functions: *Constant : K_\operatorname(x,x') = C *Linear: K_\operatorname(x,x') = x^\mathsf x' *white Gaussian noise: K_\operatorname(x,x') = \sigma^2 \delta_ *Squared exponential: K_\operatorname(x,x') = \exp \left(-\frac \right) *Ornstein–Uhlenbeck: K_\operatorname(x,x') = \exp \left(-\frac \ell \right) *Matérn: K_\operatorname(x,x') = \frac \left(\frac \right)^\nu K_\nu \left(\frac \right) *Periodic: K_\operatorname(x,x') = \exp\left(-\frac \right) *Rational quadratic: K_\operatorname(x,x') = \left(1+, d, ^2\right)^, \quad \alpha \geq 0 Here d = x- x'. The parameter \ell is the characteristic length-scale of the process (practically, "how close" two points x and x' have to be to influence each other significantly), ''\delta'' is the Kronecker delta and \sigma the standard deviation of the noise fluctuations. Moreover, K_\nu is the
modified Bessel function Bessel functions, first defined by the mathematician Daniel Bernoulli and then generalized by Friedrich Bessel, are canonical solutions of Bessel's differential equation x^2 \frac + x \frac + \left(x^2 - \alpha^2 \right)y = 0 for an arbitrary ...
of order \nu and \Gamma(\nu) is the
gamma function In mathematics, the gamma function (represented by , the capital letter gamma from the Greek alphabet) is one commonly used extension of the factorial function to complex numbers. The gamma function is defined for all complex numbers excep ...
evaluated at \nu. Importantly, a complicated covariance function can be defined as a linear combination of other simpler covariance functions in order to incorporate different insights about the data-set at hand. Clearly, the inferential results are dependent on the values of the hyperparameters \theta (e.g. \ell and \sigma) defining the model's behaviour. A popular choice for \theta is to provide '' maximum a posteriori'' (MAP) estimates of it with some chosen prior. If the prior is very near uniform, this is the same as maximizing the marginal likelihood of the process; the marginalization being done over the observed process values y. This approach is also known as ''maximum likelihood II'', ''evidence maximization'', or ''
empirical Bayes Empirical Bayes methods are procedures for statistical inference in which the prior probability distribution is estimated from the data. This approach stands in contrast to standard Bayesian methods, for which the prior distribution is fixed b ...
''.


Continuity

For a Gaussian process, continuity in probability is equivalent to mean-square continuity, and continuity with probability one is equivalent to sample continuity. The latter implies, but is not implied by, continuity in probability. Continuity in probability holds if and only if the mean and autocovariance are continuous functions. In contrast, sample continuity was challenging even for stationary Gaussian processes (as probably noted first by
Andrey Kolmogorov Andrey Nikolaevich Kolmogorov ( rus, Андре́й Никола́евич Колмого́ров, p=ɐnˈdrʲej nʲɪkɐˈlajɪvʲɪtɕ kəlmɐˈɡorəf, a=Ru-Andrey Nikolaevich Kolmogorov.ogg, 25 April 1903 – 20 October 1987) was a Sovi ...
), and more challenging for more general processes. As usual, by a sample continuous process one means a process that admits a sample continuous modification.


Stationary case

For a stationary Gaussian process X=(X_t)_, some conditions on its spectrum are sufficient for sample continuity, but fail to be necessary. A necessary and sufficient condition, sometimes called Dudley–Fernique theorem, involves the function \sigma defined by \sigma(h) = \sqrt (the right-hand side does not depend on t due to stationarity). Continuity of X in probability is equivalent to continuity of \sigma at 0. When convergence of \sigma(h) to 0 (as h\to 0) is too slow, sample continuity of X may fail. Convergence of the following integrals matters: I(\sigma) = \int_0^1 \frac \, dh = \int_0^\infty 2\sigma( e^) \, dx , these two integrals being equal according to
integration by substitution In calculus, integration by substitution, also known as ''u''-substitution, reverse chain rule or change of variables, is a method for evaluating integrals and antiderivatives. It is the counterpart to the chain rule for differentiation, and ...
h = e^, x = \sqrt . The first integrand need not be bounded as h\to 0+, thus the integral may converge (I(\sigma)<\infty) or diverge (I(\sigma)=\infty). Taking for example \sigma( e^) = \tfrac for large x, that is, \sigma(h) = (\log(1/h))^ for small h, one obtains I(\sigma)<\infty when a>1, and I(\sigma)=\infty when 0 < a\le 1. In these two cases the function \sigma is increasing on [0,\infty), but generally it is not. Moreover, the condition does not follow from continuity of \sigma and the evident relations \sigma(h) \ge 0 (for all h) and \sigma(0) = 0. Some history. Sufficiency was announced by Xavier Fernique in 1964, but the first proof was published by Richard M. Dudley in 1967. Necessity was proved by Michael B. Marcus and Lawrence Shepp in 1970. There exist sample continuous processes X such that I(\sigma)=\infty; they violate condition (*). An example found by Marcus and Shepp is a random lacunary Fourier series X_t = \sum_^\infty c_n ( \xi_n \cos \lambda_n t + \eta_n \sin \lambda_n t ) , where \xi_1,\eta_1,\xi_2,\eta_2,\dots are independent random variables with standard normal distribution; frequencies 0<\lambda_1<\lambda_2<\dots are a fast growing sequence; and coefficients c_n>0 satisfy \sum_n c_n < \infty. The latter relation implies \mathbb E \sum_n c_n ( , \xi_n, + , \eta_n, ) = \sum_n c_n \mathbb E ( , \xi_n, + , \eta_n, ) = \text \cdot \sum_n c_n < \infty, whence \sum_n c_n ( , \xi_n, + , \eta_n, ) < \infty almost surely, which ensures uniform convergence of the Fourier series almost surely, and sample continuity of X. Its autocovariation function \mathbb E X_t X_ = \sum_^\infty c_n^2 \cos \lambda_n h is nowhere monotone (see the picture), as well as the corresponding function \sigma, \sigma(h) = \sqrt = 2 \sqrt .


Brownian motion as the integral of Gaussian processes

A
Wiener process In mathematics, the Wiener process is a real-valued continuous-time stochastic process named in honor of American mathematician Norbert Wiener for his investigations on the mathematical properties of the one-dimensional Brownian motion. It is ...
(also known as Brownian motion) is the integral of a white noise generalized Gaussian process. It is not stationary, but it has
stationary increments In probability theory, a stochastic process is said to have stationary increments if its change only depends on the time span of observation, but not on the time when the observation was started. Many large families of stochastic processes have stat ...
. The Ornstein–Uhlenbeck process is a stationary Gaussian process. The
Brownian bridge A Brownian bridge is a continuous-time stochastic process ''B''(''t'') whose probability distribution is the conditional probability distribution of a standard Wiener process ''W''(''t'') (a mathematical model of Brownian motion) subject to the co ...
is (like the Ornstein–Uhlenbeck process) an example of a Gaussian process whose increments are not
independent Independent or Independents may refer to: Arts, entertainment, and media Artist groups * Independents (artist group), a group of modernist painters based in the New Hope, Pennsylvania, area of the United States during the early 1930s * Independe ...
. The fractional Brownian motion is a Gaussian process whose covariance function is a generalisation of that of the Wiener process.


Driscoll's zero-one law

Driscoll's zero-one law is a result characterizing the sample functions generated by a Gaussian process. Let f be a mean-zero Gaussian process \left\ with non-negative definite covariance function K. Let \mathcal(R) be a Reproducing kernel Hilbert space with positive definite kernel R. Then \lim_ \operatorname _n R_n^< \infty, where K_n and R_n are the covariance matrices of all possible pairs of n points, implies \Pr \in \mathcal(R)= 1. Moreover, \lim_ \operatorname _n R_n^= \infty implies \Pr \in \mathcal(R)= 0. This has significant implications when K = R, as \lim_ \operatorname _n R_n^= \lim_\operatorname = \lim_ n = \infty. As such, almost all sample paths of a mean-zero Gaussian process with positive definite kernel K will lie outside of the Hilbert space \mathcal(K).


Linearly constrained Gaussian processes

For many applications of interest some pre-existing knowledge about the system at hand is already given. Consider e.g. the case where the output of the Gaussian process corresponds to a magnetic field; here, the real magnetic field is bound by Maxwell's equations and a way to incorporate this constraint into the Gaussian process formalism would be desirable as this would likely improve the accuracy of the algorithm. A method on how to incorporate linear constraints into Gaussian processes already exists: Consider the (vector valued) output function f(x) which is known to obey the linear constraint (i.e. \mathcal_X is a linear operator) \mathcal_X(f(x)) = 0. Then the constraint \mathcal_X can be fulfilled by choosing f(x) = \mathcal_X(g(x)), where g(x) \sim \mathcal(\mu_g, K_g) is modelled as a Gaussian process, and finding \mathcal_X such that \mathcal_X(\mathcal_X(g)) = 0 \qquad \forall g. Given \mathcal_X and using the fact that Gaussian processes are closed under linear transformations, the Gaussian process for f obeying constraint \mathcal_X becomes f(x) = \mathcal_X g \sim \mathcal ( \mathcal_X \mu_g, \mathcal_X K_g \mathcal_^\mathsf ). Hence, linear constraints can be encoded into the mean and covariance function of a Gaussian process.


Applications

A Gaussian process can be used as a
prior probability distribution In Bayesian statistical inference, a prior probability distribution, often simply called the prior, of an uncertain quantity is the probability distribution that would express one's beliefs about this quantity before some evidence is taken in ...
over functions in
Bayesian inference Bayesian inference is a method of statistical inference in which Bayes' theorem is used to update the probability for a hypothesis as more evidence or information becomes available. Bayesian inference is an important technique in statistics, and ...
. Given any set of ''N'' points in the desired domain of your functions, take a multivariate Gaussian whose covariance
matrix Matrix most commonly refers to: * ''The Matrix'' (franchise), an American media franchise ** '' The Matrix'', a 1999 science-fiction action film ** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchi ...
parameter is the Gram matrix of your ''N'' points with some desired kernel, and
sample Sample or samples may refer to: Base meaning * Sample (statistics), a subset of a population – complete data set * Sample (signal), a digital discrete sample of a continuous analog signal * Sample (material), a specimen or small quantity of ...
from that Gaussian. For solution of the multi-output prediction problem, Gaussian process regression for vector-valued function was developed. In this method, a 'big' covariance is constructed, which describes the correlations between all the input and output variables taken in ''N'' points in the desired domain. This approach was elaborated in detail for the matrix-valued Gaussian processes and generalised to processes with 'heavier tails' like Student-t processes. Inference of continuous values with a Gaussian process prior is known as Gaussian process regression, or kriging; extending Gaussian process regression to multiple target variables is known as ''cokriging''. Gaussian processes are thus useful as a powerful non-linear multivariate interpolation tool. Gaussian processes are also commonly used to tackle numerical analysis problems such as numerical integration, solving differential equations, or optimisation in the field of probabilistic numerics. Gaussian processes can also be used in the context of mixture of experts models, for example. The underlying rationale of such a learning framework consists in the assumption that a given mapping cannot be well captured by a single Gaussian process model. Instead, the observation space is divided into subsets, each of which is characterized by a different mapping function; each of these is learned via a different Gaussian process component in the postulated mixture.


Gaussian process prediction, or Kriging

When concerned with a general Gaussian process regression problem (Kriging), it is assumed that for a Gaussian process f observed at coordinates x, the vector of values is just one sample from a multivariate Gaussian distribution of dimension equal to number of observed coordinates . Therefore, under the assumption of a zero-mean distribution, , where is the covariance matrix between all possible pairs for a given set of hyperparameters ''θ''. As such the log marginal likelihood is: \log p(f(x')\mid\theta,x) = -\frac \left(f(x)^\mathsf K(\theta,x,x')^ f(x') + \log \det(K(\theta,x,x')) + n \log 2\pi \right) and maximizing this marginal likelihood towards provides the complete specification of the Gaussian process . One can briefly note at this point that the first term corresponds to a penalty term for a model's failure to fit observed values and the second term to a penalty term that increases proportionally to a model's complexity. Having specified , making predictions about unobserved values at coordinates is then only a matter of drawing samples from the predictive distribution p(y^*\mid x^*,f(x),x) = N(y^*\mid A,B) where the posterior mean estimate is defined as A = K(\theta,x^*,x) K(\theta,x,x')^ f(x) and the posterior variance estimate ''B'' is defined as: B = K(\theta,x^*,x^*) - K(\theta,x^*,x) K(\theta,x,x')^ K(\theta,x^*,x)^\mathsf where is the covariance between the new coordinate of estimation ''x''* and all other observed coordinates ''x'' for a given hyperparameter vector , and are defined as before and is the variance at point as dictated by . It is important to note that practically the posterior mean estimate of (the "point estimate") is just a linear combination of the observations ; in a similar manner the variance of is actually independent of the observations . A known bottleneck in Gaussian process prediction is that the computational complexity of inference and likelihood evaluation is cubic in the number of points , ''x'', , and as such can become unfeasible for larger data sets. Works on sparse Gaussian processes, that usually are based on the idea of building a ''representative set'' for the given process ''f'', try to circumvent this issue. The kriging method can be used in the latent level of a nonlinear mixed-effects model for a spatial functional prediction: this technique is called the latent kriging. Often, the covariance has the form K(\theta, x,x') = \frac \tilde(\theta,x,x'), where \sigma^2 is a scaling parameter. Examples are the Matérn class covariance functions. If this scaling parameter \sigma^2 is either known or unknown (i.e. must be marginalized), then the posterior probability, p(\theta \mid D), i.e. the probability for the hyperparameters \theta given a set of data pairs D of observations of x and f(x), admits an analytical expression.


Bayesian neural networks as Gaussian processes

Bayesian neural networks are a particular type of
Bayesian network A Bayesian network (also known as a Bayes network, Bayes net, belief network, or decision network) is a probabilistic graphical model that represents a set of variables and their conditional dependencies via a directed acyclic graph (DAG). Ba ...
that results from treating
deep learning Deep learning (also known as deep structured learning) is part of a broader family of machine learning methods based on artificial neural networks with representation learning. Learning can be supervised, semi-supervised or unsupervised. ...
and
artificial neural network Artificial neural networks (ANNs), usually simply called neural networks (NNs) or neural nets, are computing systems inspired by the biological neural networks that constitute animal brains. An ANN is based on a collection of connected unit ...
models probabilistically, and assigning a
prior distribution In Bayesian statistical inference, a prior probability distribution, often simply called the prior, of an uncertain quantity is the probability distribution that would express one's beliefs about this quantity before some evidence is taken into ...
to their parameters. Computation in artificial neural networks is usually organized into sequential layers of artificial neurons. The number of neurons in a layer is called the layer width. As layer width grows large, many Bayesian neural networks reduce to a Gaussian process with a closed form compositional kernel. This Gaussian process is called the Neural Network Gaussian Process (NNGP). It allows predictions from Bayesian neural networks to be more efficiently evaluated, and provides an analytic tool to understand
deep learning Deep learning (also known as deep structured learning) is part of a broader family of machine learning methods based on artificial neural networks with representation learning. Learning can be supervised, semi-supervised or unsupervised. ...
models.


Computational issues

In practical applications, Gaussian process models are often evaluated on a grid leading to multivariate normal distributions. Using these models for prediction or parameter estimation using maximum likelihood requires evaluating a multivariate Gaussian density, which involves calculating the determinant and the inverse of the covariance matrix. Both of these operations have cubic computational complexity which means that even for grids of modest sizes, both operations can have a prohibitive computational cost. This drawback led to the development of multiple approximation methods.


See also

* Bayes linear statistics * Bayesian interpretation of regularization * Kriging * Gaussian free field * Gauss–Markov process * Gradient-enhanced kriging (GEK) * Student's t-process


References


External links


The Gaussian Processes Web Site, including the text of Rasmussen and Williams' Gaussian Processes for Machine Learning

A gentle introduction to Gaussian processes

A Review of Gaussian Random Fields and Correlation Functions

Efficient Reinforcement Learning using Gaussian Processes


Software


GPML: A comprehensive Matlab toolbox for GP regression and classification

STK: a Small (Matlab/Octave) Toolbox for Kriging and GP modeling

Kriging module in UQLab framework (Matlab)

Matlab/Octave function for stationary Gaussian fields

Yelp MOE – A black box optimization engine using Gaussian process learning

ooDACE
– A flexible object-oriented Kriging Matlab toolbox.
GPstuff – Gaussian process toolbox for Matlab and Octave

GPy – A Gaussian processes framework in Python

GSTools - A geostatistical toolbox, including Gaussian process regression, written in Python

Interactive Gaussian process regression demo

Basic Gaussian process library written in C++11

scikit-learn
– A machine learning library for Python which includes Gaussian process regression and classification

- The Kriging toolKit (KriKit) is developed at the Institute of Bio- and Geosciences 1 (IBG-1) of Forschungszentrum Jülich (FZJ)


Video tutorials


Gaussian Process Basics by David MacKay

Learning with Gaussian Processes by Carl Edward Rasmussen

Bayesian inference and Gaussian processes by Carl Edward Rasmussen
{{DEFAULTSORT:Gaussian Process Stochastic processes Kernel methods for machine learning Nonparametric Bayesian statistics Normal distribution