Simple linear regression models the relation between some variable \(X\) and it’s dependent variable \(Y\).
We are exploring the relationship between:
- wt: weight of the car (predictor variable)
- mpg: miles per gallon (dependent variable)
The model:
\[ Y = \beta_0 + \beta_1 X + \varepsilon \]
Assumptions
- Linearity: The relationship between X and Y is linear.
- Independence: Observations are independent of each other.
- Homoscedasticity: Variance of residuals is constant.
- Normality: Residuals are normally distributed.