nshiab / simple-data-analysis

Easy-to-use and high-performance JavaScript library for data analysis. Works with tabular and geospatial data.
https://nshiab.github.io/simple-data-analysis/
MIT License
244 stars 14 forks source link

Adding regression to the charts https://observablehq.com/@fil/plot-regression #56

Closed nshiab closed 2 years ago

nshiab commented 2 years ago

And maybe a method like correlation but for linearRegression

nshiab commented 2 years ago

Since we already use simple-statistics in our library, let's use https://simplestatistics.org/docs/#linearregression and https://simplestatistics.org/docs/#linearregressionline