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.

Last updated: August 2026

The Pearson correlation coefficient

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

rr measures the strength and direction of the linear association between two continuous variables and is bounded by −1≤r≤+1-1 \le r \le +1. It is dimensionless and unaffected by linear rescaling, so converting millimetres to inches changes nothing.

∣r∣\vert r\vertConventional description
0.00 - 0.30Negligible to weak
0.30 - 0.50Moderate
0.50 - 0.70Moderately strong
0.70 - 0.90Strong
0.90 - 1.00Very strong

These bands are conventions, not thresholds. In a designed experiment on a machined dimension, r=0.85r = 0.85 may be disappointing; in a study of human behaviour, r=0.40r = 0.40 may be a major finding.

The coefficient of determination

r2=proportion of the variation in Y explained by the linear relationship with Xr^2 = \text{proportion of the variation in } Y \text{ explained by the linear relationship with } X

This is the interpretation that matters practically. r=0.70r = 0.70 sounds impressive until you square it: r2=0.49r^2 = 0.49, so 51% of the variation remains unexplained. Reporting rr alone systematically overstates how much of the problem a factor accounts for, which is why the Analyze phase should prioritize factors by r2r^2, not by rr.

Worked example

Six paired observations of oven temperature (XX, degrees C) and tensile strength (YY, MPa):

xx180185190195200205
yy412418431435447452

xˉ=192.5\bar{x} = 192.5, yˉ=432.5\bar{y} = 432.5. Computing the sums of squares gives Sxx=437.5S_{xx} = 437.5, Syy=1229.5S_{yy} = 1229.5, and Sxy=727.5S_{xy} = 727.5. Then:

r=727.5437.5×1229.5=727.5733.42=0.9919r = \frac{727.5}{\sqrt{437.5 \times 1229.5}} = \frac{727.5}{733.42} = 0.9919

r2=0.9839r^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

t=rn−21−r2,df=n−2t = \frac{r\sqrt{n-2}}{\sqrt{1-r^2}}, \qquad df = n - 2

Reject H0:ρ=0H_0: \rho = 0 when ∣t∣|t| exceeds the critical value. For the example above, t=0.99194/1−0.9839=1.9839/0.1268=15.6t = 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 rr is skewed whenever ρ≠0\rho \ne 0, because rr is bounded at ±1\pm 1. Fisher's transformation removes the skew:

z′=12ln⁡(1+r1−r),SEz′=1n−3z' = \frac{1}{2}\ln\left(\frac{1+r}{1-r}\right), \qquad SE_{z'} = \frac{1}{\sqrt{n-3}}

Build the interval on the z′z' scale, z′±1.96 SEz′z' \pm 1.96 \, SE_{z'} for 95% confidence, then transform each endpoint back:

r=e2z′−1e2z′+1r = \frac{e^{2z'} - 1}{e^{2z'} + 1}

Two practical points. The interval is asymmetric around rr on the original scale, and it requires n>3n > 3. With small samples it is remarkably wide -- with n=10n = 10 and r=0.60r = 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

AssumptionViolationConsequence
LinearityCurved relationshiprr near zero despite a strong relationship
Continuous, roughly bivariate normal dataHeavy skew, ordinal dataUse Spearman rank correlation instead
Independent observationsTime-ordered or clustered dataStandard errors wrong; significance overstated
No influential outliersOne extreme pointrr can be created or destroyed by a single observation
Adequate range of XXRestricted rangerr attenuated toward zero

Always plot the data before reading rr. 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:

  1. X causes Y -- the conclusion usually wanted.
  2. Y causes X -- reverse causation.
  3. A third variable Z causes both -- confounding.
  4. Selection effect -- the sampling procedure created the association.
  5. Coincidence -- with enough variables examined, spurious correlations appear.

The last is worth quantifying: testing 20 unrelated factor pairs at α=0.05\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

EvidenceStrength
Correlation in observational dataWeak; generates hypotheses
Correlation plus a plausible physical mechanismModerate
Correlation plus temporal precedence and dose-responseModerate to strong
Controlled experiment with randomizationStrong
Controlled experiment, replicated, with confirmed mechanismConclusive 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.

Test Your Knowledge

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

60%

B

77%

C

30%

D

36%

Test Your Knowledge

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

The Pearson coefficient measures only linear association, so a strong curved relationship can produce r near zero

B

There is no relationship between the variables

C

The measurement system must be inadequate

D

The sample size is too small for the correlation to be significant

Test Your Knowledge

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?

A

Temperature does not affect strength and can be eliminated from the analysis

B

Little can be concluded, because restricted range attenuates correlation; a designed experiment that widens the range is the correct test

C

The correlation coefficient should be recalculated using Spearman's method

D

Strength must be non-normally distributed

Sections you finish are checked off in the contents.