Skip to main content
QUICK REVIEW

[Paper Review] Data Analysis Recipes: Products of multivariate Gaussians in Bayesian inferences

David W. Hogg, Adrian M. Price-Whelan|arXiv (Cornell University)|May 28, 2020
Particle physics theoretical and experimental studiesPhysics and Astronomy9 references5 citations
TL;DR

This paper presents a closed-form analytical solution for marginalizing linear parameters in Bayesian inference when both the likelihood and prior are multivariate Gaussians with linear mean dependence. By exploiting the property that the product of two Gaussians is another Gaussian, the method refactors the joint posterior into a marginalized evidence and a posterior, enabling faster, more precise inference in linear-Gaussian models common in astronomy and physics.

ABSTRACT

A product of two Gaussians (or normal distributions) is another Gaussian. That's a valuable and useful fact! Here we use it to derive a refactoring of a common product of multivariate Gaussians: The product of a Gaussian likelihood times a Gaussian prior, where some or all of those parameters enter the likelihood only in the mean and only linearly. That is, a linear, Gaussian, Bayesian model. This product of a likelihood times a prior pdf can be refactored into a product of a marginalized likelihood (or a Bayesian evidence) times a posterior pdf, where (in this case) both of these are also Gaussian. The means and variance tensors of the refactored Gaussians are straightforward to obtain as closed-form expressions; here we deliver these expressions, with discussion. The closed-form expressions can be used to speed up and improve the precision of inferences that contain linear parameters with Gaussian priors. We connect these methods to inferences that arise frequently in physics and astronomy. If all you want is the answer, the question is posed and answered at the beginning of Section 3. We show two toy examples, in the form of worked exercises, in Section 4. The solutions, discussion, and exercises in this Note are aimed at someone who is already familiar with the basic ideas of Bayesian inference and probability.

Motivation & Objective

  • To derive a closed-form solution for marginalizing linear parameters in linear-Gaussian Bayesian models.
  • To improve computational efficiency and numerical precision in Bayesian inferences involving linear parameters with Gaussian priors.
  • To provide a practical, analytically tractable method applicable to real-world problems in astrophysics and data science.
  • To demonstrate that marginalization can be achieved without numerical integration when likelihood and prior are jointly Gaussian and linear in parameters.
  • To support inference workflows in high-dimensional parameter spaces by reducing computational burden through analytical factorization.

Proposed method

  • Leverages the mathematical property that the product of two multivariate Gaussians is another Gaussian.
  • Assumes the likelihood is Gaussian in data with mean linear in parameters (via design matrix M), and the prior is Gaussian in parameters with mean μ and covariance Λ.
  • Applies Bayes' theorem to refactor the joint posterior as a product of marginalized evidence and posterior, both analytically tractable Gaussians.
  • Derives closed-form expressions for the mean and covariance of the marginalized evidence and posterior distributions.
  • Uses coordinate-free determinant and quadratic form expressions in the Gaussian pdf to avoid explicit dimension dependence.
  • Validates the method through two worked examples in linear regression and radial velocity modeling, showing computational speedups and numerical stability.

Experimental results

Research questions

  • RQ1Can the marginalization of linear parameters in a linear-Gaussian Bayesian model be performed without numerical integration?
  • RQ2What are the closed-form expressions for the mean and covariance of the marginalized evidence and posterior when both likelihood and prior are multivariate Gaussians?
  • RQ3How does this analytical approach improve computational efficiency and numerical precision in Bayesian inference compared to standard MCMC or quadrature?
  • RQ4In what astrophysical contexts does this method provide the most significant performance gains?
  • RQ5Can this method be generalized to models with hierarchical or hyper-prior structures on nonlinear parameters?

Key findings

  • The product of a multivariate Gaussian likelihood and a multivariate Gaussian prior, with linear mean dependence on parameters, results in a joint posterior that can be analytically factored into a marginalized evidence and a posterior, both of which are also multivariate Gaussians.
  • The mean and covariance of the marginalized evidence and posterior are derived in closed form, enabling direct computation without integration or sampling.
  • The method significantly improves computational speed and numerical precision in inference tasks involving linear parameters with Gaussian priors, especially in high-dimensional settings.
  • The approach is validated in two practical examples: a linear regression problem and radial velocity modeling of binary star systems, where it accelerates inference and avoids numerical instabilities.
  • The derived expressions are dimension-agnostic, using coordinate-free forms of the Gaussian pdf that avoid explicit dependence on data or parameter dimensionality.
  • The method enables efficient hierarchical inference by decoupling the marginalization of nuisance linear parameters from the inference on nonlinear hyperparameters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.