In Chapter 3, More Than Just One Predictor – MLR, we have seen that the general Multiple Linear Regression (MLR) model for n variables is of the form:
Here, x1, x2,.. xn are the n predictors and y is the only response variable. The coefficients β measure the change in the y value associated with a change of xi, keeping all the other variables constant.
In order to estimate β, we minimized the following term:
The general linear regression model can be expressed using a condensed formulation:
Here, β =[β0, β1, β2,…, βn]. To determine the intercept and the slope through the least squares method, we have to solve the previous equation with respect to β, as follows (we must estimate the coefficients with the normal equation):
To predict a new value of the response variable, given...