Linear regression vs. Generalized linear models (GLM): What’s the difference?
Linear Regression Definition
Linear Regression is a modelling approach that assumes a linear relationship between an output (a.k.a. “dependent variables”) and one or more inputs (a.k.a. “independent variables”).
Here are a few examples of linear regression models in life :
- Weight(as Y) as a function of a person’s Height (as X)
- Report Happiness (as Y) as a function of Income (as X)
- Sales Revenue (as Y) as a function of Marketing Budget (as X)
Assumptions for Linear Regression
- Linear relationship between inputs(s) and output
- Output variable is continuous and unbounded
- Residuals are normally distributed (or follows student-t distribution, if you want to allow for greater variance). Residuals are also called “errors” as they measure how well the regression line fits the data.