14 See problem 01. Calculate the residual for the predicted…