Multiple linear regression is a technique used to train a linear model, that assumes that there are linear relationships between multiple predictor variables () and a continuous target variable (
). The general equation for a multiple linear regression with m predictor variables is as follows:
![](https://static.packt-cdn.com/products/9781789136609/graphics/assets/088198d7-1233-4571-9fcc-61c6dba157ad.png)
![](https://static.packt-cdn.com/products/9781789136609/graphics/assets/19a78dc6-d3ee-4492-b89e-6d42851d79b0.png)
Training a linear regression model involves estimating the values of the coefficients for each of the predictor variables denoted by the letter . In the preceding equation,
denotes an error term, which is normally distributed, and has zero mean and constant variance. This is represented as follows:
![](https://static.packt-cdn.com/products/9781789136609/graphics/assets/8302e115-092f-45d0-b4be-8689554c67a9.png)
Various techniques can be used to build a linear regression model. The most frequently used is the ordinary least square (OLS) estimate. The OLS method is used to produce a linear regression line...