7.2 Linear Regression and Residual Analysis
Key Takeaways
- Pearson correlation coefficient r in [-1, +1] measures the strength and direction of linear association, whereas R^2 = r^2 represents the proportion of total variation in Y explained by X.
- Simple linear regression models Y = beta0 + beta1 * X + epsilon, where least-squares slope is beta1-hat = Sxy / Sxx and intercept is beta0-hat = Y-bar - beta1-hat * X-bar.
- Multicollinearity distorts regression coefficients and inflates standard errors; it is detected using Variance Inflation Factor VIF_j = 1 / (1 - R_j^2), where VIF > 5 to 10 indicates severe collinearity.
- Adjusted R^2 penalizes model complexity by accounting for the number of predictors: R_adj^2 = 1 - [ (SS_res/(n-p)) / (SS_tot/(n-1)) ].
- Regression residual validity relies on three core assumptions: normality of residuals (e_i ~ N(0, sigma^2)), homoscedasticity (constant variance), and independence (no autocorrelation).
Regression and correlation analysis are core statistical modeling tools utilized in the Analyze phase to quantify relationships between continuous process inputs ($X$) and continuous output metrics ($Y$). They enable Black Belts to establish empirical transfer functions $Y = f(X)$ for process optimization and control.
Simple Linear Regression Modeling
Simple linear regression fits an empirical straight line to predict a continuous response variable $Y$ from a single continuous predictor variable $X$:
Where:
- $\beta_0$: Intercept parameter (value of $Y$ when $X = 0$).
- $\beta_1$: Slope parameter (change in $Y$ per unit increase in $X$).
- $\epsilon$: Random error term, assumed $\epsilon \sim N(0, \sigma^2)$.
Least Squares Estimation Formulas
Model Evaluation Metrics: $R^2$ and Adjusted $R^2$
Coefficient of Determination ($R^2$)
Represents the proportion of total variation in the response variable $Y$ explained by the regression model:
Adjusted $R^2$ ($R^2_{\text{adj}}$)
Penalizes the model for adding unnecessary predictor variables that do not significantly improve fit:
Where $p$ is the number of predictor terms in the model.
Residual Analysis & Regression Assumptions Verification
Valid linear regression modeling requires checking four residual diagnostic assumptions (LINE):
- Linearity: Residuals plot vs. fitted values shows a random scatter around zero without curvature.
- Independence: Residuals show no autocorrelation across time or observation order (verified via Durbin-Watson statistic).
- Normality: Residuals follow a Normal distribution (verified via Anderson-Darling test, $p > 0.05$).
- Equal Variance (Homoscedasticity): Residual spread remains constant across all predicted values of $\hat{Y}$.
Multiple Linear Regression & Multicollinearity
Multiple linear regression incorporates $p \ge 2$ continuous or dummy predictor variables:
Multicollinearity & Variance Inflation Factor (VIF)
Multicollinearity occurs when predictor variables ($X_i, X_j$) are highly correlated with each other, inflating parameter standard errors. Multicollinearity is evaluated using the Variance Inflation Factor (VIF):
- VIF $< 5$: Acceptable low collinearity.
- VIF $\ge 5 - 10$: High collinearity; model parameters are unstable. Predictors must be centered or removed.
Hypothesis Testing for Regression Parameters
Once a linear regression model is fitted, statistical hypothesis tests evaluate whether regression parameters ($\beta_0, \beta_1$) differ significantly from zero.
1. $t$-Test for Slope Significance ($\beta_1$)
Evaluates $H_0: \beta_1 = 0$ (no linear relationship) vs. $H_a: \beta_1 eq 0$:
Where standard error of slope is:
- Decision Rule: If $|t_0| > t_{\alpha/2, n-2}$ ($p < \alpha$), reject $H_0$. Predictor $X$ significantly influences response $Y$.
2. Analysis of Variance (ANOVA) for Regression Model Significance
Evaluates overall model utility ($H_0: \beta_1 = \beta_2 = \dots = \beta_p = 0$):
| Source of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | $F$-Statistic ($F_0$) |
|---|---|---|---|---|
| Regression (Model) | $\text{SS}_{\text{reg}} = \sum (\hat{y}_i - \bar{y})^2$ | $p$ | $\text{MS}{\text{reg}} = \frac{\text{SS}{\text{reg}}}{p}$ | $F_0 = \frac{\text{MS}{\text{reg}}}{\text{MS}{\text{res}}}$ |
| Residual (Error) | $\text{SS}_{\text{res}} = \sum (y_i - \hat{y}_i)^2$ | $n - p - 1$ | $\text{MS}{\text{res}} = \frac{\text{SS}{\text{res}}}{n - p - 1}$ | |
| Total | $\text{SS}_{\text{total}} = \sum (y_i - \bar{y})^2$ | $n - 1$ |
Worked Simple Linear Regression Example
An chemical engineer models reactor yield $Y$ (%) against reaction temperature $X$ ($^\circ\text{C}$). Data from $n = 10$ pilot runs yields:
- $\bar{x} = 150.0^\circ\text{C}$, $\bar{y} = 82.0%$
- $\text{SS}_{xx} = \sum (x_i - \bar{x})^2 = 2,000.0$
- $\text{SS}_{xy} = \sum (x_i - \bar{x})(y_i - \bar{y}) = 3,600.0$
- $\text{SS}_{yy} = \sum (y_i - \bar{y})^2 = 6,800.0$
1. Calculate Regression Slope & Intercept
- Fitted Regression Model: $\hat{Y} = -188.0 + 1.80 X$
2. Calculate Coefficient of Determination ($R^2$)
- Interpretation: $95.29%$ of the variation in reactor yield is explained by reaction temperature.
Prediction Intervals vs. Confidence Intervals
When predicting $Y$ at a specific predictor setting $X_0$:
- Confidence Interval for Mean Response: Quantifies uncertainty in estimating the expected mean response $E(Y|X_0)$:
- Prediction Interval for Single Future Observation: Quantifies uncertainty in predicting a single future individual value $Y_0$. It is significantly wider because it incorporates individual observation error:
In a multiple linear regression analysis, a predictor variable returns a Variance Inflation Factor VIF = 14.2. How should the Black Belt interpret this result?
A simple linear regression model relating curing temperature to polymer tensile strength yields a coefficient of determination R^2 = 0.81. What is the correct interpretation of this statistic?
When examining a plot of Residuals versus Fitted Values following a linear regression fit, a distinct funnel-shaped spread (expanding residual dispersion as fitted values increase) indicates a violation of which regression assumption?