7.1 The Correlation Coefficient, Its Confidence Interval, and Causation
Key Takeaways
- The Pearson correlation coefficient measures the strength and direction of a linear relationship and ranges from -1 to +1.
- The coefficient of determination r squared is the proportion of variation in Y explained by the linear relationship with X.
- A correlation coefficient near zero rules out a linear relationship but not a curved one, so always plot the data.
- Confidence intervals for rho are built using Fisher's z transformation, because the sampling distribution of r is skewed unless rho is zero.
- Correlation supports causation only after confounding, reverse causation, and selection effects have been excluded; designed experiments do this by randomization.
The Pearson correlation coefficient
$r$ measures the strength and direction of the linear association between two continuous variables and is bounded by $-1 \le r \le +1$. It is dimensionless and unaffected by linear rescaling, so converting millimetres to inches changes nothing.
| $|r|$ | Conventional description | |---|---| | 0.00 - 0.30 | Negligible to weak | | 0.30 - 0.50 | Moderate | | 0.50 - 0.70 | Moderately strong | | 0.70 - 0.90 | Strong | | 0.90 - 1.00 | Very strong |
These bands are conventions, not thresholds. In a designed experiment on a machined dimension, $r = 0.85$ may be disappointing; in a study of human behaviour, $r = 0.40$ may be a major finding.
The coefficient of determination
This is the interpretation that matters practically. $r = 0.70$ sounds impressive until you square it: $r^2 = 0.49$, so 51% of the variation remains unexplained. Reporting $r$ alone systematically overstates how much of the problem a factor accounts for, which is why the Analyze phase should prioritize factors by $r^2$, not by $r$.
Worked example
Six paired observations of oven temperature ($X$, degrees C) and tensile strength ($Y$, MPa):
| $x$ | 180 | 185 | 190 | 195 | 200 | 205 |
|---|---|---|---|---|---|---|
| $y$ | 412 | 418 | 431 | 435 | 447 | 452 |
$\bar{x} = 192.5$, $\bar{y} = 432.5$. Computing the sums of squares gives $S_{xx} = 437.5$, $S_{yy} = 1229.5$, and $S_{xy} = 727.5$. Then:
$r^2 = 0.9839$, so 98.4% of the variation in tensile strength over this temperature range is explained by the linear relationship. Note the qualifier over this range -- nothing here supports extrapolation to 250 C.
Testing and estimating
Testing whether rho differs from zero
Reject $H_0: \rho = 0$ when $|t|$ exceeds the critical value. For the example above, $t = 0.9919\sqrt{4}/\sqrt{1-0.9839} = 1.9839/0.1268 = 15.6$ with 4 degrees of freedom, which is overwhelmingly significant.
Confidence interval via Fisher's z transformation
The sampling distribution of $r$ is skewed whenever $\rho \ne 0$, because $r$ is bounded at $\pm 1$. Fisher's transformation removes the skew:
Build the interval on the $z'$ scale, $z' \pm 1.96 , SE_{z'}$ for 95% confidence, then transform each endpoint back:
Two practical points. The interval is asymmetric around $r$ on the original scale, and it requires $n > 3$. With small samples it is remarkably wide -- with $n = 10$ and $r = 0.60$, the 95% interval runs roughly from -0.04 to 0.89, which is not evidence of a strong relationship.
Assumptions and what breaks them
| Assumption | Violation | Consequence |
|---|---|---|
| Linearity | Curved relationship | $r$ near zero despite a strong relationship |
| Continuous, roughly bivariate normal data | Heavy skew, ordinal data | Use Spearman rank correlation instead |
| Independent observations | Time-ordered or clustered data | Standard errors wrong; significance overstated |
| No influential outliers | One extreme point | $r$ can be created or destroyed by a single observation |
| Adequate range of $X$ | Restricted range | $r$ attenuated toward zero |
Always plot the data before reading $r$. Anscombe's quartet -- four data sets with identical correlation, means, and regression lines but radically different shapes -- exists precisely to make this point. A scatter plot takes seconds and prevents the two most common failures: a curved relationship reported as no relationship, and a single outlier reported as a strong relationship.
Restricted range deserves special attention in Six Sigma work, because it is built into the way we collect data. If a process is tightly controlled between 199 and 201 C, a study of temperature versus strength within that band will show little correlation even if temperature is a dominant factor across a wider range. The absence of correlation in observational process data is weak evidence that a factor does not matter; a designed experiment that deliberately widens the range is the correct test.
Correlation and causation
An observed correlation is consistent with several explanations, only one of which is direct causation:
- X causes Y -- the conclusion usually wanted.
- Y causes X -- reverse causation.
- A third variable Z causes both -- confounding.
- Selection effect -- the sampling procedure created the association.
- Coincidence -- with enough variables examined, spurious correlations appear.
The last is worth quantifying: testing 20 unrelated factor pairs at $\alpha = 0.05$ produces on average one significant result by chance alone. Data-mining a wide process data set for correlations without adjusting for multiplicity reliably generates false leads.
Establishing causation
| Evidence | Strength |
|---|---|
| Correlation in observational data | Weak; generates hypotheses |
| Correlation plus a plausible physical mechanism | Moderate |
| Correlation plus temporal precedence and dose-response | Moderate to strong |
| Controlled experiment with randomization | Strong |
| Controlled experiment, replicated, with confirmed mechanism | Conclusive for practical purposes |
Randomization in a designed experiment is what neutralizes unknown confounders, which is why the Improve phase of DMAIC is built around DOE rather than around further observational analysis. A correlation found in the Analyze phase is a hypothesis to be tested, not a root cause to be acted on.
A study reports a correlation of r = 0.60 between line speed and defect rate. What proportion of the variation in defect rate is explained by line speed?
A scatter plot shows a clear inverted-U relationship between cure temperature and bond strength, yet the Pearson correlation coefficient is 0.02. What is the correct interpretation?
A process is tightly controlled between 199 and 201 degrees C. An observational study within that range finds no correlation between temperature and strength. What can be concluded?