Hello Thomas ! I am happy that you found this useful.

The values of m and c I got are straight from the jupyter notebook. You can find it here: https://github.com/chasinginfinity/ml-from-scratch/tree/master/02%20Linear%20Regression%20using%20Gradient%20Descent

And its a very interesting thing you did there. Everything you did is perfectly correct and the values are also correct. I prepared this colab to help you understand what exactly is going on, and why the values are not what you expected

Check it out and let me know if you have more questions or clarifications :)

I make websites and teach machines to predict stuff. I also make YouTube videos — https://www.youtube.com/adarshmenon

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