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 ($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$:

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

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

β^1=(xixˉ)(yiyˉ)(xixˉ)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: $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:

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

Adjusted $R^2$ ($R^2_{\text{adj}}$)

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

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

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

  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.05$).
  4. 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:

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 ($X_i, X_j$) are highly correlated with each other, inflating parameter standard errors. Multicollinearity is evaluated using the Variance Inflation Factor (VIF):

VIFi=11Ri2\text{VIF}_i = \frac{1}{1 - R_i^2}

  • 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$:

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

Where standard error of slope is:

SE(β^1)=se(xixˉ)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 $|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 VariationSum 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

β^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.0270.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: $\hat{Y} = -188.0 + 1.80 X$

2. Calculate Coefficient of Determination ($R^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%$ 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)$: y^0±tα/2,n2se1n+(x0xˉ)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 $Y_0$. It is significantly wider because it incorporates individual observation error: y^0±tα/2,n2se1+1n+(x0xˉ)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
B
C
D
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
B
C
D
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
B
C
D