Statistics for experiments and forecasts, with a Rust extension and NumPy the only dependency
Actively maintained. Last release 1 day ago. A safe choice.
pip install statsxREADME as published on PyPI with version 0.1.93.
statsx
Statistics for experiments, model evaluations and forecasts, where every method has a page that states what it assumes.
Which method do I use? · API reference · Changelog
Overview
statsx covers intervals, Bayesian updates, tests, sequential tests, experiment design, model comparison and forecasting of count series. Each method has a methods page with the model, the formulas and what it assumes. Part of the numerical code is a Rust extension inside the wheel, and NumPy is the only dependency.
Status: beta.
Install
pip install statsx
Requires Python 3.12 or newer. Wheels for Linux and macOS; other platforms build from source with a Rust toolchain. NumPy is the only run-time dependency.
Quickstart
An interval for a proportion, 7 successes in 40 trials:
from statsx.proportion import proportion_interval
result = proportion_interval(7, 40, method="wilson")
print(result.estimate)
print(result.interval)
print(result.n)
print(result.assumption)