Skip to content

This repo contains code to create a simple Linear Regression model in 3 different ways: 1) Python - using statsmodels 2) Python - using sklearn and 3) R using the linear model (lm) function. This code demonstrates how each method returns the same variable coefficients, p-values and other valuable test statistics.

Notifications You must be signed in to change notification settings

GabriellaCerrai/Simple-Linear-Regression-3-Ways-

About

This repo contains code to create a simple Linear Regression model in 3 different ways: 1) Python - using statsmodels 2) Python - using sklearn and 3) R using the linear model (lm) function. This code demonstrates how each method returns the same variable coefficients, p-values and other valuable test statistics.

Topics

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published