Statistical tools for Continuous Process Improvement and Lean Six Sigma
Project description
cpistats
Statistical tools for Continuous Process Improvement (Lean Six Sigma)
  
---
Overview
cpistats is a Python package that provides statistically rigorous and reproducible methods commonly used in Continuous Process Improvement (CPI) and Lean Six Sigma projects.
The library is built around three core principles:
- Correct statistical implementation — methods aligned with established references
- Reproducibility — deterministic, fully parameterized outputs
- Validation — results verified against NIST and Minitab benchmarks
---
Installation
pip install cpistats
---
Quick Start
from cpistats import two\\\_sample\\\_t\\\_test
data1 = \\\[1.4, 1.3, 1.5, 1.3]
data2 = \\\[1.3, 1.2, 1.4, 1.2]
result = two\\\_sample\\\_t\\\_test(
data1,
data2,
delta0=0.1,
alternative="greater",
equal\\\_var=True,
)
print(result.t\\\_statistic)
print(result.p\\\_value)
---
Implemented Methods
Hypothesis Tests
| Method | Description |
|---|---|
anderson\\\_darling\\\_normality |
Anderson–Darling normality test |
one\\\_sample\\\_t\\\_test |
One-sample t-test |
two\\\_sample\\\_t\\\_test |
Two-sample t-test (pooled or Welch) |
Two-sample t-test variants:
- Pooled — assumes equal variances (
equal\\\_var=True) - Welch — assumes unequal variances (
equal\\\_var=False)
---
Validation
All methods are validated against trusted industry references:
- NIST Statistical Reference Datasets (StRD) — numerical accuracy benchmarks
- Minitab (v22) — industry-standard statistical software
Validation Framework
Each validated dataset includes:
- Input data and parameters
- Reference results from the trusted source
- Computed Log Relative Error (LRE) and Log Absolute Error (LAE)
Automated validation is run on every change to ensure numerical accuracy and consistency are maintained.
---
Project Structure
src/cpistats/
├── hypothesis\\\_tests/
│ ├── anderson\\\_darling\\\_normality.py
│ ├── one\\\_sample\\\_t\\\_test.py
│ └── two\\\_sample\\\_t\\\_test.py
├── core/
└── validation/
---
Design Principles
- Deterministic outputs — same inputs always produce the same results
- Explicit parameter control — no hidden defaults (e.g.,
delta0,alternative,equal\\\_var) - Industrial alignment — behavior matches Minitab and other trusted tools
- Transparent and testable logic — clean, auditable code
---
Roadmap
Planned additions:
- [ ] Paired t-test
- [ ] Nonparametric tests (Sign test, Wilcoxon signed-rank test)
- [ ] Confidence intervals
- [ ] Effect size metrics (Cohen's d, Hedges' g)
- [ ] Statistical Process Control (SPC) charts
---
License
This project is licensed under the MIT License.
---
Author
Alexandre Torres
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cpistats-0.1.1.tar.gz.
File metadata
- Download URL: cpistats-0.1.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7536cde32f903840a61276656fae7dee2e6fcd1eba9991b4f5324233443219a4
|
|
| MD5 |
07d901ff5bbfa7a9f07c544fd2e2e554
|
|
| BLAKE2b-256 |
ad4aeea0d544f74079ccae5af9a49e1b92cbca93eb09b37def941eb593dd51ec
|
File details
Details for the file cpistats-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cpistats-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
029899d4919faf30656dcd55dcc09e1fbc381cf255d00e2370c957da82c766d6
|
|
| MD5 |
abca84a459318cd242a269380e6b5df1
|
|
| BLAKE2b-256 |
d674a5f20fdf6e3dc73a91e497b66d5d2e026100615fd7f447382d533dd06eff
|