Published August 1, 2021 | Version v1
Poster Open

SciPy 2021: An Accurate Implementation of the Studentized Range Distribution for Python

  • 1. Computer Science and Software Engineering Department
  • 2. Mechanical Engineering Department
  • 3. BioResource and Agricultural Engineering Department

Description

As data becomes more and more accessible, it can be tempting to misuse data analysis techniques to find statistically significant results, a practice known as 'p-hacking'. Tukey's HSD (Honestly Significant Difference) test is one of several tests that guards against this practice by using the studentized range distribution to compute p-values that account for the number of comparisons performed. Implementations of Tukey's HSD already exist within the scientific Python ecosystem, but they rely on approximations of the studentized range distribution that may not behave well outside of their intended range and, even within the intended range, are only accurate to a few digits. In this document, we present a fast, highly accurate, and direct implementation of the studentized range distribution for SciPy, and we demonstrate its speed and accuracy.

Files

studentized_range.pdf

Files (430.9 kB)

Name Size Download all
md5:636b37e0355eaa8d29144809b0910b7e
430.9 kB Preview Download