Residual and predicted Y have an important role in linear…