Gradient Descent and the Normal Equation for Linear Regression with Practical Implemetation in…