Skip to main content

scikit-posthocs is a Python package which 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 is comprised of 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 which are not adapted to multiple pairwise comparisons. Statsmodels (version 0.9.0) features TukeyHSD test which 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 which 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

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.5.3.tar.gz (29.1 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.5.3-py2.py3-none-any.whl (26.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file scikit-posthocs-0.5.3.tar.gz.

File metadata

  • Download URL: scikit-posthocs-0.5.3.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for scikit-posthocs-0.5.3.tar.gz
Algorithm Hash digest
SHA256 935565da21882054438fbf296ac13b7d81725286e6cf43d3a27c69d9ed3b1095
MD5 1d4606d5ff3b2402a2d0c3d9d0b41054
BLAKE2b-256 9919fd7cc21e8eaac6e83572e1ab6326634d86625c60c96e35060ebafa0edef3

See more details on using hashes here.

File details

Details for the file scikit_posthocs-0.5.3-py2.py3-none-any.whl.

File metadata

  • Download URL: scikit_posthocs-0.5.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for scikit_posthocs-0.5.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e33437b1146b915a6cd9b74e27f657fda5405d91c83be36039bd3f5e01587be6
MD5 ecca2db3607985075d9cb1f3ac7f03b8
BLAKE2b-256 3ff3005c9b14db3967a857d92ee9912ad09ea2036c08d4b4a63891eaa1fe75b8

See more details on using hashes here.

Release history Release notifications | RSS feed

0.17.0

2 files

0.16.1

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.4

2 files

0.11.3

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.0

2 files

0.9.1

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.7

1 file

0.6.6

2 files

0.6.5

2 files

0.6.4

1 file

0.6.3

1 file

0.6.2

1 file

0.6.1

2 files

0.6.0

2 files

0.5.4

2 files

This release

0.5.3 This release

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

1 file

0.3.6

1 file

0.3.4

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page