This is a simple linear regression model for cars using the mtcars library.
We consider the relationship between \(x\) and \(y\)
We can write the relationship as: \[ y_i = \beta_0 + \beta_1 x_i + \epsilon_i \]
where
- \(\beta_0\): intercept
- \(\beta_1\): slope
- \(\epsilon_i\): random error term