Residual values in linear regression analysis need to be calculated…