Skip to content

MoinDalvs/Learn_Simple_Linear_Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Learn_Simple_Linear_Regression

Predicting Adipose Tissue with the help of Waist Circumference

Import libraries

Import data

Correlation

Fitting a Linear Regression Model

Predict for new data point

Mean Squared Error (MSE)

Root Mean Squared Error (RMSE)

WC-AT example

image

Creating model with SKLearn

Model Validation

Model with Statsmodels

Applying Transformations

  • y = 𝛼 *log(x) + 𝛽
  • log(y) = 𝛼 *x + 𝛽
  • log(y) = 𝛼x + 𝛼𝑥2 + 𝛽
  • BoxCox Transformation