Several methods of combining P-values
Project description
HCtest -- Higher Criticism Test
Higher Criticism (HC) test statistics for testing the global significance of many independent hypotheses. As an input, the test receives a list of P-values and returns the HC test statistics. See (Donoho & Jin 2004)
Example:
from scipy.stats import norm
from multitest import MultiTest
n = 1000 #number of samples
X = norm.rvs(size=n)
pvals = norm.sf(X)
mt = MultiTest(pvals)
hc_val, p_th = mt.HCstar(gamma = 0.25)
minus_log_min_pval = mt.minp()
fdr, pval_fdr = mt.fdr()
print(f"Higher-Criticism test statistic = {hc_val}")
print(f"False-discovery rate {q} critical P-value = {pval_fdr}")
print(f"Bonferroni {minus_log_min_pval}")
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
Close
Hashes for multiple-hypothesis-testing-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e53ada3ae2ef494a1fe4c008d8e285f21bc182783291776899634750c2c370 |
|
MD5 | ae359f05daaf1c7982622a9918c6bd96 |
|
BLAKE2b-256 | a9a9546394a0a29e750359ebb3209b3511dd6288d7cd6fa5557fe638cc254bf2 |
Close
Hashes for multiple_hypothesis_testing-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 814f428a3f3e1b51db768cc142f47770d21ea0f0c64e63bf9f4a096b452f8e00 |
|
MD5 | 55f10df9dea2ce0ce878453f38167404 |
|
BLAKE2b-256 | 38fc4329d82cecd6de45f479b36bb86481302edde1c83151b650f54d6c457287 |