Attempts to predict outcomes of a dependent variable based on an independent variable
Linear Regression equation \(y = \beta_0 + \beta_1 x + \epsilon\)
- \(y\) is the dependent variable
- \(\beta_0\) is the intercept
- \(\beta_1\) is the regression coefficient (slope)
- \(x\) is the independent variable
- \(\epsilon\) is the error term
Using Least Squares Method to minimize the sum of residuals
\(\beta_1 = \frac{n\sum(xy) - {\sum}x{\sum}y}{n{\sum}x^2 - ({\sum}x)^2}\)
\(\beta_0 = \frac{{\sum}y - \beta_1{\sum}x}{n}\)