Several methods of combining P-values
Project description
MultiTest -- Global Tests for Multiple Hypothesis
MultiTest includes several techniques for multiple hypothesis testing:
MultiTest.hc
Higher CriticismMultiTest.hcstar
Higher Criticism with limited range proposed in [1]MultiTest.hc_jin
Higher Criticism with limited range proposed as proposed in [3]MultiTest.berk_jones
Berk-Jones statisticMultiTest.fdr
False-discovery rate with optimized rate parameterMultiTest.minp
Minimal P-values as in Bonferroni style inferenceMultiTest.fisher
Fisher'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
File details
Details for the file multiple_hypothesis_testing-0.1.11.tar.gz
.
File metadata
- Download URL: multiple_hypothesis_testing-0.1.11.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a89a744b959867f2e16a356b90bea8be82fe1ae5314244f4737544bad6a4dccb |
|
MD5 | 50b9f09d677d59c20d3fa7b5348459b8 |
|
BLAKE2b-256 | 76d7208600dd9cbae1ca4e725e0f625933aaaa115ebb8842c795721b9aaa53a9 |
File details
Details for the file multiple_hypothesis_testing-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: multiple_hypothesis_testing-0.1.11-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9865b29d7c03b52d27ec8c3efafaf0ab35ba33dbb2c95d62c87667462899d5db |
|
MD5 | 55e9e48cdfea2d0080c5be47951c0b46 |
|
BLAKE2b-256 | 4dbefd968e2491c504da1ee2444030804355dce738b617b05d5eb68a710a01eb |