Simple Linear Regression (SLR) is a method used to model the linear relationship between two continuous variables.
- Dependent Variable (Y): The outcome or response variable we want to predict.
- Independent Variable (X): The predictor or explanatory variable used to relate Y.
- Goal: To find the straight line that best fits the data, minimizing the sum of squared errors (residuals).
We will use the built-in R dataset trees to illustrate SLR, modeling Volume (Y) as a function of Girth (X).