Skip to main content

simple linear regression quality

Project description

Simple Linear Regression:

An analysis of the quality of the regression is carried out

methodology

Table of Contents

Simple Linear Regression Assumptions:

  1. Outlier: The term anomaly indicates that there is data that deviates significantly from the rest.
  2. Normality: refers to the normal distribution of errors or residuals.
  3. Homoscedasticity: is another simple linear regression assumption and indicates whether the variance of the residuals is the same across different groups in the database.
  4. Independence: refers to the absence of temporal correlation between residuals.
  5. Linearity: is associated with the presence of a constant change of the variable to be predicted with respect to the predictor.

Simple linear regression Quality

Installation

Instructions on how to install the project. For example:

pip install sl-regression-quality

Code Example

For instance, the following code can be executed in Google Colab. Simply copy and paste it into a new Colab notebook.

#--------------------------------------------------------------------------------
# 1) Load libraries:
import pandas as pd 
from sl_regression_quality.main_routine import regression_quality

#--------------------------------------------------------------------------------
# 2) Load data
dataset = pd.read_csv('./data/Data.csv') # your data
df = pd.read_csv('./data/Data_EY.csv') # your data
alpha = 0.05 # significance level
dL = 1.055 # dL

# Total:
x=dataset.iloc[:27,1:2].values
y=dataset.iloc[:27,2:3].values
y_res = df.iloc[:,3:6].values
#--------------------------------------------------------------------------------
# 3) Run analysis
regression_quality(x,y,alpha,dL,y_res)

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

sl_regression_quality-0.2.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

sl_regression_quality-0.2.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file sl_regression_quality-0.2.0.tar.gz.

File metadata

  • Download URL: sl_regression_quality-0.2.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for sl_regression_quality-0.2.0.tar.gz
Algorithm Hash digest
SHA256 094860fe3fc063973cc1db8d65950562957e7e4ad97f24df16e817bbca2a8073
MD5 64a219288c04a1c6236d66fa159d4668
BLAKE2b-256 27bf0f81f4fe8c760bf480708a37b23a50a03d50c2d49bad5e1ac1bc2d7af5b9

See more details on using hashes here.

File details

Details for the file sl_regression_quality-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sl_regression_quality-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9701e466a39bd130fa604bac8627378b643213bf2241085e5a668622d46525e3
MD5 8701dbe36f976a4f704a1ebed51aa257
BLAKE2b-256 e7ad8b4003dd9cdc28b0c039fcdb20c686bdea6f4d6d5bc457fd94427e909ed8

See more details on using hashes here.

Supported by

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