Multiple linear regression with the Ordinary Least Squares (OLS) method…