Skip to content

Overview

The benefits of using robust methods for hypothesis testing have been known for the last half century. They have been shown to substantially increase power and accuracy when compared to traditional approaches. The issues of robustness and the functions in this library are described in detail in Rand R. Wilcox's book Introduction to Robust Estimation and Hypothesis Testing.

The code and function names in Hypothesize are based on Wilcox's R functions in the WRS package. Hypothesize simply brings many of these helpful and well-studied robust methods to the Python ecosystem. In addition, Hypothesize provides a user-friendly API and package structure as well as one-click, ready-to-run examples for every top-level function.

Hypothesize is easy to use

Hypothesize's API is friendly and consistent, making it easy for you to discover and use robust functions that are appropriate for your statistical design.

Package Structure

Hypothesize organizes functions based on the statistical design. The following visualizations show how the package is structured and how this is reflected in practice when importing from the library:

graph TB linkStyle default interpolate basis A[Hypothesize] A --> B(compare groups with single factor) A --> C(compare groups with two factors) A --> D(measure associations) B --> F(f<sub>1</sub>) B --> G(f<sub>2</sub>) B --- H(f<sub>n</sub>) C --> F1(f<sub>1</sub>) C --> G2(f<sub>2</sub>) C --> H3(f<sub>n</sub>) D --> F5(f<sub>1</sub>) D --> G6(f<sub>2</sub>) D --> H7(f<sub>n</sub>)

Screenshot


Hypothesize is flexible and powerful

A broad range of choices exist in Hypothesize both in terms of the supported statistical designs as well as options for fine-grained control over how tests are computed. For example:

  • Where applicable, many hypothesis tests allow the specification of an estimator. That is, users may choose when to use the mean, median, trimmed mean, winsorized correlation, percentage bend correlation, or any other compatible statistical estimator.

  • Single- and multi-factor designs are supported, and this includes supporting independent, dependent, and mixed groups.

  • Family-wise error can be robustly controlled with sequentially rejective methods (Benjamini & Hochberg, 1995; Hochberg, 1988; Rom, 1990).


Visit the tutorial section and the function documentation for complete examples using Hypothesize.