In regression analysis, both simple linear regression and multiple linear…