Linear Regression is used to model the relationship between two variables by fitting a linear equation to observed data.
\[ y = \beta_0 + \beta_1 x + \epsilon \]
Where:
- \(y\): the dependent variable, what we want to predict about the data
- \(\beta_0\): the intercept, the value of \(y\) when \(x\) is 0
- \(\beta_1\): the slope of the regression line, the change in \(y\) for a one-unit change in \(x\)
- \(x\): the independent variable, the predictor or input variable
- \(\epsilon\): the error term, the difference between the actual and predicted values of \(y\)