Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Rank-Based Hypothesis Testing for the Rank Sum Test, the Signed Rank Test, and Spearman's $ ho$

Johnny van Doorn, Alexander Ly|arXiv (Cornell University)|Dec 19, 2017
Advanced Statistical Methods and ModelsMathematics48 references3 citations
TL;DR

This paper introduces a Bayesian framework for rank-based nonparametric tests—rank sum test, signed rank test, and Spearman’s ρ—by modeling observed ranks as censored observations of an underlying latent normal distribution. Using data augmentation and Markov chain Monte Carlo, it derives Bayes factors that enable robust, interpretable hypothesis testing with invariance to monotonic transformations and natural handling of ties.

ABSTRACT

This directory contains three R-files with R-code for each of the three Bayesian methods and examples outlined in the manuscript: Bayesian Latent-Normal Inference for the Rank Sum Test, the Signed Rank Test, and Spearman's rho Simulation results can be accessed through a Shiny app at: - https://rankbasedbayes.shinyapps.io/SimulationResultsWilcoxon/ - https://rankbasedbayes.shinyapps.io/SimulationResultsCorrelation/ Each file contains a function that takes in the data, and returns posterior samples of the relevant parameters (i.e., delta for the rank sum and signed rank test, and rho for the Spearman test). The two csv files contain the datasets used in the article as examples. The data are taken from: Thall, P. F. and Vail, S. C. (1990) Some covariance models for longitudinal count data with over-dispersion. Biometrics 46, 657–671. Cortez, P. and Silva, A. M. G. (2008). Using data mining to predict secondary school student performance.

Motivation & Objective

  • To develop Bayesian counterparts for widely used nonparametric rank-based tests.
  • To overcome the lack of a likelihood function in rank-based inference by introducing a latent normal data-augmentation approach.
  • To enable Bayes factor hypothesis testing for ordinal data with interpretable parameters and robustness to distributional assumptions.
  • To provide a general, computationally feasible method applicable to tied and non-normal data.
  • To support practical adoption through open-source R code and integration into JASP.

Proposed method

  • Assumes observed ranks are censored versions of underlying continuous latent normal variables.
  • Uses data augmentation to treat latent normal scores as missing data, enabling full Bayesian inference.
  • Applies Bayes' theorem to compute the joint posterior of latent scores and model parameters.
  • Employs MCMC sampling (e.g., Gibbs sampling) to estimate posterior distributions and Bayes factors.
  • Models the association between variables via latent correlation (e.g., Spearman’s ρs) under a bivariate normal assumption.
  • Uses indicator functions to represent rank constraints in the likelihood, ensuring consistency with observed ranks.

Experimental results

Research questions

  • RQ1Can a Bayesian framework be developed for the rank sum test that provides interpretable evidence via Bayes factors?
  • RQ2Can the signed rank test be recast in a Bayesian framework using latent normal models?
  • RQ3How well does the latent normal approach perform for Spearman’s ρs compared to parametric alternatives?
  • RQ4Does the method maintain robustness and accuracy under non-normal data and ties?
  • RQ5Can the approach be generalized to other rank-based tests with minimal assumptions?

Key findings

  • The latent normal model enables valid Bayes factor computation for the rank sum test, signed rank test, and Spearman’s ρs, even without a direct likelihood.
  • Simulation studies confirm accurate inference under both normal and non-normal data, with robust performance against distributional violations.
  • For Spearman’s ρs, the Bayes factor showed strong agreement with parametric Bayes factors across various copula structures (e.g., Clayton copula), with correlation r = 0.99 in comparisons.
  • In a real data example, the Bayes factor indicated moderate evidence (BF01 = 7.915) against an association between math performance and family ties, with a posterior median ρs = 0.059 and 95% credible interval [−0.052, 0.161].
  • The method naturally handles tied ranks, which is critical for Likert-scale and coarse ordinal data.
  • The approach is computationally feasible and has been implemented in R and is being integrated into the open-source JASP software.

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.