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.44

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.44
File Size Uploaded Provenance Actions
statsx-0.1.44.tar.gz 133.3 kB Without provenance Details for statsx-0.1.44.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for statsx 0.1.44
File Actions
statsx-0.1.44-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for statsx-0.1.44-cp311-abi3-musllinux_1_2_x86_64.whl
statsx-0.1.44-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for statsx-0.1.44-cp311-abi3-musllinux_1_2_aarch64.whl
statsx-0.1.44-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.44-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
statsx-0.1.44-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for statsx-0.1.44-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
statsx-0.1.44-cp311-abi3-macosx_11_0_x86_64.whl CPython 3.11 abi3 macOS 11.0+ x86-64 Details for statsx-0.1.44-cp311-abi3-macosx_11_0_x86_64.whl
statsx-0.1.44-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for statsx-0.1.44-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 2.8 MB

Release files / statsx-0.1.44.tar.gz

Download URL statsx-0.1.44.tar.gz
Size 133.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4a0a85d26e6d76fcbc9dc55014bb81b804027ccc98a522ad7559dd70b8344522
BLAKE2b-256 checksum
How to use checksums
3f5d5b490c5ab3f08fbc06b131e59891e8e3a239acbfb02332160a3c8a8e23d5
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.44-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL statsx-0.1.44-cp311-abi3-musllinux_1_2_x86_64.whl
Size 442.9 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
6aa85c24d9fe43c4550d8a4def98fa247dbaf67abbb52a9b2b1fdaca10a11a63
BLAKE2b-256 checksum
How to use checksums
fd3227ed12ac63c2f24b07d532a88e7e97f89a989429067450f3fa60cb0f0f58
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.44-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL statsx-0.1.44-cp311-abi3-musllinux_1_2_aarch64.whl
Size 426.5 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
2195980cd5fede65d8787f727a388d4bf5ae5d35ec5f6e852ba913a1d6dd7067
BLAKE2b-256 checksum
How to use checksums
f76cda58f5c575debc5d9181afc730f8ff741c40c56035b4f0c7fbb0f5468130
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.44-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL statsx-0.1.44-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 444.4 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
6defbfeef83d46d6239e2ee102c561a4bad79316b5deb5a88b3375fe09827941
BLAKE2b-256 checksum
How to use checksums
fc9750086088678501b39603eaf73b730db97b8fff461f2e1f3778fcaba230c9
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.44-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL statsx-0.1.44-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 427.8 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
0bc629ace6292ff65eeef38ce5c3872dad884a75c63ccc9f879047c51244343a
BLAKE2b-256 checksum
How to use checksums
d7ff54beaddad63fedf19af8f7e61ea52f7bff8a1afb04b703eecd78294b5f27
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.44-cp311-abi3-macosx_11_0_x86_64.whl

Download URL statsx-0.1.44-cp311-abi3-macosx_11_0_x86_64.whl
Size 446.1 kB
Tags CPython 3.11 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
f019061707d5ddb6992200d90900027f85cdf7ab6f39e98ea0a7c05ca923d846
BLAKE2b-256 checksum
How to use checksums
98b1ec1e4dd5db4ff07b21c22b3cc3f1bf56750dd52cd2964cb5336b4b84d3c4
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.44-cp311-abi3-macosx_11_0_arm64.whl

Download URL statsx-0.1.44-cp311-abi3-macosx_11_0_arm64.whl
Size 432.7 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
25711c1c05ee89a0c540771af68167bc66f157b0069378f67b6eca15796ada74
BLAKE2b-256 checksum
How to use checksums
2c1dd58929b1b4b3fd4719e704c364876b822af179b9637115026d58052676f9
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.44

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.44 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