Key formulas
From the Regression & Correlation formula sheet
- Least-Squares Regression Line:
yhat = a + bx— Line that minimizes the sum of squared residuals. - Pearson Correlation:
r = sum((x_i-xbar)(y_i-ybar)) / sqrt(sum((x_i-xbar)^2)sum((y_i-ybar)^2))— Measures direction and strength of a linear association.