For a multiple linear regression model of the form of Eq. (4), the total electricity is the response variable and the outdoor dry-bulb temperature and the global horizontal radiation (GHR) are the predictor variables. Using the matrix form of Eq. (9) in a MathCads code or the Regression function on the Excel Data Analysis package, the model for the hourly energy consumption is found to be