Skip to main content

tolint

Free core of TolInt: tolerance intervals for normal data.

The problem You need an interval that covers a stated proportion of the population with stated confidence, for a spec limit or a capability claim. A confidence interval covers a parameter, a prediction interval covers one future point. Neither answers "where do 95% of the parts fall". This does.

What it does norm_tol_int(x) gives a two-sided tolerance interval by Howe's approximation (the form Minitab reports), and one-sided intervals are exact via the noncentral t distribution. norm_k_factor(n) gives the k-factor directly (interval = xbar +/- k*s). lognormal=True handles lognormal data through the standard log transform. Search terms: tolerance interval Python, normal tolerance interval, k factor tolerance, Howe tolerance interval.

Limits Normal data only (lognormal through the log transform). The exact two-sided interval (Witkovsky) is not in this free core, and neither are distribution-free intervals or sample-size planning. No CLI.

Install

pip install tolint

Needs Python 3.9 or newer, NumPy, and SciPy.

from tolint import norm_tol_int
import numpy as np
x = np.array([10.1, 9.8, 10.3, 10.0, 9.9, 10.2, 10.1, 9.7, 10.0, 10.2])
iv = norm_tol_int(x, P=0.95)
print(iv.lower, iv.upper)

This is the free core: normal tolerance intervals (Howe two-sided, exact one-sided) and k-factors, with lognormal support. The full version ($30, one-time) adds the exact two-sided Witkovsky interval, two-sided nonparametric Wilks intervals, and sample-size planning: https://groundplane0.gumroad.com/l/zxhmnx

Metadata

Release files for tolint 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tolint 0.1.0
File Size Uploaded
tolint-0.1.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tolint 0.1.0
File Interpreter ABI Platform
tolint-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / tolint-0.1.0.tar.gz

Download URL tolint-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
03842e4e5888969bf1a1ddd8cd6c927371e55ab7e3f29ef7440e501e9a0a0221
BLAKE2b-256 checksum
How to use checksums
e56cde88181f2800cb867d8ca51734e1028c9653e3cf1ef33ab39bd51fd0b641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / tolint-0.1.0-py3-none-any.whl

Download URL tolint-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
613d7263e06cefc336d2794f7da268cfe17228073f4f47d0e95e675e723c7294
BLAKE2b-256 checksum
How to use checksums
53c61d4d6354e21c76cee2b246f87ab4e02c15055844379433e9a8f00baf5ea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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