spacings
This python package implements several test statistics based on spacings, i.e. the spaces between ordered samples. The API is similar to scipy's tests, such as the kstest.
Installation
pip install spacings
Usage Example
import numpy as np
from spacings import rps, moran
from scipy.stats import kstest, cramervonmises
Generate random samples
rand = np.random.RandomState(0)
uniform = rand.rand(100)
- RPS test:
>>> rps(uniform, "uniform")
RPStestResult(statistic=0.9861622857523498, pvalue=0.6747286655166371)
- Moran test:
>>> moran(uniform, "uniform")
MorantestResult(statistic=525.7712608675467, pvalue=0.3920410695917047)
- KS test (scipy):
>>> kstest(uniform, "uniform")
KstestResult(statistic=0.0736727958814345, pvalue=0.6226614157861845)
- Cramer von Mises test (scipy):
>>> cramervonmises(uniform, "uniform")
CramerVonMisesResult(statistic=0.1203440927515015, pvalue=0.4947678804693505)
Metadata
Release files for spacings 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spacings-0.0.5.tar.gz | 4.2 MB | Without provenance | Details for spacings-0.0.5.tar.gz |
Release files / spacings-0.0.5.tar.gz
| Download URL | spacings-0.0.5.tar.gz |
|---|---|
| Size | 4.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86841c32ad032681bf529388f54cb3acdf8564e32703be1c300683bb195883af
|
|
BLAKE2b-256 checksum How to use checksums |
68900c162636e0ac462b73f4802cad93ad253e34dcd84805e6ca799f838bf69c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2
|
Security for spacings 0.0.5
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.