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

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.6.tar.gz (8.0 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.6-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file olscheck-0.1.6.tar.gz.

File metadata

  • Download URL: olscheck-0.1.6.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for olscheck-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cbca388af6878d0b87a6bdac7108183cd7698a4655dcdfb5a5e400bd310c673e
MD5 a9d086db6b464ba4d6c8bab2f186f5f1
BLAKE2b-256 8fa87ee71733211d5002fcb06ef204ba9404a0ee7a653c72df0d17f1e8dfb00b

See more details on using hashes here.

File details

Details for the file olscheck-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: olscheck-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for olscheck-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 68c5ad6a608f1fe0e4333ef1628d3854ec921cc17fc1295c757a17d36b212ec8
MD5 a37c94bbc34496b209ba2ab0401d11ab
BLAKE2b-256 3a3c6087dce8a3ab92c518a0e8905b48c463781e4fce7a0ebeb3cdebb40a6839

See more details on using hashes here.

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