Chapter 12: Simple Linear Regression

  • LSRL (Least Squares Regression Line): haty=b0+b1xhat y = b_0 + b_1x

    • Slope (b1)(b_1): For every 1-unit increase in xx, the predicted/expected yy changes by b1b_1 units.

    • Intercept (b0):(b_0): The predicted/expected value of yy when x=0x=0 (only meaningful if x=0x=0 is realistic and within the data range).

    • Extrapolation Warning: Do not use the regression equation to predict yy for x−valuesx-values outside the observed range of data

  • Redisuals (ei):(e_i):

    • ei=yi−y^ie_i = y_i - \hat y_i (Observed - Predicted)

    • Positive residual (yi>y^i):(y_i > \hat y_i): Model under-predicted the actual value.

    • Negative residual (yi<y^i):(y_i < \hat y_i): Model over-predicted the actual value.

    • Residual Plot Check: Look for random scatter around 0 with no curved pattern or fanning out (constant variance).

  • Correlation (r)( r) & Coefficient of Determination (R2):( R²):

    • r:r: Measures strength and direction of the linear relationship (−1≤r≤1).(-1 \le r \le 1). Sign of rr always matches the sign of the slope b1b_1.

    • R2=r2=SSRegressionSSTotal:R² = r² = {SS_{Regression} \over {SS_{Total}} }: The proportion/percentage of variation in yy explained by the linear relationship with xx.

  • Standard Deviation of Errors (s)(s):

    • s=MSE=SSEn−2s=\sqrt{MSE} = \sqrt{SSE \over n-2}

  • Inference for Slope (df=n−2):(df = n - 2):

    • Hypotheses: H0:β1=0H_0: \beta_1 =0 (no linear relationship) vs. HA:β1≠0H_A: \beta_1 \ne 0 (significant linear relationship).

    • Test Statistic: t∗=b1SE(b1)t^* = {b_1 \over SE(b_1)} (Note: in simple linear regression, F∗=(t∗)2F^* = (t^*)² and both yield the exact same pp-value).