Lably
Skip to content

Marginal likelihood

In Bayesian probability theory

  • 2 min read
  • 2 chapters

Related on Lably

Through Likelihood function, Integral and Sampling (statistics)

Due to the integration over the parameter space, the marginal likelihood does not directly depend upon the parameters. If the focus is not on model comparison, the marginal likelihood is simply the normalizing constant that ensures that the posterior is a proper probability. It is related to the partition function in statistical mechanics.

Concept

Given a set of independent identically distributed data points X=(x1,…,xn), where xi∼p(x|θ) according to some probability distribution parameterized by θ, where θ itself is a random variable described by a distribution, i.e. θ∼p(θ∣α), the marginal likelihood in general asks what the probability p(X∣α) is, where θ has been marginalized out (integrated out):

p(X∣α)=∫θp(X∣θ)p(θ∣α)dθ

The above definition is phrased in the context of Bayesian statistics in which case p(θ∣α) is called prior density and p(X∣θ) is the likelihood. Recognizing that the marginal likelihood is the normalizing constant of the Bayesian posterior density p(θ∣X,α), one also has the alternative expression

p(X∣α)=p(X∣θ,α)p(θ∣α)p(θ∣X,α)

which is an identity in θ. The marginal likelihood quantifies the agreement between data and prior in a geometric sense made precise via Hilbert spaces in de Carvalho et al. (2019). In classical (frequentist) statistics, the concept of marginal likelihood occurs instead in the context of a joint parameter θ=(ψ,λ), where ψ is the actual parameter of interest, and λ is a non-interesting nuisance parameter. If there exists a probability distribution for λ, it is often desirable to consider the likelihood function only in terms of ψ, by marginalizing out λ:

L(ψ;X)=p(X∣ψ)=∫λp(X∣λ,ψ)p(λ∣ψ)dλ

Unfortunately, marginal likelihoods are generally difficult to compute. Exact solutions are known for a small class of distributions, particularly when the marginalized-out parameter is the conjugate prior of the distribution of the data. In other cases, some kind of numerical integration method is needed, either a general method such as Gaussian integration or a Monte Carlo method, or a method specialized to statistical problems such as the Laplace approximation, Gibbs/Metropolis sampling, or the EM algorithm.

It is also possible to apply the above considerations to a single random variable (data point) x, rather than a set of observations. In a Bayesian context, this is equivalent to the prior predictive distribution of a data point.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Statistics