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).

Last updated: August 2026

Regression and correlation analysis are core statistical modeling tools utilized in the Analyze phase to quantify relationships between continuous process inputs (XX) and continuous output metrics (YY). They enable Black Belts to establish empirical transfer functions Y=f(X)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 YY from a single continuous predictor variable XX:

Y=β0+β1X+ϵY = \beta_0 + \beta_1 X + \epsilon

Where:

  • β0\beta_0: Intercept parameter (value of YY when X=0X = 0).
  • β1\beta_1: Slope parameter (change in YY per unit increase in XX).
  • ϵ\epsilon: Random error term, assumed ϵ∼N(0,σ2)\epsilon \sim N(0, \sigma^2).

Least Squares Estimation Formulas

β^1=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2=r(sysx)\hat{\beta}_1 = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (x_i - \bar{x})^2} = r \left( \frac{s_y}{s_x} \right) β^0=yˉ−β^1xˉ\hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x}

Model Evaluation Metrics: R2R^2 and Adjusted R2R^2

Coefficient of Determination (R2R^2)

Represents the proportion of total variation in the response variable YY explained by the regression model:

R2=SSregressionSStotal=1−SSresidualSStotalR^2 = \frac{\text{SS}_{\text{regression}}}{\text{SS}_{\text{total}}} = 1 - \frac{\text{SS}_{\text{residual}}}{\text{SS}_{\text{total}}}

Adjusted R2R^2 (Radj2R^2_{\text{adj}})

Penalizes the model for adding unnecessary predictor variables that do not significantly improve fit:

Radj2=1−[(1−R2)(n−1)n−p−1]R^2_{\text{adj}} = 1 - \left[ \frac{(1 - R^2)(n - 1)}{n - p - 1} \right]

Where pp 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):

  1. Linearity: Residuals plot vs. fitted values shows a random scatter around zero without curvature.
  2. Independence: Residuals show no autocorrelation across time or observation order (verified via Durbin-Watson statistic).
  3. Normality: Residuals follow a Normal distribution (verified via Anderson-Darling test, p>0.05p > 0.05).
  4. Equal Variance (Homoscedasticity): Residual spread remains constant across all predicted values of Y^\hat{Y}.

Multiple Linear Regression & Multicollinearity

Multiple linear regression incorporates p≥2p \ge 2 continuous or dummy predictor variables:

Y=β0+β1X1+β2X2+⋯+βpXp+ϵY = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \dots + \beta_p X_p + \epsilon

Multicollinearity & Variance Inflation Factor (VIF)

Multicollinearity occurs when predictor variables (Xi,XjX_i, X_j) are highly correlated with each other, inflating parameter standard errors. Multicollinearity is evaluated using the Variance Inflation Factor (VIF):

VIFi=11−Ri2\text{VIF}_i = \frac{1}{1 - R_i^2}
  • VIF <5< 5: Acceptable low collinearity.
  • VIF ≥5−10\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 (β0,β1\beta_0, \beta_1) differ significantly from zero.

1. tt-Test for Slope Significance (β1\beta_1)

Evaluates H0:β1=0H_0: \beta_1 = 0 (no linear relationship) vs. Ha:β1≠0H_a: \beta_1 \neq 0:

t0=β^1SE(β^1)t_0 = \frac{\hat{\beta}_1}{\text{SE}(\hat{\beta}_1)}

Where standard error of slope is:

SE(β^1)=se∑(xi−xˉ)2=MSresidualSSxx\text{SE}(\hat{\beta}_1) = \frac{s_e}{\sqrt{\sum (x_i - \bar{x})^2}} = \frac{\sqrt{\text{MS}_{\text{residual}}}}{\sqrt{\text{SS}_{xx}}}
  • Decision Rule: If ∣t0∣>tα/2,n−2|t_0| > t_{\alpha/2, n-2} (p<αp < \alpha), reject H0H_0. Predictor XX significantly influences response YY.

2. Analysis of Variance (ANOVA) for Regression Model Significance

Evaluates overall model utility (H0:β1=β2=⋯=βp=0H_0: \beta_1 = \beta_2 = \dots = \beta_p = 0):

Source of VariationSum of Squares (SS)Degrees of Freedom (df)Mean Square (MS)FF-Statistic (F0F_0)
Regression (Model)SSreg=∑(y^i−yˉ)2\text{SS}_{\text{reg}} = \sum (\hat{y}_i - \bar{y})^2ppMSreg=SSregp\text{MS}_{\text{reg}} = \frac{\text{SS}_{\text{reg}}}{p}F0=MSregMSresF_0 = \frac{\text{MS}_{\text{reg}}}{\text{MS}_{\text{res}}}
Residual (Error)SSres=∑(yi−y^i)2\text{SS}_{\text{res}} = \sum (y_i - \hat{y}_i)^2n−p−1n - p - 1MSres=SSresn−p−1\text{MS}_{\text{res}} = \frac{\text{SS}_{\text{res}}}{n - p - 1}
TotalSStotal=∑(yi−yˉ)2\text{SS}_{\text{total}} = \sum (y_i - \bar{y})^2n−1n - 1

Worked Simple Linear Regression Example

An chemical engineer models reactor yield YY (%) against reaction temperature XX (∘C^\circ\text{C}). Data from n=10n = 10 pilot runs yields:

  • xˉ=150.0∘C\bar{x} = 150.0^\circ\text{C}, yˉ=82.0%\bar{y} = 82.0\%
  • SSxx=∑(xi−xˉ)2=2,000.0\text{SS}_{xx} = \sum (x_i - \bar{x})^2 = 2,000.0
  • SSxy=∑(xi−xˉ)(yi−yˉ)=3,600.0\text{SS}_{xy} = \sum (x_i - \bar{x})(y_i - \bar{y}) = 3,600.0
  • SSyy=∑(yi−yˉ)2=6,800.0\text{SS}_{yy} = \sum (y_i - \bar{y})^2 = 6,800.0

1. Calculate Regression Slope & Intercept

β^1=SSxySSxx=3,600.02,000.0=1.80%/∘C\hat{\beta}_1 = \frac{\text{SS}_{xy}}{\text{SS}_{xx}} = \frac{3,600.0}{2,000.0} = 1.80\%/^\circ\text{C} β^0=yˉ−β^1xˉ=82.0−(1.80×150.0)=82.0−270.0=−188.0%\hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x} = 82.0 - (1.80 \times 150.0) = 82.0 - 270.0 = -188.0\%
  • Fitted Regression Model: Y^=−188.0+1.80X\hat{Y} = -188.0 + 1.80 X

2. Calculate Coefficient of Determination (R2R^2)

SSreg=β^1SSxy=1.80×3,600.0=6,480.0\text{SS}_{\text{reg}} = \hat{\beta}_1 \text{SS}_{xy} = 1.80 \times 3,600.0 = 6,480.0 R2=SSregSSyy=6,480.06,800.0=0.9529  ⟹  95.29%R^2 = \frac{\text{SS}_{\text{reg}}}{\text{SS}_{\text{yy}}} = \frac{6,480.0}{6,800.0} = 0.9529 \implies 95.29\%
  • Interpretation: 95.29%95.29\% of the variation in reactor yield is explained by reaction temperature.

Prediction Intervals vs. Confidence Intervals

When predicting YY at a specific predictor setting X0X_0:

  • Confidence Interval for Mean Response: Quantifies uncertainty in estimating the expected mean response E(Y∣X0)E(Y|X_0): y^0±tα/2,n−2 se1n+(x0−xˉ)2SSxx\hat{y}_0 \pm t_{\alpha/2, n-2} \, s_e \sqrt{\frac{1}{n} + \frac{(x_0 - \bar{x})^2}{\text{SS}_{xx}}}
  • Prediction Interval for Single Future Observation: Quantifies uncertainty in predicting a single future individual value Y0Y_0. It is significantly wider because it incorporates individual observation error: y^0±tα/2,n−2 se1+1n+(x0−xˉ)2SSxx\hat{y}_0 \pm t_{\alpha/2, n-2} \, s_e \sqrt{1 + \frac{1}{n} + \frac{(x_0 - \bar{x})^2}{\text{SS}_{xx}}}
Loading diagram...
Regression Residual Diagnostics and Validation Workflow
Test Your Knowledge

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

The predictor explains 14.2% of the variance in the response variable

B

The model has acceptable collinearity and requires no adjustments

C

The predictor exhibits negligible linear association with other model inputs

D

Severe multicollinearity exists, inflating coefficient variance and requiring predictor removal or transformation

Test Your Knowledge

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?

A

81% of the total variation in tensile strength is explained by the linear relationship with curing temperature

B

The Pearson correlation coefficient between temperature and strength is r = 0.81

C

The regression model slope is statistically significant at alpha = 0.19

D

81% of data points fall exactly on the calculated regression line

Test Your Knowledge

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?

A

Linearity of parameter estimates

B

Homoscedasticity (constant variance of residuals)

C

Independence of observations

D

Normality of error terms

Sections you finish are checked off in the contents.