Variable Relationships › Multiple Linear Regression: Multiple Predictors
Machine Learning from ScratchAll chapters Variable Relationships › Multiple Linear Regression: Multiple PredictorsOne section · Sections in this chapter6 / 11 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Real-world phenomena typically depend on multiple factors rather than a single predictor. Multiple linear regression extends simple regression to model the relationship between a dependent variable and multiple independent variables simultaneously. This approach allows us to estimate the effect of each predictor while controlling for the others.
The multiple linear regression model is:
Where:
- : Dependent variable
- : Independent variables (predictors)
- : Intercept
- : Regression coefficients
- : Error term
Each coefficient represents the expected change in for a one-unit change in , holding all other predictors constant. This "holding constant" interpretation is important: it means we're estimating the partial effect of each variable, adjusting for the influence of other variables in the model. This capability makes multiple regression particularly useful for disentangling the effects of correlated predictors.
In matrix notation, the model can be written compactly as , and the OLS solution is . This formulation reveals the mathematical elegance of regression and enables efficient computational implementation.
While multiple regression with many predictors is difficult to visualize fully, we can illustrate the concept with two predictors. The regression model fits a plane through three-dimensional space, predicting Y from both X₁ and X₂.
