Skip to content

Dkwizard01/LinearRegression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Implementations of regression algorithms in C#

This repository will ultimately contain implementations of the three most common regression algorithms in C#: simple, multivariate and quadratic.

Simple linear regression

Currently, only simple linear regression has been implemented, about which more information you can find here. For this implementation the Ordinary Least Squares (OLS) method is used.

Formulas

Best fit line:

$\hat{y}_i=b_0+b_1x_i$

Intercept/bias:

$b_0=\bar{y}-b_1\bar{x}$

Slope/weight:

$b_1=\frac{\sum_{i=1}^{n}(x_i-\bar{x})(y_i-\bar{y})}{\sum_{i=1}^{n}(x_i-\bar{x})^2}$

Mean Squared Error (MSE):

$\sum_{i=1}^{D}(x_i-y_i)^2$

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages