Several methods of combining P-values
Project description
MultiTest -- Global Tests for Multiple Hypothesis
MultiTest includes several techniques for multiple hypothesis testing:
MultiTest.hcHigher CriticismMultiTest.hcstarHigher Criticism with limited rangeMultiTest.hc_jinHigher Criticism with limited range proposed by Jiashun JinMultiTest.berk_jonesBerk-Jones test (actually -log(bj))MultiTest.fdrFalse-discovery rate with optimized rate parameterMultiTest.minpMinimal P-values (Bonferroni style inference) (actually -log(minp))MultiTest.fisherFisher's method to combine P-values
All tests rejects for large values of the test statistics.
Example:
import numpy as np
from scipy.stats import norm
from multitest import MultiTest
p = 10
z = np.random.randn(p)
pvals = 2*norm.cdf(-np.abs(z)/2)
mtest = MultiTest(pvals)
f = mtest.fisher()
bj = mtest.berk_jones()
print(f"Fisher = {f[0]}, degrees of freedom = {f[1]}")
print(f"Berk-Jones = {bj}")
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.1.2.tar.gz.
File metadata
- Download URL: multiple-hypothesis-testing-0.1.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/24.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.59.0 importlib-metadata/4.11.1 keyring/21.1.0 rfc3986/1.4.0 colorama/0.4.4 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c5e718149498194d299cfaa7fbd15c95752074826a833e7a86e4c496b89c262
|
|
| MD5 |
1973f5a6aa237abfc2a3ca8bb758223f
|
|
| BLAKE2b-256 |
3f0e52a858fa18c79eb48cbfd98a6d67d1382fa88a6042521798691e6614081d
|
File details
Details for the file multiple_hypothesis_testing-0.1.2-py3-none-any.whl.
File metadata
- Download URL: multiple_hypothesis_testing-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/24.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.59.0 importlib-metadata/4.11.1 keyring/21.1.0 rfc3986/1.4.0 colorama/0.4.4 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fad01963037fab8fa978e294d45d52c4e125ff0db7c693946c4f033e3638796
|
|
| MD5 |
448fc6774e7c55f3c0ed32370342fc6d
|
|
| BLAKE2b-256 |
f8f5113b467d677b7ff02b90c81485aa291b63bf687187c5c123bc07494ecc60
|