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
  • MultiTest.hc_jin Higher Criticism with limited range proposed by Jiashun Jin
  • MultiTest.berk_jones Berk-Jones test (actually -log(bj))
  • MultiTest.fdr False-discovery rate with optimized rate parameter
  • MultiTest.minp Minimal P-values (Bonferroni style inference) (actually -log(minp))
  • MultiTest.fisher Fisher'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


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.2.tar.gz (4.5 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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for multiple-hypothesis-testing-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1c5e718149498194d299cfaa7fbd15c95752074826a833e7a86e4c496b89c262
MD5 1973f5a6aa237abfc2a3ca8bb758223f
BLAKE2b-256 3f0e52a858fa18c79eb48cbfd98a6d67d1382fa88a6042521798691e6614081d

See more details on using hashes here.

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

Hashes for multiple_hypothesis_testing-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fad01963037fab8fa978e294d45d52c4e125ff0db7c693946c4f033e3638796
MD5 448fc6774e7c55f3c0ed32370342fc6d
BLAKE2b-256 f8f5113b467d677b7ff02b90c81485aa291b63bf687187c5c123bc07494ecc60

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