Multiple linear regression
In all previous examples we have been working with one dependent variable and one independent variable, but in many cases we will find that we have many independent variables we want to include in our model. Some examples could be:
- Perceived quality of wine (dependent) and acidity, density, alcohol level, residual sugar, and sulphate content (independent variables)
- Student average grades (dependent) and family income, distance home-school, and mother education (independent variables)
In such a cases, we will have the mean of the dependent variable modeled as:
Notice that this is not exactly the same as the polynomial regression ...
Get Bayesian Analysis with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.