Fundamentals of Linear regression