maximtrp/scikit-posthocs

Multiple Pairwise Comparisons (Post Hoc) Tests in Python

What it solves

It fills gaps in the Python statistical ecosystem by providing a comprehensive suite of post hoc tests for pairwise multiple comparisons. These tests are used in statistical data analysis to determine exactly which group levels differ from one another after a statistically significant result has been obtained from an ANOVA test.

How it works

The package integrates with NumPy arrays and Pandas DataFrames to perform fast computations. It offers a wide array of parametric and non-parametric tests, including omnibus tests, tests for factorial and block designs, and comparisons against a control group. It also includes tools for outlier detection and p-value adjustment to minimize type I and II errors.

Who it’s for

It is designed for statisticians, data analysts, and researchers who use Python for their data analysis workflows.

Highlights

  • Extensive Test Library: Includes parametric tests (e.g., TukeyHSD, Games-Howell), non-parametric tests (e.g., Dunn, Conover), and omnibus tests.
  • Design Support: Specialized tests for both factorial and block design data.
  • Data Integration: Native support for Python lists, NumPy arrays, and Pandas DataFrames.
  • Visualization: Built-in significance plots (heatmaps) to visualize p-values.
  • Analysis Tools: Features outlier detection (e.g., Grubbs, ESD test) and Compact Letter Display (CLD) for summarizing results.

Related

  • Project
  • Project
  • Project
  • Project
  • Project