StatTest-Pro: A/B Testing & Hypothesis Verification Engine
StatTest-Pro is an end-to-end A/B testing analysis framework designed for Product and Growth teams. It calculates required sample sizes, enforces statistical rigor by auto-detecting anomalies like Sample Ratio Mismatches (SRM), evaluates hypothesis tests, and auto-generates executive reports.
Features
- Sample Size & Power Calculation: Compute minimum requirements pre-test based on MDE, Alpha, and Power.
- Safety Invariants (SRM): Automatically check for Sample Ratio Mismatch via Chi-Square Goodness-of-Fit. Halts automatic evaluation if $p < 0.01$.
- Statistical Evaluation: Welch's T-Test and Z-tests for proportional/continuous metrics, computing $p$-values and 95% Confidence Intervals.
- Automated Reporting: Generates 1-page HTML/PDF summary reports with clear visual distributions and business recommendations.
Directory Structure
docs/- Comprehensive project documentation.stattest_pro/- Core framework source code.tests/- Pytest suite validating statistical invariants.notebooks/- Interactive examples and use cases.
Quick Start
# Install the framework from PyPI
pip install stattest-pro
Or build from source:
git clone https://github.com/Bibek-Dhakal/StatTest-Pro.git
cd StatTest-Pro
# Install the framework locally
pip install -e .[dev,notebooks]
# Run the test suite
pytest
Check out the docs/usage.md guide for code
examples, or view the interactive notebook in the notebooks/ directory. Once you run an evaluation, open the generated
.html report in any web browser to view the final outcome.
License
MIT License. See LICENSE.
Metadata
Release files for stattest-pro 0.2.0
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 |
|---|---|---|---|---|
| stattest_pro-0.2.0.tar.gz | 8.8 kB | Without provenance | Details for stattest_pro-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stattest_pro-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for stattest_pro-0.2.0-py3-none-any.whl |
Total release size: 16.8 kB
Release files / stattest_pro-0.2.0.tar.gz
| Download URL | stattest_pro-0.2.0.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffcc9a10721060c18bb3ade15b3cfd2b3e3ff995aa36c99fd3654524f121ea50
|
|
BLAKE2b-256 checksum How to use checksums |
749d2db18cdf17256d1ac730b153fe44337e1569239019c4d7c4bed9ae279d70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / stattest_pro-0.2.0-py3-none-any.whl
| Download URL | stattest_pro-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e66ac8020f3189086dd8ee4564ee8c82f2e76e8d6044267d25b7a0aa05a46021
|
|
BLAKE2b-256 checksum How to use checksums |
c90d4f2065a1c42ef3244def4313d215d1659629670653ee9cd186f88ff4d00d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for stattest-pro 0.2.0
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.