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.
6.7 Regression & Correlation Analysis
In continuous process improvement, quality engineers frequently need to investigate relationships between process input variables ($x$, independent predictor) and product output parameters ($y$, dependent response). Correlation analysis quantifies the strength and direction of linear association, while regression analysis develops a mathematical model to predict $y$ from $x$ and optimize process settings.
1. Pearson Correlation Coefficient ($r$)
The sample Pearson correlation coefficient ($r$) measures the strength and direction of a linear relationship between two continuous variables:
Properties of $r$:
- Strictly bounded: $-1.0 \le r \le +1.0$.
- $r = +1.0$: Perfect positive linear association.
- $r = -1.0$: Perfect negative linear association.
- $r = 0.0$: No linear association (nonlinear patterns may still exist).
Testing Statistical Significance of $r$:
To test whether a sample correlation $r$ indicates a non-zero population correlation ($\rho \neq 0$), calculate the $t$-statistic with $df = n - 2$:
2. Coefficient of Determination ($R^2$)
The coefficient of determination ($R^2$) represents the proportion of total variability in response $y$ explained by the linear model:
- $SST = \sum (y_i - \bar{y})^2$: Total Sum of Squares
- $SSR = \sum (\hat{y}_i - \bar{y})^2$: Regression Sum of Squares (Explained variation)
- $SSE = \sum (y_i - \hat{y}_i)^2$: Error Sum of Squares (Unexplained variation)
Interpretation Example: If $r = 0.90$, then $R^2 = 0.81$. This means $81%$ of the variation in the response variable is explained by the linear relationship with $x$, while $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 $x$ and response $y$:
where $\beta_0$ is the population y-intercept, $\beta_1$ is the population slope, and $\varepsilon \sim N(0, \sigma^2)$ is the random error term.
Ordinary Least Squares (OLS) Estimators
OLS estimates parameters $\hat{\beta}_0$ and $\hat{\beta}_1$ by minimizing the sum of squared residuals $\sum e_i^2 = \sum (y_i - \hat{y}_i)^2$:
4. Model Assumptions & Residual Diagnostics (LINE)
For OLS regression estimates and hypothesis tests to be valid, four underlying assumptions regarding residuals ($e_i = y_i - \hat{y}_i$) must be satisfied (LINE acronym):
- Linearity: The true relationship between $x$ and $y$ is linear.
- Independence: Residuals are independent of one another (no autocorrelation over time).
- Normality: Residuals are normally distributed with mean zero ($e_i \sim N(0, \sigma^2)$).
- Equal Variance (Homoscedasticity): Residual variance is constant across all predicted values $\hat{y}$ and predictor values $x$.
Residual Plot Diagnostics:
- Residuals vs. Fitted Values ($\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 ($x$ in $^\circ\text{C}$) affects adhesive bond strength ($y$ in $\text{MPa}$). A sample of $n = 5$ experimental runs produces the following summary statistics:
- $\bar{x} = 100^\circ\text{C}, \quad \bar{y} = 50\text{ MPa}$
- $S_{xx} = \sum (x_i - \bar{x})^2 = 250$
- $S_{yy} = \sum (y_i - \bar{y})^2 = 160$
- $S_{xy} = \sum (x_i - \bar{x})(y_i - \bar{y}) = 180$
Step-by-Step Regression Solution:
- Calculate Slope ($\hat{\beta}_1$):
- Calculate Intercept ($\hat{\beta}_0$):
- Formulate Fitted Regression Equation:
- Calculate Pearson Correlation ($r$) and $R^2$:
- Prediction Example: For a cure temperature of $x = 110^\circ\text{C}$:
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?
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?
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?