Linear Regression implementation

Homework 1.