Correlation & Linear Regression
Key Takeaways
- Correlation measures the strength and direction of a linear association between two continuous variables; it does not prove that X causes Y.
- Pearson’s correlation coefficient r ranges from −1 to +1; |r| near 1 means strong linear association, r near 0 means little linear association (nonlinear patterns can still exist).
- Simple linear regression fits ŷ = b₀ + b₁x; b₁ is the estimated slope (change in Y per unit X) and b₀ is the intercept (fitted Y when x = 0, which may be extrapolation).
- Use the fitted line for estimation within the observed X range; treat prediction outside that range as extrapolation and treat causal claims as separate from the fit.
- A small p-value for the slope (or for r) indicates the linear association is unlikely under a null of no linear relationship—not that the model is perfect or that X is the true root cause alone.
Correlation & Linear Regression
Quick Answer: Correlation quantifies how strongly two continuous variables move together in a linear pattern (Pearson’s r from −1 to +1). Simple linear regression fits ŷ = b₀ + b₁x for estimation and prediction. A significant p-value supports a real linear association in the data; it does not by itself prove causation.
Correlation vs. Causation
In Analyze you often plot a candidate X against Y. A strong r is evidence of association, not proof that changing X will change Y.
Association can appear because X truly drives Y, Y drives X, a lurking Z drives both, the sample is coincidence, or both variables share a time trend. Green Belt rule: use correlation and regression to prioritize and quantify; confirm mechanism with process knowledge, DOE, or controlled interventions before locking Improve actions.
Scatter Plots First
Before computing r or fitting a line: plot Y vs X; look for linearity, outliers, clusters, and curvature. A curved cloud can yield r near zero despite a strong nonlinear link, or a moderate r with a poor linear fit. Scatter plots prevent misleading coefficients.
Pearson Correlation Coefficient
For paired observations ((x_i, y_i)), (i = 1, \ldots, n):
Computational form:
| r (approx.) | Linear association |
|---|---|
| ±1 | Perfect linear |
| ±0.7 to ±0.9 | Strong |
| ±0.4 to ±0.6 | Moderate |
| near 0 | Little linear association |
Thresholds are guidelines. Pair r with the plot and with practical significance.
Properties: r is unitless and invariant to linear rescaling of X or Y; it measures linear association only; strength is about the pair, while regression slope Y on X is not the same as X on Y.
Simple Linear Regression
- b₁: estimated average change in Y per one-unit increase in X.
- b₀: fitted Y when x = 0 (often extrapolation if 0 is outside the operating range).
For one predictor, R² = r² — the fraction of sample Y variation explained by the linear fit. R² = 0.64 means 64% of observed Y variation in the sample is accounted for by the line, not that the project is 64% finished.
Estimation, Prediction, and Significance
- Estimation: for x in the observed range, (\hat{y} = b_0 + b_1 x) estimates the mean response at that x.
- Individual prediction: same point estimate is often used, but uncertainty for one future point is larger than for the mean.
- Extrapolation: x far outside the data range is risky.
For the slope (or testing population correlation ρ = 0 under standard assumptions):
- H₀: β₁ = 0 (no linear relationship)
- H₁: β₁ ≠ 0 (two-sided), or one-sided when the project cares about one direction
The p-value is the probability under H₀ of a result at least as extreme as observed. At α = 0.05, p < 0.05 usually means the linear association is statistically significant. A tiny significant slope can still be practically useless; p ≥ 0.05 means insufficient evidence of a linear link—not proof that X never matters nonlinearly.
Worked Numerical Example
Oven temperature offset X (°C) vs bond strength Y (MPa), n = 5 (small for arithmetic; real projects use larger n):
| Run | x | y |
|---|---|---|
| 1 | 0 | 10 |
| 2 | 2 | 12 |
| 3 | 4 | 13 |
| 4 | 6 | 15 |
| 5 | 8 | 16 |
(\bar{x} = 4), (\bar{y} = 13.2)
(\sum (x_i - \bar{x})^2 = 40)
(\sum (y_i - \bar{y})^2 = 22.80)
(\sum (x_i - \bar{x})(y_i - \bar{y}) = 30.0)
Each 1 °C increase in offset is associated with about 0.75 MPa higher strength in the fitted range. At x = 5 (in range): (\hat{y} = 10.2 + 3.75 = 13.95) MPa. R² ≈ 0.987 in this nearly linear toy series—real process R² is usually lower. With r ≈ 0.993 and n = 5, the t-test of H₀: β₁ = 0 would give a small p-value under standard assumptions; the Green Belt still asks whether the link is causal, practical, and stable on the full line.
Reading p-Values Without Overclaiming
| Result | Legitimate conclusion | Overclaim to avoid |
|---|---|---|
| p < 0.05 for slope | Evidence of a nonzero linear slope (given assumptions) | “X is the only root cause” |
| Large |r| and small p | Strong, significant sample linear association | “Improving X will definitely improve Y by b₁ forever” |
| p ≥ 0.05 | Not enough evidence of a linear link | “X has no effect of any kind” |
| High R² | Line explains much of sample Y variation | “The process is solved” |
Always check residual plots when software is available: curved residuals mean the linear model is the wrong shape; fan-shaped residuals mean nonconstant variance.
Assumptions and DMAIC Fit
Least squares and usual p-values assume roughly linear mean structure, independent errors, roughly constant variance, and approximately normal errors for exact t procedures. Outliers can dominate b₁ and r. Multiple predictors need multiple regression (often deeper than core Green Belt practice); omitted variables still bias causal stories even when r looks clean.
- Multi-vari and stratification locate major noise families.
- Correlation/regression quantify continuous X–Y links.
- Hypothesis tests and DOE confirm effects before Improve.
Expect CSSGB items that distinguish correlation from causation; interpret r, b₁, b₀, and R²; compute a simple slope or fitted value; and read a slope p-value without overclaiming process truth.
A project finds r = 0.82 between weekly training hours (X) and first-pass yield (Y), with p = 0.01 for the slope in a simple linear regression. Which conclusion is most appropriate?
Using the fitted line ŷ = 10.2 + 0.75x from the bond-strength example, what is the estimated mean bond strength at x = 4 °C, and what is the slope interpretation?
For five pairs of data, a Green Belt computes Σ(x − x̄)(y − ȳ) = 30 and Σ(x − x̄)² = 40. What is the least-squares slope b₁, and what null hypothesis does the usual t-test of that slope address?