Skip to main content

Statistical post-hoc analysis and outlier detection algorithms

Project description

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

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.5.4.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

scikit_posthocs-0.5.4-py2.py3-none-any.whl (26.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: scikit-posthocs-0.5.4.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.4.tar.gz
Algorithm Hash digest
SHA256 91e0336efd4ab85ee45d08248d02431178e8264503be56b84257d94e87594c59
MD5 03dbfbd066b47d8a2a64661b4248c74a
BLAKE2b-256 ba8c2e92dcc56c8ccbdcb04b2f82839e0367190dbc923c5290d5215c06fa4b6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scikit_posthocs-0.5.4-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.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eeabedddb99ebaf277a7a4f70c4a469e73512d589192194b4556bcbd4f224857
MD5 ad72061ab3b0503f3bd01fe002efaf85
BLAKE2b-256 71487e1b401efe4c25f7428bc9be5cd9f2fa709045f6625e9a304e6283bb904a

See more details on using hashes here.

Supported by

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