All sections
§12.3Reference material onlyIn class Mon, Nov 30

The Regression Equation

Introductory Statistics 2e, Chapter 12, p. 623

Reference notes. A concise summary for orientation — not yet a full NoviLearn lesson with practice and mastery tracking.

The least-squares regression line y^=a+bx\hat{y} = a + bxy^​=a+bx is the line that makes the sum of squared residuals (SSE) as small as possible. The correlation coefficient rrr measures the strength and direction of the linear relationship.

Key ideas

  • Slope b=rsysxb = r\frac{s_y}{s_x}b=rsx​sy​​; intercept a=yˉ−bxˉa = \bar{y} - b\bar{x}a=yˉ​−bxˉ. The line passes through (xˉ,yˉ)(\bar{x}, \bar{y})(xˉ,yˉ​).
  • −1≤r≤1-1 \le r \le 1−1≤r≤1; values near ±1\pm 1±1 are strong, near 0 weak. rrr has no units and the same sign as bbb.
  • r2r^2r2 (coefficient of determination) is the fraction of the variation in yyy explained by the line.
  • Residual =y−y^= y - \hat{y}=y−y^​ (observed minus predicted). Correlation does not imply causation.
Least-squares regression line
y^=a+bx,b=r sysx,a=yˉ−bxˉ\hat{y} = a + bx, \qquad b = r\,\frac{s_y}{s_x}, \qquad a = \bar{y} - b\bar{x}y^​=a+bx,b=rsx​sy​​,a=yˉ​−bxˉ
Correlation coefficient
r=n∑xy−(∑x)(∑y)[n∑x2−(∑x)2][n∑y2−(∑y)2]r = \frac{n\sum xy - \left(\sum x\right)\left(\sum y\right)}{\sqrt{\left[n\sum x^2 - \left(\sum x\right)^2\right]\left[n\sum y^2 - \left(\sum y\right)^2\right]}}r=[n∑x2−(∑x)2][n∑y2−(∑y)2]​n∑xy−(∑x)(∑y)​
Coefficient of determination
r2r^2r2

Textbook: OpenStax Introductory Statistics 2e (CC BY-NC-SA 4.0). Access for free at openstax.org.