simple linear regression quality
Project description
Simple Linear Regression:
An analysis of the quality of the regression is carried out
Table of Contents
Simple Linear Regression Assumptions:
- Outlier: The term anomaly indicates that there is data that deviates significantly from the rest.
- Normality: refers to the normal distribution of errors or residuals.
- Homoscedasticity: is another simple linear regression assumption and indicates whether the variance of the residuals is the same across different groups in the database.
- Independence: refers to the absence of temporal correlation between residuals.
- 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
Release history Release notifications | RSS feed
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
File details
Details for the file sl_regression_quality-0.2.1.tar.gz
.
File metadata
- Download URL: sl_regression_quality-0.2.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29534b7609ce221ab29b4610e488e76b6f2bf3af2261162b1ba7082a6854223e |
|
MD5 | 0af5be43bd6e9bdfe7a1bb4abb624cf4 |
|
BLAKE2b-256 | fbabb97d4217d8aa64ca6705067e9d9abcb13d696898c07a1cefa0e2e6303bc5 |
File details
Details for the file sl_regression_quality-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: sl_regression_quality-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66c2b358c542bbe14e7560d42b081861d2a1a6062d4eceb3188cb479ef9b84ee |
|
MD5 | b217cfcf1c6d114513d5c724ee24c55e |
|
BLAKE2b-256 | 920e4a0ad0c24ec095b1d1490b45f7e981053d688d2f0c11862aec8fdab6bfc0 |