Tom-Alexander/regression-js

Polynomial regression returns blatantly incorrect results

ecc521 opened this issue · 0 comments

Linear Regression:
Screen Shot 2021-08-08 at 8 15 26 PM

Quartic Regression:
Screen Shot 2021-08-08 at 8 17 21 PM

This issue is caused by rounding being done mid-calculations, which has a massively bigger impact on higher order regressions. Rounding after the fact would prevent this issue, and improve performance.