Skip to main content

Higher Criticism statistical hypothesis testing

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 hctest import HCtest

n = 1000 #number of samples

X = norm.rvs(size=n)
pvals = norm.sf(X)

hc = HCtest(pvals)
hc_val, p_th = hc.HCstar(gamma = 0.25)

print("Higher-Criticism statistic = ", hc_val)

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

higher-criticism-test-0.1.8.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

higher_criticism_test-0.1.8-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file higher-criticism-test-0.1.8.tar.gz.

File metadata

  • Download URL: higher-criticism-test-0.1.8.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for higher-criticism-test-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7ad5923b1bbddd0d0052b91c30132ee71b503798e43b23bcf76b4238a16bc63f
MD5 c4e747e942f5e5d3104aa581334738d3
BLAKE2b-256 5b45eb6a9b03e73947b2c277f82e53387a1b8a58bd0fba1ae12e5314a472e898

See more details on using hashes here.

File details

Details for the file higher_criticism_test-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for higher_criticism_test-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f2b4b197f718b301d7ea3e37242068548569bdb51c5e72f9cca660524c0ea4c5
MD5 c3542256b8cea8ccc5c3b642532d77ef
BLAKE2b-256 bd192b2b4055885ac86eb7879ac6482b558e541a4bdd2a3679313e87bcfbb880

See more details on using hashes here.

Supported by

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