pySHT
pySHT is a Python toolbox for literature-traceable statistical hypothesis testing, with particular emphasis on high-dimensional, joint-parameter, and structured-domain problems.
Documentation: https://kisungyou.com/pysht/
The distribution and import name is pysht. The project is an independently
validated successor to the R package
SHT; it does not treat legacy numerical
output as a correctness oracle.
Status: version 0.1.0 is the initial public release. The scientific surface is correctness-gated, but APIs may still evolve before version 1.0.
Install the release from PyPI:
python -m pip install pysht
Statistical scope
pySHT's public API currently contains 51 canonical Python functions covering
52 of the 54 public statistical routine identities in SHT 0.1.9. Two
algebraically identical R entry points share one Python implementation. The
withheld identities are mean2.2014CLX, whose practical-size Gumbel
calibration failed, and cov1.2012Fisher, whose former audit is not
reproducible through the public path. The public functions are organized by
scientific question rather than re-exported from the top-level package:
pysht.mean: univariate, multivariate, high-dimensional, randomized, sparse, and multi-group mean tests;pysht.variance: one-, two-, and multi-sample variance tests;pysht.covariance: one-, two-, and multi-sample covariance tests;pysht.mean_varianceandpysht.mean_covariance: joint-parameter tests;pysht.equaldist: equality-of-distributions tests;pysht.normalityandpysht.uniformity: goodness-of-fit tests; andpysht.simplex: tests for compositional data on the probability simplex.
The API catalog follows SHT's
original [0]--[10] category order and records every public name.
For example:
from pysht.mean import ttest_1samp
result = ttest_1samp([2.1, 2.4, 1.9, 2.2, 2.5], popmean=2.0)
print(result)
Results are immutable Python objects, but their text display follows the
human-readable style of R's htest objects: method title, data, statistic,
p-value, alternative, degrees of freedom, confidence interval, estimates, and
calibration details when applicable.
Procedure-specific results can additionally report resampling diagnostics, numerical metadata, or component log Bayes factors. The user guide explains how to read and use this output.
Correctness policy
Every shipped method must have a formula ledger, an appropriate literal reference or trusted independent comparator, validation evidence, invariance checks, numerical stress tests, and documented assumptions. Known differences from SHT are recorded in the validation documentation.
The current suite also builds the documentation with warnings treated as errors, checks strict typing and formatting, and verifies installed stable-ABI wheels across Python 3.12--3.14 in CI.
License
MIT. See the license and third-party notices.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
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
File details
Details for the file pysht-0.1.0.tar.gz.
File metadata
- Download URL: pysht-0.1.0.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9f4729ae002fb2a4d3eb923df1ec5fffacfd1ac66fa832edc878d686cec1273
|
|
| MD5 |
d0fb4dc14b0793a6682445bc19cb3956
|
|
| BLAKE2b-256 |
a92c2625ffd9a40460dc0f1ed75746a7bfa5398f414e66b8f2fa8878e3b4bf8f
|
Provenance
The following attestation bundles were made for pysht-0.1.0.tar.gz:
Publisher:
publish.yml on kisungyou/pySHT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysht-0.1.0.tar.gz -
Subject digest:
c9f4729ae002fb2a4d3eb923df1ec5fffacfd1ac66fa832edc878d686cec1273 - Sigstore transparency entry: 2424056444
- Sigstore integration time:
-
Permalink:
kisungyou/pySHT@5528e99ab70ced5743ef29992fc31bf80994723b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kisungyou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5528e99ab70ced5743ef29992fc31bf80994723b -
Trigger Event:
release
-
Statement type:
File details
Details for the file pysht-0.1.0-cp312-abi3-win_amd64.whl.
File metadata
- Download URL: pysht-0.1.0-cp312-abi3-win_amd64.whl
- Upload date:
- Size: 309.3 kB
- Tags: CPython 3.12+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e69d51b7d10dcac93f7653b7e855e7c422c787de5aafbf193bc7aa999b97d18
|
|
| MD5 |
f8d6209929d937a91794acd7bc3c6175
|
|
| BLAKE2b-256 |
0c16a03b9d181b4e7790a2f02ee1798f009b280e826d6dcf4d9c3094843f93bf
|
Provenance
The following attestation bundles were made for pysht-0.1.0-cp312-abi3-win_amd64.whl:
Publisher:
publish.yml on kisungyou/pySHT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysht-0.1.0-cp312-abi3-win_amd64.whl -
Subject digest:
7e69d51b7d10dcac93f7653b7e855e7c422c787de5aafbf193bc7aa999b97d18 - Sigstore transparency entry: 2424057144
- Sigstore integration time:
-
Permalink:
kisungyou/pySHT@5528e99ab70ced5743ef29992fc31bf80994723b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kisungyou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5528e99ab70ced5743ef29992fc31bf80994723b -
Trigger Event:
release
-
Statement type:
File details
Details for the file pysht-0.1.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: pysht-0.1.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 126.1 kB
- Tags: CPython 3.12+, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b42249498ea944d117e13832d3d545931ab5c390afe20f231fc7afe1d7c3929
|
|
| MD5 |
fbc980b9750a379afd88b5718443d369
|
|
| BLAKE2b-256 |
f0362905d51084ba9b5c84124c5cc9121ddf6365b3f029be106d8110578550ee
|
Provenance
The following attestation bundles were made for pysht-0.1.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:
Publisher:
publish.yml on kisungyou/pySHT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysht-0.1.0-cp312-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
1b42249498ea944d117e13832d3d545931ab5c390afe20f231fc7afe1d7c3929 - Sigstore transparency entry: 2424056852
- Sigstore integration time:
-
Permalink:
kisungyou/pySHT@5528e99ab70ced5743ef29992fc31bf80994723b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kisungyou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5528e99ab70ced5743ef29992fc31bf80994723b -
Trigger Event:
release
-
Statement type:
File details
Details for the file pysht-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl.
File metadata
- Download URL: pysht-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl
- Upload date:
- Size: 120.7 kB
- Tags: CPython 3.12+, macOS 11.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
971b61bdbb3292945e11317e3250d97aa70bad13a80fd3c785a6e657e18c1d8e
|
|
| MD5 |
7583bc3bce62b02f57c7c451e8d44186
|
|
| BLAKE2b-256 |
6566dea2193d725e732265c9004da3f1364e3b04d9b070069108646676ce1041
|
Provenance
The following attestation bundles were made for pysht-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl:
Publisher:
publish.yml on kisungyou/pySHT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysht-0.1.0-cp312-abi3-macosx_11_0_x86_64.whl -
Subject digest:
971b61bdbb3292945e11317e3250d97aa70bad13a80fd3c785a6e657e18c1d8e - Sigstore transparency entry: 2424056686
- Sigstore integration time:
-
Permalink:
kisungyou/pySHT@5528e99ab70ced5743ef29992fc31bf80994723b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kisungyou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5528e99ab70ced5743ef29992fc31bf80994723b -
Trigger Event:
release
-
Statement type:
File details
Details for the file pysht-0.1.0-cp312-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pysht-0.1.0-cp312-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 117.7 kB
- Tags: CPython 3.12+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9907fddfa84fab6055d53ef3169dec2920cd3c37b20af94db10c4d48de5a1f28
|
|
| MD5 |
52832e22d6ade26f2fe00473dec971bb
|
|
| BLAKE2b-256 |
79af072cd69cdfa27b3c54cebee924e8471f0b4a777332ef556a3b69ffc94a8b
|
Provenance
The following attestation bundles were made for pysht-0.1.0-cp312-abi3-macosx_11_0_arm64.whl:
Publisher:
publish.yml on kisungyou/pySHT
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysht-0.1.0-cp312-abi3-macosx_11_0_arm64.whl -
Subject digest:
9907fddfa84fab6055d53ef3169dec2920cd3c37b20af94db10c4d48de5a1f28 - Sigstore transparency entry: 2424057031
- Sigstore integration time:
-
Permalink:
kisungyou/pySHT@5528e99ab70ced5743ef29992fc31bf80994723b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kisungyou
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5528e99ab70ced5743ef29992fc31bf80994723b -
Trigger Event:
release
-
Statement type: