Skip to main content

Higher Criticism two-sample tests for sparse signals

Project description

TwoSampleHC

Higher Criticism (HC) utilities for two-sample testing under sparsity. Provides:

  • HC statistic variants (HC, HCstar, HCjin)
  • Exact and randomized binomial p-values for feature-wise testing
  • Convenience helpers to compute HC thresholds and DataFrame outputs

Install from a local build or PyPI:

pip install TwoSampleHC

Basic usage:

from TwoSampleHC import two_sample_test

hc_score, hc_threshold = two_sample_test(
    smp1, smp2, data_type='counts', alt='two-sided', stbl=True, gamma=0.2
)

Requirements: numpy, pandas, scipy.

See the source in src/TwoSampleHC for details and examples.

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

twosamplehc-0.4.2.tar.gz (514.8 kB view details)

Uploaded Source

Built Distribution

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

twosamplehc-0.4.2-py3-none-any.whl (518.2 kB view details)

Uploaded Python 3

File details

Details for the file twosamplehc-0.4.2.tar.gz.

File metadata

  • Download URL: twosamplehc-0.4.2.tar.gz
  • Upload date:
  • Size: 514.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for twosamplehc-0.4.2.tar.gz
Algorithm Hash digest
SHA256 17b8c9bda2d4300775c36e7a1abdee9db008bca38ba9a40ddb705681b8dc2ecd
MD5 4045952a29383b3b0a2959c473f859c0
BLAKE2b-256 06ca0a2ea2b966bb45b11e0c6a2d8a74232fcb759d84b3c3150bbc41fdef1941

See more details on using hashes here.

File details

Details for the file twosamplehc-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: twosamplehc-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 518.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for twosamplehc-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d35f7cd79441454d51a0074c3c85d72dd03a55e8ef11fcfaaf2432fd84ba0db1
MD5 9cf2f9429ee59b8a94461ba50541b5ce
BLAKE2b-256 1ed7bd99d6ddfbfd2488733fde7e623f7bd41889bb7f339f235b78cbae3fc15c

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