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 main_routine import sl_regression_quality

#--------------------------------------------------------------------------------
# 2) Load data
dataset = pd.read_csv('../data/Data_carne_new.csv')
df = pd.read_csv('../data/pruebaResolu.csv')
alpha = 0.05
dL = 1.055

# 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
sl_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.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

SL_regression_quality-0.1.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file SL-regression-quality-0.1.0.tar.gz.

File metadata

  • Download URL: SL-regression-quality-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 75a630946ece90923e0a32621df6c0ebc1cf6d02e9fe1da2b4451f733a325c10
MD5 274a3232c5ee75780bdfa1bb631ac1aa
BLAKE2b-256 855bd5d687d70254114e2ca90628ddbedca3cc75fa09b7a726bea9915c985e0a

See more details on using hashes here.

File details

Details for the file SL_regression_quality-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for SL_regression_quality-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fa137a20bc06a87f01fe4818a5c44bad409bea24d1405cb1d1261be530b119d
MD5 036807c321f9427448fec9f5a980e4e3
BLAKE2b-256 5c4cc5a243c2e5c1368300963d89ec89ec29d6e579ec600a9e436c7600cf3344

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