Simple linear regression models the relationship between two variables by fitting a straight line to the observed data.
- One independent variable (
x) - One dependent variable (
y) - Goal: predict
yusingx
The equation of the line is:
\(\hat{y} = \beta_0 + \beta_1 x\)
Where:
- \(\beta_0\) is the intercept
- \(\beta_1\) is the slope
- \(\hat{y}\) is the predicted value of y given x