Linear regression is a statistical method used to model the relationship between a dependent variable and one or more independent variables by fitting a linear equation to the observed data. It is commonly used for predictive analysis and modeling
The formula for a simple linear regression line is given by:
\[ Y = \alpha + \beta_1X + \epsilon \]
Where: - \(Y\) is the dependent variable.
\(X\) is the independent variable.
\(\alpha\) is the intercept.
\(\beta_1\) is the slope.
\(\epsilon\) represents the error term.