The Essence of Linear Regression
Linear regression finds the optimal line through data by minimizing the sum of squared residuals (the 'least squares' method), enabling predictions that can be evaluated for accuracy using R-squared—a metric comparing the model's performance against simply using the mean value.