OlsCheck
olscheck is a Python library designed to check and visualize the assumptions of Ordinary Least Squares (OLS). This tool streamlines the process of model diagnostics, offering an all-in-one solution for analyzing residuals, leverage, and multi-collinearity.
Sample of Residuals vs Fitted values visualization
Features
- Residuals vs Fitted Plot: Visualize potential non-linear patterns.
- QQ-Plot: Check the normality of residuals.
- Scale-Location Plot: Confirm homoscedasticity.
- Leverage Plot: Identify influential cases.
- VIF Test: Assess multi-collinearity among predictors.
Background
Much of the code for this library is inspired by Statsmodels. However, the Statsmodels implementation is tightly coupled with its own components, making it challenging to use if you are employing OLS from a different library.
OlsCheck provides a straightforward alternative for generating key diagnostic plots that assess the assumptions underlying Ordinary Least Squares (OLS) regression. The library internally calculates residuals, leverage, and studentized residuals to deliver these insights.
Installation
pip install olscheck
Development setup (uv)
uv sync --group test
uv run pytest
Metadata
Release files for olscheck 0.1.8
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 | |
|---|---|---|---|---|
| olscheck-0.1.8.tar.gz | 8.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| olscheck-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.8 kB
Release files / olscheck-0.1.8.tar.gz
| Download URL | olscheck-0.1.8.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47c7a0d6f5046b1765b70be4f43a964394949dce111d130f93c74b595185da79
|
|
BLAKE2b-256 checksum How to use checksums |
46aee43e9863299552b5e252bcbc1319c4c725c0a6652a46248de6a8f772f1a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 18, 2026.
Transparency logRelease files / olscheck-0.1.8-py3-none-any.whl
| Download URL | olscheck-0.1.8-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea1841c09b9c0e822a26ea0581f62832f4a5fb1347d84a0192ea1080846e17a7
|
|
BLAKE2b-256 checksum How to use checksums |
c7fa2c2ba2f28381f917d517c1b21d72ee1eace0663ae23da92e2d31ada3ae23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 18, 2026.
Transparency logSecurity for olscheck 0.1.8
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for olscheck-0.1.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 18, 2026.
Transparency logA 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.