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
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
twosamplehc-0.4.2.tar.gz
(514.8 kB
view details)
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
twosamplehc-0.4.2-py3-none-any.whl
(518.2 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17b8c9bda2d4300775c36e7a1abdee9db008bca38ba9a40ddb705681b8dc2ecd
|
|
| MD5 |
4045952a29383b3b0a2959c473f859c0
|
|
| BLAKE2b-256 |
06ca0a2ea2b966bb45b11e0c6a2d8a74232fcb759d84b3c3150bbc41fdef1941
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d35f7cd79441454d51a0074c3c85d72dd03a55e8ef11fcfaaf2432fd84ba0db1
|
|
| MD5 |
9cf2f9429ee59b8a94461ba50541b5ce
|
|
| BLAKE2b-256 |
1ed7bd99d6ddfbfd2488733fde7e623f7bd41889bb7f339f235b78cbae3fc15c
|