Multiple Linear Regression With Matrices
Extends the matrix formulation of linear regression to the case of multiple predictors. Students learn to build the design matrix when there are predictors, apply the normal equation to compute least-squares estimates, and use the fitted model to predict the response at a new observation.
Step 1 of 119%
Tutorial
The Multiple Linear Regression Model in Matrix Form
In multiple linear regression, we model a response as a linear combination of predictors plus an intercept:
Given observations , we stack the equations into matrix form:
where the design matrix has a leading column of s (for the intercept) followed by one column per predictor:
This is the same matrix form used for simple linear regression. The only change is that now has columns instead of , and has entries instead of .