Skip to main content

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 Criticism
  • MultiTest.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 statistic
  • MultiTest.fdr False-discovery rate with optimized rate parameter
  • MultiTest.minp Minimal P-values as in Bonferroni style inference
  • MultiTest.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multiple_hypothesis_testing-0.1.13.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multiple_hypothesis_testing-0.1.13-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file multiple_hypothesis_testing-0.1.13.tar.gz.

File metadata

File hashes

Hashes for multiple_hypothesis_testing-0.1.13.tar.gz
Algorithm Hash digest
SHA256 a1a9df30f3d0ed4c1bfb46b745cccc66af166febbcf4091ffccf9039cbd68dba
MD5 cd49f7014d4ccbc540d2bdfd6aa2c900
BLAKE2b-256 8ef622bda86ba6a5a27a0e92c590fbfc87f05a4172836d9826d431a65363a135

See more details on using hashes here.

File details

Details for the file multiple_hypothesis_testing-0.1.13-py3-none-any.whl.

File metadata

File hashes

Hashes for multiple_hypothesis_testing-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 35866bfeeebd9ac0dbfadc2d96d5aa48f7b8fd062984f33060840c9365a0e78b
MD5 6c58c19cb99a3ad0074b35b598519b2c
BLAKE2b-256 9a59d47e0ec299c1717990f96b793373fd1d16b00274efb1c0853a76cd3b2176

See more details on using hashes here.

Supported by

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