Algorithm Search⌘K

Modelcore

Linear Gaussian inverse problem

y = A x + e with a Gaussian prior on x and Gaussian noise. The posterior is Gaussian in closed form, and its mean is a Tikhonov solution weighted by the two covariances.

The linear Gaussian inverse problem is the statistical model y=Ax+ey = A x + e in which the unknown xx and the noise ee are independent Gaussian vectors, x∼N(xpr,Γpr)x \sim N(x_{\mathrm{pr}}, \Gamma_{\mathrm{pr}}) and e∼N(0,Γn)e \sim N(0, \Gamma_{\mathrm{n}}), and AA is a known matrix. In this model the posterior law of xx given yy is Gaussian and has a closed form. Its mean is the minimizer of a Tikhonov functional whose weights are the inverse covariances, and its covariance does not depend on the data. It is the statistical counterpart of the deterministic setting of a regularization method, the simplest Bayesian inverse problem, and the base case for nonlinear and non-Gaussian models, which are often approximated by it locally.

The machine

The ingredients. A forward matrix A∈Rm×nA \in \mathbb{R}^{m \times n} (see forward operator), a prior mean xpr∈Rnx_{\mathrm{pr}} \in \mathbb{R}^n, a symmetric positive definite prior covariance Γpr\Gamma_{\mathrm{pr}}, and a symmetric positive definite noise covariance Γn\Gamma_{\mathrm{n}}. The unknown and the noise are independent, and the data are y=Ax+ey = A x + e.

The posterior. By Bayes' theorem the posterior density is proportional to the product of the likelihood and the prior:

π(x∣y)∝exp⁡(−12∥y−Ax∥Γn−12−12∥x−xpr∥Γpr−12),\pi(x \mid y) \propto \exp\Big(-\tfrac12 \|y - A x\|_{\Gamma_{\mathrm{n}}^{-1}}^2 - \tfrac12 \|x - x_{\mathrm{pr}}\|_{\Gamma_{\mathrm{pr}}^{-1}}^2\Big),

where ∥z∥M2=zTMz\|z\|_M^2 = z^T M z. The exponent is a quadratic in xx, so the posterior is Gaussian, N(xpost,Γpost)N(x_{\mathrm{post}}, \Gamma_{\mathrm{post}}), with

Γpost=(ATΓn−1A+Γpr−1)−1,xpost=Γpost(ATΓn−1y+Γpr−1xpr).\Gamma_{\mathrm{post}} = \big(A^T \Gamma_{\mathrm{n}}^{-1} A + \Gamma_{\mathrm{pr}}^{-1}\big)^{-1}, \qquad x_{\mathrm{post}} = \Gamma_{\mathrm{post}} \big(A^T \Gamma_{\mathrm{n}}^{-1} y + \Gamma_{\mathrm{pr}}^{-1} x_{\mathrm{pr}}\big).

To see this, expand the exponent: the quadratic term is xTΓpost−1xx^T \Gamma_{\mathrm{post}}^{-1} x and the linear term is −2xT(ATΓn−1y+Γpr−1xpr)-2 x^T (A^T \Gamma_{\mathrm{n}}^{-1} y + \Gamma_{\mathrm{pr}}^{-1} x_{\mathrm{pr}}). Completing the square gives the mean.

The gain form. The same posterior in the data space, from the Woodbury identity or from the conditional law of the joint Gaussian vector (x,y)(x, y) with a Schur complement:

xpost=xpr+K(y−Axpr),K=ΓprAT(AΓprAT+Γn)−1,x_{\mathrm{post}} = x_{\mathrm{pr}} + K (y - A x_{\mathrm{pr}}), \qquad K = \Gamma_{\mathrm{pr}} A^T (A \Gamma_{\mathrm{pr}} A^T + \Gamma_{\mathrm{n}})^{-1},
Γpost=Γpr−ΓprAT(AΓprAT+Γn)−1AΓpr.\Gamma_{\mathrm{post}} = \Gamma_{\mathrm{pr}} - \Gamma_{\mathrm{pr}} A^T (A \Gamma_{\mathrm{pr}} A^T + \Gamma_{\mathrm{n}})^{-1} A \Gamma_{\mathrm{pr}}.

The first form solves an n×nn \times n system, the second an m×mm \times m system. Use the one with the smaller size. The gain form is the update step of the Kalman filter.

The white case. With xpr=0x_{\mathrm{pr}} = 0, Γpr=γ2I\Gamma_{\mathrm{pr}} = \gamma^2 I and Γn=η2I\Gamma_{\mathrm{n}} = \eta^2 I, the posterior mean is

xpost=(ATA+αI)−1ATy,α=η2/γ2,x_{\mathrm{post}} = (A^T A + \alpha I)^{-1} A^T y, \qquad \alpha = \eta^2/\gamma^2,

the Tikhonov solution with parameter α\alpha (the page Tikhonov regularization writes λ\lambda). The parameter is the ratio of the noise variance to the prior variance.

What it counts

The model has two outputs, and each has a meaning that the deterministic setting does not give.

  • The estimate. The posterior mean xpostx_{\mathrm{post}}. Because the posterior is Gaussian, it is also the posterior mode, the MAP estimate, and the median of every coordinate.
  • The uncertainty. The posterior covariance Γpost\Gamma_{\mathrm{post}}. Its diagonal gives a standard deviation for each unknown, and its off-diagonal entries show which combinations of unknowns the data determine. If xx is drawn from the prior, the expected squared error of the posterior mean is E∥xpost−x∥2=tr⁡Γpost\mathbb{E}\|x_{\mathrm{post}} - x\|^2 = \operatorname{tr} \Gamma_{\mathrm{post}}.
  • The cost. In flops: O(mn2+n3)O(m n^2 + n^3) for the first form with a Cholesky factorization, or O(m2n+m3)O(m^2 n + m^3) for the gain form. One SVD of a whitened matrix gives the posterior for every value of α\alpha, as in the next section. For large imaging problems, Γpost\Gamma_{\mathrm{post}} is not formed. The mean is computed by an iterative solver such as the conjugate gradient method, and the variances by low-rank or sampling approximations.

The SVD view. In the white case, let A=∑iσiuiviTA = \sum_i \sigma_i u_i v_i^T. Then

xpost=∑ifiuiTyσivi,Γpost=∑iγ2(1−fi) viviT,fi=σi2σi2+α.x_{\mathrm{post}} = \sum_i f_i \frac{u_i^T y}{\sigma_i} v_i, \qquad \Gamma_{\mathrm{post}} = \sum_i \gamma^2 (1 - f_i)\, v_i v_i^T, \qquad f_i = \frac{\sigma_i^2}{\sigma_i^2 + \alpha}.

The filter factors fif_i of Tikhonov set both the estimate and the uncertainty. Along viv_i, the posterior variance is the prior variance times 1−fi1 - f_i. Where the data are informative (fif_i near 1), the variance is small. Where they are not (fif_i near 0), the posterior equals the prior: the data say nothing there, and the answer is the assumption.

Relation to other models

  • The deterministic model. There only ∥e∥≤δ\|e\| \le \delta is known, and methods are judged by the worst case over all such ee. Here ee is random with a known covariance, and methods are judged by averages. The same Tikhonov formula appears in both, with α\alpha chosen by a rule from δ\delta in one case and given by η2/γ2\eta^2/\gamma^2 in the other. White noise of fixed variance has expected norm ηm\eta\sqrt{m}, which grows with the number of data, so the two noise levels are not the same number.
  • The Bayesian inverse problem. The general Bayesian inverse problem allows a nonlinear forward map and non-Gaussian laws. Then the posterior has no closed form and is explored by optimization (for the MAP point), by a Laplace approximation around it, or by sampling. The linear Gaussian model is the exact case of the Laplace approximation.
  • Generalized least squares. If AA has full column rank and Γpr−1→0\Gamma_{\mathrm{pr}}^{-1} \to 0 (a flat prior), the posterior mean becomes the generalized least squares estimator (ATΓn−1A)−1ATΓn−1y(A^T \Gamma_{\mathrm{n}}^{-1} A)^{-1} A^T \Gamma_{\mathrm{n}}^{-1} y, and Γpost\Gamma_{\mathrm{post}} becomes its covariance. For an ill-posed problem this limit is useless, because the covariance blows up along the small singular directions.
  • Gaussian process regression and kriging. With AA the evaluation of a function at points, the gain form is the formula of Gaussian process regression and of kriging.
  • The Kalman filter. Each update step of the Kalman filter is a linear Gaussian inverse problem whose prior is the forecast.
  • Infinite dimensions. For a function xx, a white prior is not a law on L2L^2, and the prior covariance must be a trace-class operator. With that choice the formulas above hold for operators, and the posterior is well defined and depends continuously on the data.

Known results in the model

  • Closed form. The posterior is N(xpost,Γpost)N(x_{\mathrm{post}}, \Gamma_{\mathrm{post}}) with the formulas above, and the two forms agree.
  • Tikhonov is the posterior mean. xpostx_{\mathrm{post}} minimizes ∥y−Ax∥Γn−12+∥x−xpr∥Γpr−12\|y - A x\|_{\Gamma_{\mathrm{n}}^{-1}}^2 + \|x - x_{\mathrm{pr}}\|_{\Gamma_{\mathrm{pr}}^{-1}}^2. Every Tikhonov method with quadratic penalty ∥L(x−x0)∥2\|L(x - x_0)\|^2 and LL of full column rank is the posterior mean for white noise of variance η2\eta^2 and the prior N(x0,γ2(LTL)−1)N(x_0, \gamma^2 (L^T L)^{-1}), with α=η2/γ2\alpha = \eta^2/\gamma^2.
  • Best estimate in mean square. Among all estimators x^(y)\hat x(y), the posterior mean minimizes E∥x^(y)−x∥2\mathbb{E}\|\hat x(y) - x\|^2 over the joint law of xx and yy, and the minimum is tr⁡Γpost\operatorname{tr}\Gamma_{\mathrm{post}}. Among linear estimators it is optimal for any laws with these means and covariances, Gaussian or not.
  • The covariance does not depend on yy. Γpost\Gamma_{\mathrm{post}} is known before any data are taken. So the design of an experiment (which rows AA to measure) can be optimized in advance, for example by minimizing tr⁡Γpost\operatorname{tr}\Gamma_{\mathrm{post}} (A-optimal) or log⁡det⁡Γpost\log\det\Gamma_{\mathrm{post}} (D-optimal); see optimal experimental design.
  • Resolution. For a fixed true xx, E[xpost∣x]−xpr=R(x−xpr)\mathbb{E}[x_{\mathrm{post}} \mid x] - x_{\mathrm{pr}} = R (x - x_{\mathrm{pr}}) with R=KA=I−ΓpostΓpr−1R = K A = I - \Gamma_{\mathrm{post}} \Gamma_{\mathrm{pr}}^{-1}, the resolution matrix. The estimate is biased toward the prior mean wherever R≠IR \ne I.
  • The evidence. The marginal law of the data is y∼N(Axpr,AΓprAT+Γn)y \sim N(A x_{\mathrm{pr}}, A \Gamma_{\mathrm{pr}} A^T + \Gamma_{\mathrm{n}}). Maximizing it over γ\gamma or η\eta is one way to choose α\alpha from the data (empirical Bayes).

A worked example. Let A=(1011)A = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}, xpr=0x_{\mathrm{pr}} = 0, Γpr=I\Gamma_{\mathrm{pr}} = I, Γn=I\Gamma_{\mathrm{n}} = I and y=(1,2)y = (1, 2). Then ATA+I=(3112)A^T A + I = \begin{pmatrix} 3 & 1 \\ 1 & 2 \end{pmatrix} has determinant 55, so

Γpost=(2/5−1/5−1/53/5),ATy=(3,2),xpost=(4/5, 3/5).\Gamma_{\mathrm{post}} = \begin{pmatrix} 2/5 & -1/5 \\ -1/5 & 3/5 \end{pmatrix}, \qquad A^T y = (3, 2), \qquad x_{\mathrm{post}} = (4/5,\ 3/5).

This is the Tikhonov solution with α=1\alpha = 1. The gain form gives the same: AAT+I=(2113)A A^T + I = \begin{pmatrix} 2 & 1 \\ 1 & 3 \end{pmatrix} has inverse 15(3−1−12)\frac15\begin{pmatrix} 3 & -1 \\ -1 & 2 \end{pmatrix}, K=15(21−12)K = \frac15\begin{pmatrix} 2 & 1 \\ -1 & 2 \end{pmatrix} and Ky=(4/5,3/5)K y = (4/5, 3/5). The posterior standard deviations are 0.4=0.632\sqrt{0.4} = 0.632 and 0.6=0.775\sqrt{0.6} = 0.775, both less than the prior value 11, and the correlation is −0.2/0.24=−0.408-0.2/\sqrt{0.24} = -0.408: the data fix the sum x1+x2x_1 + x_2 better than each part. The expected squared error falls from tr⁡Γpr=2\operatorname{tr}\Gamma_{\mathrm{pr}} = 2 to tr⁡Γpost=1\operatorname{tr}\Gamma_{\mathrm{post}} = 1, and the resolution matrix is I−Γpost=(3/51/51/52/5)I - \Gamma_{\mathrm{post}} = \begin{pmatrix} 3/5 & 1/5 \\ 1/5 & 2/5 \end{pmatrix}, with trace 11.

References

  1. Jari Kaipio and Erkki Somersalo, Statistical and Computational Inverse Problems, Springer, 2005, Chapter 3, Statistical Inversion Theory (Gaussian priors and noise, the posterior mean and covariance)
  2. Albert Tarantola, Inverse Problem Theory and Methods for Model Parameter Estimation, SIAM, 2005, Chapter 3, The Least-Squares Criterion (Gaussian prior and data, the posterior mean and covariance)
  3. William Menke, Geophysical Data Analysis, Discrete Inverse Theory, fourth edition, Academic Press, 2018, the chapters Solution of the Linear Gaussian Inverse Problem (the length method, generalized inverses and maximum likelihood viewpoints)
  4. Per Christian Hansen, Discrete Inverse Problems, Insight and Algorithms, SIAM, 2010, Chapter 4, Regularization Methods (Tikhonov regularization and its filter factors)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/Q5XXTM/text.yaml