Skip to main content
QUICK REVIEW

[Paper Review] Bayesian two-sample tests

Karsten Borgwardt, Zoubin Ghahramani|ArXiv.org|Jun 22, 2009
Bayesian Methods and Mixture ModelsComputer Science20 references13 citations
TL;DR

This paper introduces two Bayesian two-sample tests: a parametric method for exponential family distributions and a nonparametric method using Dirichlet process mixture models (DPMs) to flexibly model unknown distributions. The approach computes Bayes factors via marginal likelihoods, avoiding bootstrapping and enabling efficient inference through approximate methods like Bayesian hierarchical clustering, offering a principled, general-purpose alternative to frequentist tests.

ABSTRACT

In this paper, we present two classes of Bayesian approaches to the two-sample problem. Our first class of methods extends the Bayesian t-test to include all parametric models in the exponential family and their conjugate priors. Our second class of methods uses Dirichlet process mixtures (DPM) of such conjugate-exponential distributions as flexible nonparametric priors over the unknown distributions.

Motivation & Objective

  • To develop a general-purpose Bayesian framework for the two-sample problem that avoids application-specific assumptions.
  • To extend the Bayesian t-test beyond Gaussian models to all exponential family distributions with conjugate priors.
  • To propose a nonparametric Bayesian approach using Dirichlet process mixture models (DPMs) to model unknown distributions flexibly.
  • To compute Bayes factors for model comparison between equal and different distributions using marginal likelihoods under DPM priors.
  • To enable efficient inference by leveraging approximate methods such as Bayesian hierarchical clustering (BHC), reducing computational cost below O(n²).

Proposed method

  • Proposes a parametric Bayesian two-sample test using exponential family distributions with conjugate priors, generalizing the Bayesian t-test.
  • Employs Dirichlet process mixture models (DPMs) as nonparametric priors over unknown distributions q₁ and q₂, allowing flexible modeling of complex data.
  • Computes the Bayes factor χ as the ratio of the product of marginal likelihoods P(X|α,β)P(Y|α,β) to the joint marginal likelihood P(X,Y|α,β), integrating over the DPM prior.
  • Uses the marginal likelihood expression p(D|α,β) = ∑_{v∈V} p(v|α)p(D|v,β), where V is the set of all data partitions, to compute the evidence under the DPM.
  • Applies Bayesian hierarchical clustering (BHC) for approximate inference of marginal probabilities under the DPM, achieving O(n²) runtime for moderate n.
  • Leverages conjugate priors for component parameters and a Dirichlet prior for mixing weights to ensure tractable computation of the marginal likelihood.

Experimental results

Research questions

  • RQ1How can the Bayesian t-test be generalized beyond Gaussian assumptions to all exponential family distributions?
  • RQ2Can Dirichlet process mixture models provide a flexible, nonparametric prior for modeling unknown distributions in the two-sample problem?
  • RQ3How can the marginal likelihoods under DPM priors be computed efficiently to enable Bayes factor computation?
  • RQ4What is the computational efficiency of the proposed Bayesian two-sample tests compared to frequentist approaches requiring bootstrapping?
  • RQ5Can approximate inference methods like Bayesian hierarchical clustering yield accurate and scalable Bayes factors for real-world data?

Key findings

  • The parametric Bayesian two-sample test generalizes the Bayesian t-test to all exponential family distributions, enabling broader applicability beyond normality.
  • The nonparametric test using DPMs allows flexible modeling of unknown distributions without assuming parametric form, providing a robust alternative to parametric assumptions.
  • The Bayes factor is computed as χ = P(X|α,β)P(Y|α,β) / P(X,Y|α,β), with marginal likelihoods derived from partition-based summation over data configurations.
  • Approximate inference via Bayesian hierarchical clustering (BHC) enables O(n²) computation of marginal probabilities, making the method scalable for moderate-sized datasets.
  • The Bayesian approach avoids the need for bootstrapping to estimate null distributions, offering a computationally more efficient alternative to frequentist two-sample tests.
  • The method provides a principled, general-purpose solution to the two-sample problem that is both statistically rigorous and computationally feasible through approximation techniques.

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.