Linear models (LMs) provide a simple, yet effective, approach to predictive modeling. Moreover, when…