{
  "id": "gaussian-process",
  "title": "Gaussian process",
  "lang": "en",
  "source_lang": "en",
  "summary": "A Gaussian process is a stochastic process whose every finite collection of values has a joint Gaussian distribution, specified by a mean function and a covariance kernel.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "GP",
    "Gaussian random process"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/gaussian-process/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/gaussian-process/",
      "json": "https://aiwiki.page/zh/gaussian-process.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "A Gaussian process is a stochastic process in which every finite collection of indexed random variables follows a multivariate normal distribution, allowing degenerate distributions. Its index may represent time, spatial position, or the input to a mathematical model. A Gaussian process is completely specified by its mean function and covariance function. In statistics and machine learning, it provides a way to describe uncertainty about an unknown function rather than only about a finite set of parameters. (gaussianprocess.org)"
    },
    {
      "heading": "Mathematical definition",
      "text": "Let \\(T\\) be an index set and \\(f=\\{f(x):x\\in T\\}\\) a collection of real-valued random variables. The collection is Gaussian if, for every positive integer \\(n\\) and every choice \\(x_1,\\ldots,x_n\\in T\\), the vector\n\n\\[(f(x_1),\\ldots,f(x_n))^\\top\\]\n\nhas a multivariate normal distribution. Requiring each individual value to have a normal distribution is insufficient: the joint distributions must also be Gaussian. (gaussianprocess.org)\n\nThe mean and covariance functions are\n\n\\[m(x)=\\mathbb E[f(x)],\\qquad k(x,x')=\\mathbb E[(f(x)-m(x))(f(x')-m(x'))].\\]\n\nHere \\(\\mathbb E\\) denotes expected value, while \\(k\\) describes covariance between indexed values. The notation\n\n\\[f\\sim\\mathcal{GP}(m,k)\\]\n\nimplies that every finite evaluation vector has mean entries \\(m(x_i)\\) and covariance matrix entries \\(K_{ij}=k(x_i,x_j)\\). The diagonal value \\(k(x,x)\\) is the variance at \\(x\\). (gaussianprocess.org)\n\nA valid covariance kernel is symmetric and positive semidefinite: every such finite matrix satisfies \\(a^\\top Ka\\geq0\\). These conditions ensure consistent Gaussian finite-dimensional distributions and permit construction of a process. The definition itself does not require continuous or differentiable sample paths; those properties depend on the kernel and additional regularity conditions. (gaussianprocess.org)"
    },
    {
      "heading": "Covariance kernels and examples",
      "text": "The covariance kernel encodes assumptions about variation, smoothness, periodicity, and dependence across inputs. An important example is the squared-exponential, or radial basis function kernel,\n\n\\[k(x,x')=\\sigma_f^2 \\exp\\!\\left(-\\frac{\\|x-x'\\|^2}{2\\ell^2}\\right).\\]\n\nIts amplitude \\(\\sigma_f^2\\) controls marginal variance, and its length scale \\(\\ell\\) controls how quickly dependence decays with separation. It produces a process with mean-square derivatives of every order. Matérn kernels offer a parameter controlling finite mean-square differentiability, making different roughness assumptions possible. (gaussianprocess.org)\n\nFor a constant mean and a kernel depending only on \\(x-x'\\), the resulting Gaussian process is a stationary process: translating all inputs leaves its finite-dimensional distributions unchanged. Valid kernels can also be combined through sums and products. The Wiener process is a nonstationary Gaussian example with zero mean and covariance \\(k(s,t)=\\min(s,t)\\) for nonnegative times. (gaussianprocess.org)"
    },
    {
      "heading": "Regression and prediction",
      "text": "Gaussian process regression uses Bayesian inference to update a prior distribution over functions using training data. A standard observation model is\n\n\\[y_i=f(x_i)+\\epsilon_i, \\qquad \\epsilon_i\\sim\\mathcal N(0,\\sigma_n^2),\\]\n\nwith independent noise, also independent of \\(f\\). For Gaussian noise, conditioning gives an exact Gaussian posterior distribution over the latent function. (gaussianprocess.org)\n\nLet \\(X=(x_1,\\ldots,x_n)\\), \\(m_X=(m(x_i))\\), and\n\\(C=K+\\sigma_n^2I\\), where \\(I\\) is the identity matrix. For a test input \\(x_*\\), define \\(k_*=(k(x_i,x_*))\\). Assuming \\(C\\) is invertible, the posterior mean and variance are\n\n\\[\\mu_*=m(x_*)+k_*^\\top C^{-1}(y-m_X),\\]\n\n\\[v_*=k(x_*,x_*)-k_*^\\top C^{-1}k_*.\\]\n\nJoint predictions at multiple inputs follow analogous matrix formulas. (gaussianprocess.org)\n\nThese equations distinguish uncertainty about the latent function from observation noise. A future noisy observation has predictive variance \\(v_*+\\sigma_n^2\\). A credible interval derived from this distribution is conditional on the assumed kernel, noise model, and fixed parameter values; it is not a model-independent guarantee of accuracy. (gaussianprocess.org)"
    },
    {
      "heading": "Hyperparameters and model selection",
      "text": "Kernel amplitudes, length scales, and noise levels are hyperparameters. They may be estimated by maximizing the marginal likelihood, which integrates out latent function values. With \\(r=y-m_X\\), its logarithm is\n\n\\[\\log p(y\\mid X,\\theta) =-\\tfrac12r^\\top C^{-1}r -\\tfrac12\\log\\det C -\\tfrac n2\\log(2\\pi).\\]\n\nThe quadratic term measures data fit, while the determinant term penalizes the volume of outcomes permitted by the covariance model. Their balance supports model selection without reducing the criterion to training error alone. (gaussianprocess.org)\n\nOptimization can have multiple local optima, and different parameter combinations can explain limited observations similarly. Fully Bayesian treatment instead assigns priors to hyperparameters and integrates over their posterior uncertainty. Even with Gaussian observation noise, this integration generally produces a mixture of conditional Gaussian predictions rather than a single Gaussian process posterior. (gaussianprocess.org)"
    },
    {
      "heading": "Classification and related models",
      "text": "For classification, a latent Gaussian process is mapped to class probabilities, for example through a logistic function. The resulting non-Gaussian likelihood generally prevents exact Gaussian conditioning. Methods include Laplace approximation, expectation propagation, and Markov chain Monte Carlo. The latent prior remains Gaussian, but its posterior generally does not. (gaussianprocess.org)\n\nGaussian processes also connect to linear regression: Gaussian priors on linear-model weights induce Gaussian distributions over function evaluations. Kernel formulations extend this perspective to richer feature spaces without explicitly constructing every feature, linking Gaussian process prediction to kernel methods. (gaussianprocess.org)"
    },
    {
      "heading": "Computational requirements",
      "text": "For \\(n\\) observations, conventional exact regression with a dense covariance matrix requires \\(O(n^2)\\) storage and approximately \\(O(n^3)\\) factorization time. Implementations commonly use Cholesky decomposition and linear solves rather than explicitly forming an inverse. These costs limit straightforward applications to large datasets. (gaussianprocess.org)\n\nApproximation methods include subsets of observations, reduced-rank covariance representations, inducing-variable methods, and iterative linear solvers. Some reduced-rank approaches use \\(m\\ll n\\) representative variables and have leading costs around \\(O(nm^2)\\). The computational savings depend on the construction and may alter predictive variances as well as means; approximation quality therefore concerns uncertainty estimates, not merely point predictions. (gaussianprocess.org)"
    }
  ],
  "links": [
    "stochastic-process",
    "random-variable",
    "multivariate-normal-distribution",
    "statistics",
    "machine-learning",
    "normal-distribution",
    "expected-value",
    "covariance",
    "covariance-matrix",
    "variance",
    "stationary-process",
    "wiener-process",
    "bayesian-inference",
    "prior-distribution",
    "training-data",
    "posterior-distribution",
    "identity-matrix",
    "credible-interval",
    "hyperparameter",
    "marginal-likelihood",
    "determinant",
    "logistic-function",
    "likelihood-function",
    "markov-chain-monte-carlo",
    "linear-regression",
    "kernel-method",
    "cholesky-decomposition"
  ],
  "sources": [
    {
      "title": "gaussianprocess.org/gpml/chapters/RW.pdf",
      "url": "https://gaussianprocess.org/gpml/chapters/RW.pdf"
    },
    {
      "title": "gaussianprocess.org/gpml/chapters/RW4.pdf",
      "url": "https://gaussianprocess.org/gpml/chapters/RW4.pdf"
    },
    {
      "title": "gaussianprocess.org/gpml/chapters/RW2.pdf",
      "url": "https://gaussianprocess.org/gpml/chapters/RW2.pdf"
    },
    {
      "title": "gaussianprocess.org/gpml/chapters/RW5.pdf",
      "url": "https://gaussianprocess.org/gpml/chapters/RW5.pdf"
    },
    {
      "title": "gaussianprocess.org/gpml/chapters/RW3.pdf",
      "url": "https://gaussianprocess.org/gpml/chapters/RW3.pdf"
    },
    {
      "title": "gaussianprocess.org/gpml/chapters/RW8.pdf",
      "url": "https://gaussianprocess.org/gpml/chapters/RW8.pdf"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}