Simple Linear Regression — Theory, Math, And Implementation In JavaScript

The simple linear regression is a predictive algorithm that provides a linear relationship between one input (x) and a predicted result (y).

We’re taking a look at how you can do it by hand and then implement a function in JavaScript that does exactly this for us.

The simple linear regression

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store