https://medium.com/@monocosmo77/how-least-square-estimation-method-is-used-part2-machine-learning-5b9927383d59