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
npm install --save simple-linear-regression
Usage: see test.js
MIT © Dennis Iversen