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 () and continuous output metrics (). They enable Black Belts to establish empirical transfer functions for process optimization and control.
Simple Linear Regression Modeling
Simple linear regression fits an empirical straight line to predict a continuous response variable from a single continuous predictor variable :
Where:
- : Intercept parameter (value of when ).
- : Slope parameter (change in per unit increase in ).
- : Random error term, assumed .
Least Squares Estimation Formulas
Model Evaluation Metrics: and Adjusted
Coefficient of Determination ()
Represents the proportion of total variation in the response variable explained by the regression model:
Adjusted ()
Penalizes the model for adding unnecessary predictor variables that do not significantly improve fit:
Where 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, ).
- Equal Variance (Homoscedasticity): Residual spread remains constant across all predicted values of .
Multiple Linear Regression & Multicollinearity
Multiple linear regression incorporates continuous or dummy predictor variables:
Multicollinearity & Variance Inflation Factor (VIF)
Multicollinearity occurs when predictor variables () are highly correlated with each other, inflating parameter standard errors. Multicollinearity is evaluated using the Variance Inflation Factor (VIF):
- VIF : Acceptable low collinearity.
- VIF : 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 () differ significantly from zero.
1. -Test for Slope Significance ()
Evaluates (no linear relationship) vs. :
Where standard error of slope is:
- Decision Rule: If (), reject . Predictor significantly influences response .
2. Analysis of Variance (ANOVA) for Regression Model Significance
Evaluates overall model utility ():
| Source of Variation | Sum of Squares (SS) | Degrees of Freedom (df) | Mean Square (MS) | -Statistic () |
|---|---|---|---|---|
| Regression (Model) | ||||
| Residual (Error) | ||||
| Total |
Worked Simple Linear Regression Example
An chemical engineer models reactor yield (%) against reaction temperature (). Data from pilot runs yields:
- ,
1. Calculate Regression Slope & Intercept
- Fitted Regression Model:
2. Calculate Coefficient of Determination ()
- Interpretation: of the variation in reactor yield is explained by reaction temperature.
Prediction Intervals vs. Confidence Intervals
When predicting at a specific predictor setting :
- Confidence Interval for Mean Response: Quantifies uncertainty in estimating the expected mean response :
- Prediction Interval for Single Future Observation: Quantifies uncertainty in predicting a single future individual value . 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?
The predictor explains 14.2% of the variance in the response variable
The model has acceptable collinearity and requires no adjustments
The predictor exhibits negligible linear association with other model inputs
Severe multicollinearity exists, inflating coefficient variance and requiring predictor removal or transformation
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?
81% of the total variation in tensile strength is explained by the linear relationship with curing temperature
The Pearson correlation coefficient between temperature and strength is r = 0.81
The regression model slope is statistically significant at alpha = 0.19
81% of data points fall exactly on the calculated regression line
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?
Linearity of parameter estimates
Homoscedasticity (constant variance of residuals)
Independence of observations
Normality of error terms
Sections you finish are checked off in the contents.