Skip to main content

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.

Metadata

Release files for TwoSampleHC 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for TwoSampleHC 0.4.2
File Size Uploaded Provenance Actions
twosamplehc-0.4.2.tar.gz 514.8 kB Without provenance Details for twosamplehc-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TwoSampleHC 0.4.2
File Interpreter ABI Platform Actions
twosamplehc-0.4.2-py3-none-any.whl Python 3 none any Details for twosamplehc-0.4.2-py3-none-any.whl

Total release size: 1.0 MB

Release files / twosamplehc-0.4.2.tar.gz

Download URL twosamplehc-0.4.2.tar.gz
Size 514.8 kB
Tags Source
SHA-256 checksum
How to use checksums
17b8c9bda2d4300775c36e7a1abdee9db008bca38ba9a40ddb705681b8dc2ecd
BLAKE2b-256 checksum
How to use checksums
06ca0a2ea2b966bb45b11e0c6a2d8a74232fcb759d84b3c3150bbc41fdef1941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / twosamplehc-0.4.2-py3-none-any.whl

Download URL twosamplehc-0.4.2-py3-none-any.whl
Size 518.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d35f7cd79441454d51a0074c3c85d72dd03a55e8ef11fcfaaf2432fd84ba0db1
BLAKE2b-256 checksum
How to use checksums
1ed7bd99d6ddfbfd2488733fde7e623f7bd41889bb7f339f235b78cbae3fc15c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for TwoSampleHC 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page