A library to check OLS assumptions.
Project description
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
Project details
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 olscheck-0.1.8.tar.gz.
File metadata
- Download URL: olscheck-0.1.8.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47c7a0d6f5046b1765b70be4f43a964394949dce111d130f93c74b595185da79
|
|
| MD5 |
6a1bcf4d666e58878a4491cb3daa9429
|
|
| BLAKE2b-256 |
46aee43e9863299552b5e252bcbc1319c4c725c0a6652a46248de6a8f772f1a3
|
Provenance
The following attestation bundles were made for olscheck-0.1.8.tar.gz:
Publisher:
publish.yml on janrth/olscheck
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
olscheck-0.1.8.tar.gz -
Subject digest:
47c7a0d6f5046b1765b70be4f43a964394949dce111d130f93c74b595185da79 - Sigstore transparency entry: 833829712
- Sigstore integration time:
-
Permalink:
janrth/olscheck@be7b4906f525ff15c81931d21471c5b533d6d721 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/janrth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@be7b4906f525ff15c81931d21471c5b533d6d721 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file olscheck-0.1.8-py3-none-any.whl.
File metadata
- Download URL: olscheck-0.1.8-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea1841c09b9c0e822a26ea0581f62832f4a5fb1347d84a0192ea1080846e17a7
|
|
| MD5 |
550f3c8c0eac51d1f7c938ec82aab955
|
|
| BLAKE2b-256 |
c7fa2c2ba2f28381f917d517c1b21d72ee1eace0663ae23da92e2d31ada3ae23
|
Provenance
The following attestation bundles were made for olscheck-0.1.8-py3-none-any.whl:
Publisher:
publish.yml on janrth/olscheck
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
olscheck-0.1.8-py3-none-any.whl -
Subject digest:
ea1841c09b9c0e822a26ea0581f62832f4a5fb1347d84a0192ea1080846e17a7 - Sigstore transparency entry: 833829715
- Sigstore integration time:
-
Permalink:
janrth/olscheck@be7b4906f525ff15c81931d21471c5b533d6d721 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/janrth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@be7b4906f525ff15c81931d21471c5b533d6d721 -
Trigger Event:
workflow_dispatch
-
Statement type: