Key formulas
Regression Equation
ŷ = a + bx, where b = r × (sᵧ / sₓ) and a = ȳ − b × x̄
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.