Skip to main content

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.

Residuals vs Fitted 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

olscheck-0.1.8.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

olscheck-0.1.8-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

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

Hashes for olscheck-0.1.8.tar.gz
Algorithm Hash digest
SHA256 47c7a0d6f5046b1765b70be4f43a964394949dce111d130f93c74b595185da79
MD5 6a1bcf4d666e58878a4491cb3daa9429
BLAKE2b-256 46aee43e9863299552b5e252bcbc1319c4c725c0a6652a46248de6a8f772f1a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for olscheck-0.1.8.tar.gz:

Publisher: publish.yml on janrth/olscheck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for olscheck-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ea1841c09b9c0e822a26ea0581f62832f4a5fb1347d84a0192ea1080846e17a7
MD5 550f3c8c0eac51d1f7c938ec82aab955
BLAKE2b-256 c7fa2c2ba2f28381f917d517c1b21d72ee1eace0663ae23da92e2d31ada3ae23

See more details on using hashes here.

Provenance

The following attestation bundles were made for olscheck-0.1.8-py3-none-any.whl:

Publisher: publish.yml on janrth/olscheck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page