MoinDalvs / Learn_Simple_Linear_Regression

Learn about Simple Linear Regression for Data Science

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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