Skip to main content

Statistical post-hoc analysis and outlier detection algorithms

Project description

scikit-posthocs is a Python package that provides post hoc tests for pairwise multiple comparisons that are usually performed in statistical data analysis to assess the differences between group levels if a statistically significant result of ANOVA test has been obtained.

scikit-posthocs is tightly integrated with Pandas DataFrames and NumPy arrays to ensure fast computations and convenient data import and storage.

This package will be useful for statisticians, data analysts, and researchers who use Python in their work.

Background

Python statistical ecosystem comprises multiple packages. However, it still has numerous gaps and is surpassed by R packages and capabilities.

SciPy (version 1.2.0) offers Student, Wilcoxon, and Mann-Whitney tests that are not adapted to multiple pairwise comparisons. Statsmodels (version 0.9.0) features TukeyHSD test that needs some extra actions to be fluently integrated into a data analysis pipeline. Statsmodels also has good helper methods: allpairtest (adapts an external function such as scipy.stats.ttest_ind to multiple pairwise comparisons) and multipletests (adjusts p values to minimize type I and II errors). PMCMRplus is a very good R package that has no rivals in Python as it offers more than 40 various tests (including post hoc tests) for factorial and block design data. PMCMRplus was an inspiration and a reference for scikit-posthocs.

scikit-posthocs attempts to improve Python statistical capabilities by offering a lot of parametric and nonparametric post hoc tests along with outliers detection and basic plotting methods.

Features

  • Parametric pairwise multiple comparisons tests:

    • Scheffe test.

    • Student T test.

    • Tamhane T2 test.

    • TukeyHSD test.

  • Non-parametric tests for factorial design:

    • Conover test.

    • Dunn test.

    • Dwass, Steel, Critchlow, and Fligner test.

    • Mann-Whitney test.

    • Nashimoto and Wright (NPM) test.

    • Nemenyi test.

    • van Waerden test.

    • Wilcoxon test.

  • Non-parametric tests for block design:

    • Conover test.

    • Durbin and Conover test.

    • Miller test.

    • Nemenyi test.

    • Quade test.

    • Siegel test.

  • Other tests:

    • Anderson-Darling test.

    • Mack-Wolfe test.

    • Hayter (OSRT) test.

  • Outliers detection tests:

    • Simple test based on interquartile range (IQR).

    • Grubbs test.

    • Tietjen-Moore test.

    • Generalized Extreme Studentized Deviate test (ESD test).

  • Plotting functionality (e.g. significance plots).

All post hoc tests are capable of p adjustments for multiple pairwise comparisons.

Dependencies

Compatibility

Package is compatible with Python 2 and Python 3.

Install

You can install the package using pip :

$ pip install scikit-posthocs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit_posthocs-0.14.0.tar.gz (40.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scikit_posthocs-0.14.0-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file scikit_posthocs-0.14.0.tar.gz.

File metadata

  • Download URL: scikit_posthocs-0.14.0.tar.gz
  • Upload date:
  • Size: 40.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scikit_posthocs-0.14.0.tar.gz
Algorithm Hash digest
SHA256 3b9f9273fc9037ee967d11b6a15aef1c6c0ed33a1936ff8879d6f5fb0a181227
MD5 70b1b9cae92123281e4af727b3294fa6
BLAKE2b-256 15881a1758a6b68079cc58dd38b291cd194a29f9018a0eb5397342c5156009e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_posthocs-0.14.0.tar.gz:

Publisher: package-publish.yml on maximtrp/scikit-posthocs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scikit_posthocs-0.14.0-py3-none-any.whl.

File metadata

File hashes

Hashes for scikit_posthocs-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2ecd5828cb783c42c1923e223eab202f529b03ab97de587647ab30f6e88333
MD5 16f08966f744adbbba3b87990d3f0715
BLAKE2b-256 7550975860099ee9f1288f030374386d110c54d58cd1dc71df023135aa79633d

See more details on using hashes here.

Provenance

The following attestation bundles were made for scikit_posthocs-0.14.0-py3-none-any.whl:

Publisher: package-publish.yml on maximtrp/scikit-posthocs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page