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