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

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.51
File Size Uploaded Provenance Actions
statsx-0.1.51.tar.gz 136.9 kB Without provenance Details for statsx-0.1.51.tar.gz

Built distributions (wheels)

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

Total release size: 2.8 MB

Release files / statsx-0.1.51.tar.gz

Download URL statsx-0.1.51.tar.gz
Size 136.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a88e6bab15c30bcf81866a46c7cbf8e6a6040c2d1ccce6fb67f46982a59e757
BLAKE2b-256 checksum
How to use checksums
872bb4ca42942fb1d3f10dde8b41e9ee17eb637633ac247a09b5ac2716dc4137
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.51-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL statsx-0.1.51-cp311-abi3-musllinux_1_2_x86_64.whl
Size 446.7 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
9297cefc1e776254fcb1a3908016fcce9b82cd52d0113ccf04b05b736b112f7b
BLAKE2b-256 checksum
How to use checksums
53eb70f0dce30fc428c0ae61222f5611b2b53182492e7aa2938ff9d364386f14
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.51-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL statsx-0.1.51-cp311-abi3-musllinux_1_2_aarch64.whl
Size 430.0 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
c0518957e1a9cb7116a8115afb77584a6fc654923aa7515dfc58d7e797cee612
BLAKE2b-256 checksum
How to use checksums
dc61b414f747a3ca5597b2d9fac86ee894f81299d7d928c733a23eccd34daa58
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.51-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL statsx-0.1.51-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 448.1 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
27d8f20ecf34e91d5e96655592c89299e3ff7b22f7c2c4acfc807dfc54ff6510
BLAKE2b-256 checksum
How to use checksums
2ff25671f6275079b8c37cb962a15dffe1308a10ac59aa0e15129fb69b39ccc7
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.51-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL statsx-0.1.51-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 431.4 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
7af88c52e0d1beefff855f6ac2825c12dba7680df83608aef1ad2c47426d2ab5
BLAKE2b-256 checksum
How to use checksums
3415fc4231b3f8d2bb283475a9f73da8d36e826471cf79d45b336130f28d66cb
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.51-cp311-abi3-macosx_11_0_x86_64.whl

Download URL statsx-0.1.51-cp311-abi3-macosx_11_0_x86_64.whl
Size 449.8 kB
Tags CPython 3.11 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
00fe23ab279eeb0afa31bf6fa28d8c95a99bb4fec99aa65c126b5f5d5db37c47
BLAKE2b-256 checksum
How to use checksums
30247a1c937ed56eb104874821b6db835ce8355521b62ada5c9f888ef5e22f37
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.51-cp311-abi3-macosx_11_0_arm64.whl

Download URL statsx-0.1.51-cp311-abi3-macosx_11_0_arm64.whl
Size 436.3 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
40d213e433d66e6e43797731729de35c9cdd81bad853f5349f4674775d344626
BLAKE2b-256 checksum
How to use checksums
a5872295fd35c1266379e91bb276b344cac53bb8b4e85b38a152bc01e226771a
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.51

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