PracticeVideosBlogFlashcards

6.7 Regression & Correlation Analysis

Key Takeaways

  • Pearson's correlation coefficient (r) measures the strength and direction of a linear relationship between two continuous variables, bounded strictly between -1.0 and +1.0.

  • The coefficient of determination (R²) quantifies the proportion of total variation in the response variable (y) explained by the linear regression model (R² = SSR / SST = 1 - SSE / SST).

  • Simple linear regression models the functional relationship y = β0 + β1 x + ε, estimating parameters via Ordinary Least Squares (OLS) to minimize the Sum of Squared Errors (SSE).

  • Model assumptions (LINE: Linearity, Independence, Normality, Equal variance/Homoscedasticity) must be validated through systematic residual diagnostics (e_i = y_i - ŷ_i).

  • A statistically significant correlation does not imply causation; confounding process variables, non-linearities, and influential leverage points must be thoroughly investigated.

Last updated: July 2026

6.7 Regression & Correlation Analysis

In continuous process improvement, quality engineers frequently need to investigate relationships between process input variables (xx, independent predictor) and product output parameters (yy, dependent response). Correlation analysis quantifies the strength and direction of linear association, while regression analysis develops a mathematical model to predict yy from xx and optimize process settings.


1. Pearson Correlation Coefficient (rr)

The sample Pearson correlation coefficient (rr) measures the strength and direction of a linear relationship between two continuous variables:

r=SxySxxSyy=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2∑(yi−yˉ)2r = \frac{S_{xy}}{\sqrt{S_{xx} S_{yy}}} = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum (x_i - \bar{x})^2 \sum (y_i - \bar{y})^2}}

Properties of rr:

  • Strictly bounded: −1.0≤r≤+1.0-1.0 \le r \le +1.0.
  • r=+1.0r = +1.0: Perfect positive linear association.
  • r=−1.0r = -1.0: Perfect negative linear association.
  • r=0.0r = 0.0: No linear association (nonlinear patterns may still exist).

Testing Statistical Significance of rr:

To test whether a sample correlation rr indicates a non-zero population correlation (ρ≠0\rho \neq 0), calculate the tt-statistic with df=n−2df = n - 2:

tcalc=rn−21−r2t_{calc} = \frac{r \sqrt{n - 2}}{\sqrt{1 - r^2}}

2. Coefficient of Determination (R2R^2)

The coefficient of determination (R2R^2) represents the proportion of total variability in response yy explained by the linear model:

R2=r2=SSRSST=1−SSESSTR^2 = r^2 = \frac{SSR}{SST} = 1 - \frac{SSE}{SST}
  • SST=∑(yi−yˉ)2SST = \sum (y_i - \bar{y})^2: Total Sum of Squares
  • SSR=∑(y^i−yˉ)2SSR = \sum (\hat{y}_i - \bar{y})^2: Regression Sum of Squares (Explained variation)
  • SSE=∑(yi−y^i)2SSE = \sum (y_i - \hat{y}_i)^2: Error Sum of Squares (Unexplained variation)

Interpretation Example: If r=0.90r = 0.90, then R2=0.81R^2 = 0.81. This means 81%81\% of the variation in the response variable is explained by the linear relationship with xx, while 19%19\% is due to unexplained random noise or unmeasured process variables.


3. Simple Linear Regression Model & OLS Parameter Estimation

Simple linear regression models a linear relationship between predictor xx and response yy:

y=β0+β1x+εy = \beta_0 + \beta_1 x + \varepsilon

where β0\beta_0 is the population y-intercept, β1\beta_1 is the population slope, and ε∼N(0,σ2)\varepsilon \sim N(0, \sigma^2) is the random error term.

Ordinary Least Squares (OLS) Estimators

OLS estimates parameters β^0\hat{\beta}_0 and β^1\hat{\beta}_1 by minimizing the sum of squared residuals ∑ei2=∑(yi−y^i)2\sum e_i^2 = \sum (y_i - \hat{y}_i)^2:

Estimated Slope:β^1=SxySxx=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2\text{Estimated Slope:} \quad \hat{\beta}_1 = \frac{S_{xy}}{S_{xx}} = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (x_i - \bar{x})^2} Estimated Intercept:β^0=yˉ−β^1xˉ\text{Estimated Intercept:} \quad \hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x} Fitted Regression Line:y^=β^0+β^1x\text{Fitted Regression Line:} \quad \hat{y} = \hat{\beta}_0 + \hat{\beta}_1 x

4. Model Assumptions & Residual Diagnostics (LINE)

For OLS regression estimates and hypothesis tests to be valid, four underlying assumptions regarding residuals (ei=yi−y^ie_i = y_i - \hat{y}_i) must be satisfied (LINE acronym):

  1. Linearity: The true relationship between xx and yy is linear.
  2. Independence: Residuals are independent of one another (no autocorrelation over time).
  3. Normality: Residuals are normally distributed with mean zero (ei∼N(0,σ2)e_i \sim N(0, \sigma^2)).
  4. Equal Variance (Homoscedasticity): Residual variance is constant across all predicted values y^\hat{y} and predictor values xx.

Residual Plot Diagnostics:

  • Residuals vs. Fitted Values (y^\hat{y}): Should show a random scatter of points around zero. A funnel pattern indicates non-constant variance (heteroscedasticity); a curved pattern indicates non-linearity.
  • Normal Probability Plot of Residuals: Points should align closely along a straight diagonal line.

5. Worked Example: Regression of Adhesive Bond Strength on Cure Temperature

Scenario: A quality engineer evaluates how cure temperature (xx in ∘C^\circ\text{C}) affects adhesive bond strength (yy in MPa\text{MPa}). A sample of n=5n = 5 experimental runs produces the following summary statistics:

  • xˉ=100∘C,yˉ=50 MPa\bar{x} = 100^\circ\text{C}, \quad \bar{y} = 50\text{ MPa}
  • Sxx=∑(xi−xˉ)2=250S_{xx} = \sum (x_i - \bar{x})^2 = 250
  • Syy=∑(yi−yˉ)2=160S_{yy} = \sum (y_i - \bar{y})^2 = 160
  • Sxy=∑(xi−xˉ)(yi−yˉ)=180S_{xy} = \sum (x_i - \bar{x})(y_i - \bar{y}) = 180

Step-by-Step Regression Solution:

  1. Calculate Slope (β^1\hat{\beta}_1): β^1=SxySxx=180250=0.72 MPa/∘C\hat{\beta}_1 = \frac{S_{xy}}{S_{xx}} = \frac{180}{250} = 0.72\text{ MPa}/^\circ\text{C}
  2. Calculate Intercept (β^0\hat{\beta}_0): β^0=yˉ−β^1xˉ=50−0.72(100)=50−72=−22.0 MPa\hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x} = 50 - 0.72(100) = 50 - 72 = -22.0\text{ MPa}
  3. Formulate Fitted Regression Equation: y^=−22.0+0.72x\hat{y} = -22.0 + 0.72 x
  4. Calculate Pearson Correlation (rr) and R2R^2: r=SxySxxSyy=180250×160=18040000=180200=0.90r = \frac{S_{xy}}{\sqrt{S_{xx} S_{yy}}} = \frac{180}{\sqrt{250 \times 160}} = \frac{180}{\sqrt{40000}} = \frac{180}{200} = 0.90 R2=(0.90)2=0.81(81% of variation explained)R^2 = (0.90)^2 = 0.81 \quad (81\% \text{ of variation explained})
  5. Prediction Example: For a cure temperature of x=110∘Cx = 110^\circ\text{C}: y^=−22.0+0.72(110)=−22.0+79.2=57.2 MPa\hat{y} = -22.0 + 0.72(110) = -22.0 + 79.2 = 57.2\text{ MPa}
Loading diagram...
Residual Plot Diagnostics for Regression Model Validation
Test Your Knowledge

A linear regression analysis relating solder temperature (x) to void percentage (y) yields a sample correlation coefficient of r = -0.85. What is the coefficient of determination R², and how is it interpreted?

A

R² = 0.7225; 72.25% of the total variability in void percentage is explained by solder temperature.

B

R² = -0.7225; Void percentage decreases by 72.25% for every unit increase in solder temperature.

C

R² = 0.8500; 85.00% of the total variability is unexplained noise.

D

R² = 0.1500; The linear fit explains only 15% of the total process variation.

Test Your Knowledge

For a sample of n = 10 pairs of observations, a regression analysis yields S_xx = 400 and S_xy = 600. If the mean of x is x̄ = 20 and the mean of y is ȳ = 50, what is the estimated y-intercept β̂0?

A

1.5

B

20.0

C

30.0

D

35.0

Test Your Knowledge

When inspecting residual diagnostic plots for a simple linear regression model, a funneling pattern (expanding spread of residuals as predicted values ŷ increase) indicates a violation of which underlying OLS assumption?

A

Linearity of the relationship

B

Independence of residuals

C

Constant variance of errors (Homoscedasticity)

D

Normality of residual distribution

Sections you finish are checked off in the contents.