Several methods of combining P-values
Project description
MultiTest -- Global Tests for Multiple Hypothesis
This package is a Python implementation of the global tests for multiple hypothesis testing proposed in [1] and [2].
News
- Changed the default normalization of ordered P-values when ealuating HC to use the mean and standard deviation of the beta distribution. To get the old behavior, initialize with
normalization = 'donoho-jin2008'. - 2024-01-15: Added the
MultiTest.fdrmethod for False-discovery rate with optimized rate parameter. - 2024-01-15: Added the
MultiTest.minpmethod for minimal P-values as in Bonferroni style inference.
The package includes several techniques for multiple hypothesis testing:
MultiTest.hcHigher CriticismMultiTest.hcstarHigher Criticism with limited range proposed in [1]MultiTest.hc_jinHigher Criticism with limited range proposed as proposed in [3]MultiTest.berk_jonesBerk-Jones statisticMultiTest.fdrFalse-discovery rate with optimized rate parameterMultiTest.minpMinimal P-values as in Bonferroni style inferenceMultiTest.fisherFisher's method to combine P-values In all cases, one should reject the null for large values of the test statistic.
Example:
import numpy as np
from scipy.stats import norm
from multitest import MultiTest
p = 100
z = np.random.randn(p)
pvals = 2*norm.cdf(-np.abs(z)/2)
mtest = MultiTest(pvals)
hc, p_hct = mtest.hc(gamma = 0.3)
bj = mtest.berk_jones()
ii = np.arange(len(pvals))
print(f"HC = {hc}, Indices of P-values below HCT: {ii[pvals <= p_hct]}")
print(f"Berk-Jones = {bj}")
Use cases:
This package was used to obtain evaluations reported in [5] and [6].
References:
[1] Donoho, David. L. and Jin, Jiashun. "Higher criticism for detecting sparse hetrogenous mixtures." The Annals of Statistics 32, no. 3 (2004): 962-994. [2] Donoho, David L. and Jin, Jiashun. "Higher critcism thresholding: Optimal feature selection when useful features are rare and weak." proceedings of the national academy of sciences, 2008. [3] Jin, Jiashun, and Wanjie Wang. "Influential features PCA for high dimensional clustering." The Annals of Statistics 44, no. 6 (2016): 2323-2359. [4] Amit Moscovich, Boaz Nadler, and Clifford Spiegelman. "On the exact Berk-Jones statistics and their p-value calculation." Electronic Journal of Statistics. 10 (2016): 2329-2354. [5] Donoho, David L., and Alon Kipnis. "Higher criticism to compare two large frequency tables, with sensitivity to possible rare and weak differences." The Annals of Statistics 50, no. 3 (2022): 1447-1472. [6] Kipnis, Alon. "Unification of rare/weak detection models using moderate deviations analysis and log-chisquared p-values." Statistica Scinica 2025.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multiple_hypothesis_testing-0.2.1.tar.gz.
File metadata
- Download URL: multiple_hypothesis_testing-0.2.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ecd8d73dcce1c48361c65b0af4fbdf4d8c5441bb7cee594f983830fe3dfe9ad
|
|
| MD5 |
2de75c1f4bc46c531fa30d566dc8c0da
|
|
| BLAKE2b-256 |
654ffd0313610868ac2b7ab88d2094b3de1408db96d36dc8684153090d4f1dea
|
File details
Details for the file multiple_hypothesis_testing-0.2.1-py3-none-any.whl.
File metadata
- Download URL: multiple_hypothesis_testing-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d6ad05af0d9cd24e381eb687d40992fa059326da9e7bf7b5ad47bab6afeb50
|
|
| MD5 |
b2a577bc23155c2af0e49af68071cf62
|
|
| BLAKE2b-256 |
2653164c6c625ddb47640bce8c01bc164cb4400460ef244e7de8168b1cd27b30
|