Skip to main content

statsx

pipeline status PyPI version Python versions License: MIT

Statistics for Python with its own Rust core: Bayesian inference, forecasting, causal impact, tests and design, with NumPy as the only dependency.

Install

pip install statsx

Requires Python 3.12 or newer. NumPy is the only run-time dependency.

Quickstart

An interval for a proportion, 7 successes in 40 trials:

from statsx.proportion import proportion_interval

print(proportion_interval(7, 40, method="wilson"))
Estimate(estimate=0.175, interval=Interval(lower=0.0874541374603592, upper=0.3194999033178771, level=0.95), n=40, assumption='independent trials with one success probability; Wilson score interval')

Every result carries its estimate, its interval, the sample size and the assumption it rests on.

What it does

Each method is written in Rust from a published paper, and its docstring lists the references. The methods pages state the model, the formulas and the guarantee.

  • Forecasting: trend with forecast and anomalies, causal impact, rolling-origin backtest.
  • Duration models: estimated time to finish, from past durations and from progress.
  • Intervals: proportions, bootstrap (percentile, basic, BCa), effect sizes, credible intervals.
  • Bayes: conjugate updates, lognormal prior from an expert interval, P(A > B).
  • Tests: multiple testing, equivalence (TOST), paired tests, agreement (kappa, alpha).
  • Decisions: Monte Carlo cost, expected value of information, break-even.
  • Calibration: reliability, Brier decomposition, Platt scaling, isotonic regression.
  • Design: power, sample size, minimum detectable effect, group sequential bounds.
  • Sequential: confidence sequences, e-values, Thompson sampling, best-arm identification.
  • Distributions: fits from sufficient statistics, goodness of fit at an effective sample size.

Contributing

Developer setup, the dev loop, and the release process live in CONTRIBUTING.md. In short: uv sync && make install-hooks, then make check runs the same gate CI runs.

License

MIT © 2026 Jorge Cardona (see LICENSE).

Metadata

Release files for statsx 0.1.36

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

Source distribution (sdist)

Source distribution for statsx 0.1.36
File Size Uploaded Provenance Actions
statsx-0.1.36.tar.gz 108.6 kB Without provenance Details for statsx-0.1.36.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for statsx 0.1.36
File Actions
statsx-0.1.36-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for statsx-0.1.36-cp311-abi3-musllinux_1_2_x86_64.whl
statsx-0.1.36-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for statsx-0.1.36-cp311-abi3-musllinux_1_2_aarch64.whl
statsx-0.1.36-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for statsx-0.1.36-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
statsx-0.1.36-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for statsx-0.1.36-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
statsx-0.1.36-cp311-abi3-macosx_11_0_x86_64.whl CPython 3.11 abi3 macOS 11.0+ x86-64 Details for statsx-0.1.36-cp311-abi3-macosx_11_0_x86_64.whl
statsx-0.1.36-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for statsx-0.1.36-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 2.6 MB

Release files / statsx-0.1.36.tar.gz

Download URL statsx-0.1.36.tar.gz
Size 108.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9bfe23a6b07a9e57699e723095572947cf970918376b3e6b577b130144b07fee
BLAKE2b-256 checksum
How to use checksums
e40f74af96dd7648f14ffcc6a95ba819139b5681bd5c298d572878f684836a64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / statsx-0.1.36-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL statsx-0.1.36-cp311-abi3-musllinux_1_2_x86_64.whl
Size 413.9 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
ed5377c6775f459ef3ff0e81f80b3b67cc25adb373b0016615ac0a37c0a76314
BLAKE2b-256 checksum
How to use checksums
b0e5d3ced6b1ec5b0be6ccb4c9e8995e3e6fb2b0598062f29839ffff4555cac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / statsx-0.1.36-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL statsx-0.1.36-cp311-abi3-musllinux_1_2_aarch64.whl
Size 397.9 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
36d988b62deacc9c048769cf15839ed7f3ab2f287a9a7f50e68be3a49e3f28b9
BLAKE2b-256 checksum
How to use checksums
978b735200b658189c269a59333d1fe461e703764f68b6854f917ada8e982c04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / statsx-0.1.36-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL statsx-0.1.36-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 415.4 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
4fd37a3114b8844a3b8f4c325fb63269f6982f5a8759e9d7da2cd52462f02876
BLAKE2b-256 checksum
How to use checksums
d887d9607576d8f770c08ee6081c1c20886580c094351b0f28ed1746e1d8eae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / statsx-0.1.36-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL statsx-0.1.36-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 399.2 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
29c48b345c82034b144f1827d8fc8632cd587d0c735e486c1fbcbac6e5c5e84d
BLAKE2b-256 checksum
How to use checksums
7db62158e992ff7bd0a2b39f53fb1bdf139f5ab95b2e41dbcb4218cce84daee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / statsx-0.1.36-cp311-abi3-macosx_11_0_x86_64.whl

Download URL statsx-0.1.36-cp311-abi3-macosx_11_0_x86_64.whl
Size 417.0 kB
Tags CPython 3.11 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
eb393c25a1eb698ddd2b7a2f3f199c6023eff5937c8e153336606f733da600c3
BLAKE2b-256 checksum
How to use checksums
19bdb4b548f61aa5a910c5ef8a341ecb601b37f62e8c36dfdb5e913ce2cbc927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / statsx-0.1.36-cp311-abi3-macosx_11_0_arm64.whl

Download URL statsx-0.1.36-cp311-abi3-macosx_11_0_arm64.whl
Size 403.7 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
366aadf35ce5278c45e1303e8d853e3cd1fee170bbe701c3cfd8f5fcc3428d82
BLAKE2b-256 checksum
How to use checksums
856230eb61f4c4e42214f7c64a47f592c71260b04094bf8b86d45eee2c7482bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.7

Security for statsx 0.1.36

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.1.36 This release

7 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