DEV Community

Discussion on: Algorithm explained: Linear regression using gradient descent with PHP

Collapse
 
isitar profile image
Isitar (Pascal Lüscher)

Typo in "The definition of a linear function"

f(x) = ax + b, not f(x) = a + bx. since you describe a as the slope variable & b as the intersection with the y axis at x = 0.

Collapse
 
thormeier profile image
Pascal Thormeier

Fixed! Thank you for pointing it out, might have been confusing for someone. 🙂