scikit-posthocs
Statistical post-hoc analysis and outlier detection algorithms
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and fills a genuine gap in Python's statistical toolkit by providing post hoc tests that are either missing or inconvenient in scipy and statsmodels. Install friction is low, and it integrates well with standard data science libraries. Recommended for researchers, statisticians, and data analysts working with group comparisons.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; all six runtime dependencies (numpy, scipy, statsmodels, pandas, seaborn, matplotlib) must be installed.
- Low friction install with six standard scientific dependencies (numpy, scipy, statsmodels, pandas, seaborn, matplotlib).
- Package is actively maintained with a recent commit on 2026-07-24 and has been in production since 2018-02-01.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) allows free use, modification, and distribution with minimal restrictions—suitable for academic, commercial, and open-source projects.
last release 2026-05-26 (80 days) · last repo commit 2026-07-24 · 386 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 146,623 downloads/mo, #11,093 on PyPI
Alternatives
Verify before relying
pip install scikit-posthocs
import scikit_posthocs as sp
import pandas as pd
# After ANOVA, perform post hoc test on groups
result = sp.posthoc_tukey(data, val_col='values', group_col='groups')- Whether the package supports effect size calculations or confidence intervals alongside p-values.
- Performance characteristics when handling large datasets or many groups.
- Specific visualization capabilities beyond 'significance plots' mentioned in the description.
What it is and what it does
scikit-posthocs fills a gap in Python's statistical ecosystem by offering a comprehensive suite of post hoc tests for pairwise multiple comparisons—the follow-up analysis performed after ANOVA or similar omnibus tests reveal statistical significance. It implements both parametric tests (like TukeyHSD and Scheffe) and non-parametric alternatives (like Dunn and Nemenyi tests) for different experimental designs, plus outlier detection methods and basic plotting. The package is tightly integrated with pandas DataFrames and NumPy arrays, making it convenient to work with typical data science workflows.
You would use this package when you've run an ANOVA or Kruskal-Wallis test and need to determine which specific group pairs differ significantly. It handles p-value adjustment automatically to control for multiple comparisons, and it supports both factorial and block designs. The package depends on scipy, statsmodels, pandas, seaborn, and matplotlib, so it fits naturally into existing scientific Python environments.
Use it for
- Run post hoc pairwise comparisons after ANOVA to identify which group means differ significantly.
- Apply non-parametric post hoc tests (Dunn, Nemenyi) when data violates normality assumptions.
- Detect outliers in datasets using Grubbs, Tietjan-Moore, or ESD tests before analysis.
- Generate significance plots to visualize pairwise comparison results for reports or publications.
- Adjust p-values across multiple comparisons to control Type I error rates in exploratory studies.
- Analyze block design experiments using specialized tests like Durbin-Conover or Quade.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and fills a genuine gap in Python's statistical toolkit by providing post hoc tests that are either missing or inconvenient in scipy and statsmodels. Install friction is low, and it integrates well with standard data science libraries. Recommended for researchers, statisticians, and data analysts working with group comparisons.
Install
scikit-posthocs on PyPI
Before you install
Low friction install with six standard scientific dependencies (numpy, scipy, statsmodels, pandas, seaborn, matplotlib). Package is actively maintained with a recent commit on 2026-07-24 and has been in production since 2018-02-01.
Requires Python 3.9 or later; all six runtime dependencies (numpy, scipy, statsmodels, pandas, seaborn, matplotlib) must be installed.
License in practice
MIT license (permissive) allows free use, modification, and distribution with minimal restrictions—suitable for academic, commercial, and open-source projects.
Quickstart
pip install scikit-posthocs
import scikit_posthocs as sp
import pandas as pd
# After ANOVA, perform post hoc test on groups
result = sp.posthoc_tukey(data, val_col='values', group_col='groups')
Verify before relying
- Whether the package supports effect size calculations or confidence intervals alongside p-values.
- Performance characteristics when handling large datasets or many groups.
- Specific visualization capabilities beyond 'significance plots' mentioned in the description.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesnumpyscipystatsmodelspandasseabornmatplotlib |
| Maintenance | Actively maintained 80 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 146,623 / month, #11,093 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: EducationIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Information AnalysisTopic :: Scientific/Engineering :: Mathematics |
Evidence: scikit_posthocs-0.14.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “post hoc statistical tests”
- scikit-posthocsProvides post hoc statistical tests for pairwise multiple comparisons…
- hyppohyppo provides multivariate hypothesis testing for high-dimensional…
- polars-dsPolars-ds adds data science and machine learning operations to Polars…
Give your agent the search over MCP, or paste the wish link into any chat.
More Information Analysis packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyarrow provides Python bindings to Apache Arrow's C++ libraries for efficient columnar data processing, serialization, and interoperability with pandas, NumPy, and other Python ecosystem tools.
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
Snowpark Python provides APIs to query and process data directly in Snowflake without moving data to your local system, with support for both native Snowpark and pandas-compatible interfaces.
Install it if you use Snowflake and want to process data without moving it to your application layer.
See also pingouin · pymannkendall · statsmodels · hyppo · allpairspy · ruptures · anova-wifi · diptest · pydoe · pyDOE3