An open API service indexing awesome lists of open source software.

https://github.com/diversen/simple-linear-regression

nodejs module for calculating a simple regression line from bivariate data using the 'linear least squares'
https://github.com/diversen/simple-linear-regression

linear-least-squares linear-regression

Last synced: over 1 year ago
JSON representation

nodejs module for calculating a simple regression line from bivariate data using the 'linear least squares'

Awesome Lists containing this project

README

          

# simple-regression-line

In statistics, a regression line is a line that best describes the behavior of a set of data. In other words, it’s a line that best fits the trend of a given data.

Calculate a very simple regression line from bivariate data.

This function uses the 'equation of the least-squares line'

See: [Linear least squares](https://en.wikipedia.org/wiki/Linear_least_squares_(mathematics))

## Install:

npm install --save simple-linear-regression

Usage: see [test.js](test.js)

## License

MIT © [Dennis Iversen](https://github.com/diversen)