Skip to content

KVD51/Regression_From_Scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Regression_From_Scratch.py is a program that will fit a regression line to a set of x,y values. The program does not use the Scikit-learn LinearRegression function.

Slope and intercept gradients are calculated and used to iterate through possible slope and intercept values until the best values are found. A regression line is plotted based on the best slope and intercept values. The purpose is to illustrate knowledge of regression analysis.

A set of data points are provided within the code. Try changing the values to plot a different regression line fit to the values.

Matplotlib is used to plot the data points as well as the regression line.

About

Regression_From_Scratch.py is a program that will fit a regression line to a set of x,y values. The program does not use the Scikit-learn LinearRegression function. Slope and intercept gradients are calculated and used to iterate through possible slope and intercept values until the best values are found. A regression line is plottedc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages