Skip to main content
QUICK REVIEW

[Paper Review] A simple two-sample Bayesian t-test for hypothesis testing

Min Wang, Guangying Liu|arXiv (Cornell University)|Sep 8, 2015
Advanced Statistical Methods and ModelsMathematics10 references8 citations
TL;DR

This paper proposes a closed-form Bayes factor for two-sample t-tests that depends only on the t-statistic, enabling easy calculation with a calculator or spreadsheet. It resolves sensitivity issues in prior-dependent Bayes factors by introducing a hyper-prior on the prior variance, yielding robust, interpretable results suitable for teaching Bayesian methods in introductory statistics courses.

ABSTRACT

In this paper, we propose an explicit closed-form Bayes factor for the problem of two-sample hypothesis testing. The proposed approach can be regarded as a Bayesian version of the pooled-variance t-statistic and has various appealing properties in practical applications. It relies on data only through the t-statistic and can thus be calculated by using an Excel spreadsheet or a pocket calculator. It avoids several undesirable paradoxes, which may be encountered by the previous Bayesian approach of Gonen et al. (2005). Specifically, the proposed approach can be easily taught in an introductory statistics course with an emphasis on Bayesian thinking. Simulated and real data examples are provided for illustrative purposes.

Motivation & Objective

  • To develop a Bayesian hypothesis test for two independent samples that is simple and teachable in introductory statistics courses.
  • To address the sensitivity of Bayes factors to hyperparameter choice in existing approaches, such as those by Gönen et al. (2005).
  • To eliminate paradoxes like Bartlett’s and the information paradox by specifying a hyper-prior on the prior variance parameter.
  • To ensure the Bayes factor depends only on the classical t-statistic, allowing computation with basic tools like Excel or a pocket calculator.
  • To promote intuitive understanding of the relationship between frequentist and Bayesian inference through a practical, transparent method.

Proposed method

  • Proposes a Bayes factor based on the pooled-variance t-statistic, using a hierarchical prior structure with a hyper-prior on the prior variance parameter σ²ₐ.
  • Employs a Pearson type VI distribution as the hyper-prior for σ²ₐ, leading to a closed-form expression for the marginal likelihood ratio.
  • Derives the final Bayes factor as a function of the t-statistic, degrees of freedom, and hyper-prior parameters a and b, with b determined by the degrees of freedom.
  • Uses a transformation and beta function identities to simplify the integral expression for the marginal likelihood, resulting in a tractable closed-form solution.
  • Ensures the method remains computationally simple by relying only on the t-statistic, avoiding full data reprocessing.
  • Demonstrates robustness through sensitivity analysis across different hyper-prior values, showing consistent decision outcomes.

Experimental results

Research questions

  • RQ1How can a Bayesian two-sample t-test be made robust to the choice of prior hyperparameters?
  • RQ2Can a closed-form Bayes factor be derived that depends only on the classical t-statistic and is suitable for introductory teaching?
  • RQ3Does introducing a hyper-prior on the prior variance eliminate paradoxes such as Bartlett’s paradox and the information paradox?
  • RQ4How does the proposed method compare in performance to the fixed-hyperparameter approach of Gönen et al. (2005) in terms of sensitivity and decision consistency?
  • RQ5To what extent does the proposed method preserve the intuitive connection between frequentist and Bayesian inference?

Key findings

  • The proposed method yields a closed-form Bayes factor that depends only on the t-statistic and degrees of freedom, enabling calculation with a basic calculator or spreadsheet.
  • The Bayes factor is robust to hyper-prior parameter choices: for a ∈ (−1, −1/2], the posterior probability of H₁ remains stable and consistent with the two-sided p-value.
  • With a = −1/2, the posterior probability of H₁ is 0.377, and the Bayes factor is 0.606, indicating moderate evidence in favor of H₀.
  • In contrast, the fixed-σ²ₐ approach of Gönen et al. (2005) shows high sensitivity: posterior probability of H₁ drops from 0.509 (σ²ₐ = 1/10) to 0.243 (σ²ₐ = 5), leading to contradictory conclusions.
  • The method avoids the information paradox and Bartlett’s paradox by integrating over the prior variance, reducing dependence on arbitrary hyperparameter selection.
  • The approach is suitable for teaching, as it allows students to compute Bayes factors manually and understand the link between frequentist t-tests and Bayesian inference.

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.