Worked example
Example: Illustrative r = 0.62, n = 20. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Sample correlation coefficient | 0.62000 - |
| Number of pairs | 20.000 - |
| Confidence level | 95.000 % |
Applying the formula below gives:
| Result | Value |
|---|---|
| t statistic | 3.3526 |
| Two-sided p-value | 0.003545 |
| Lower confidence limit | 0.24458 |
| Upper confidence limit | 0.83377 |
| Share of variance explained | 38.440 % |
Open this example in the calculator and change any input.
Formula
\(t = r\sqrt{\frac{n - 2}{1 - r^2}}, \quad z = \tanh^{-1}r, \quad \rho = \tanh\left(z \pm \frac{z_c}{\sqrt{n - 3}}\right)\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(r\) | Sample correlation coefficient | - |
| \(n\) | Number of pairs | - |
| \(1 - \alpha\) | Confidence level | - |
| \(t\) | t statistic | - |
| \(p\) | Two-sided p-value | - |
| \(\rho_{lo}\) | Lower confidence limit | - |
| \(\rho_{hi}\) | Upper confidence limit | - |
| \(r^2\) | Share of variance explained | - |
Method and standards
Correlation test.
Where it is used
- Checking relationships in plant data.
- Calibration and quality studies.
Common mistakes
- Inferring causation.
- Using r from tiny samples.
Assumptions and limits
- Bivariate normal data; independent pairs.
References
- t test for r and Fisher's z transformation
Questions and answers
Is a correlation of 0.6 significant?
It depends on n: with 20 pairs yes (p ≈ 0.004), with 6 pairs no.
Why use Fisher's z for the interval?
The sampling distribution of r is skewed near ±1; z = atanh r is close to normal.
What do the defaults represent?
An illustrative r = 0.62 from 20 pairs, 95 % confidence.
Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.
Sources
Montgomery and Runger, Applied Statistics and Probability for Engineers, 6th ed. (Wiley, 2014), Fisher, On the Probable Error of a Coefficient of Correlation, Metron 1 (1921)