What is a linear regression?
A linear regression is a mathematical-statistical way to express the linear relation between an outcome/response variable, and one ore more explanatory variables.
For example how can a persons weight can be expressed as a function of his height?
In this example - the weight is the outcome/response variable, and the height is the explanatory variables.
If we take a random sample of 10 mens heights and weights, we would for example get something like this:
| height (cm) | weight (kg) |
|---|---|
| 160 | 60 |
| 180 | 85 |
| 175 | 81 |
| 201 | 87 |
| 188 | 77 |
| 173 | 74 |
| 182 | 80 |
| 166 | 72 |
| 192 | 91 |
| 178 | 86 |