Correlation P-Value Calculator
Test significance of correlation.
Enter Pearson r or Spearman ρ
Number of data pairs
Load example:
Enter correlation coefficient and sample size
r must be between -1 and 1, n ≥ 3
What Is a Correlation P-Value?
The correlation p-value tests whether an observed correlation is statistically significant—whether the relationship is likely real or could have occurred by chance.
Question answered: "Is this correlation significantly different from zero?"
Example: If r = 0.35 with n = 50, is this evidence of a true relationship, or could we get r = 0.35 by random chance from uncorrelated data?
The Hypothesis Test
Null hypothesis (H₀): ρ = 0 (no correlation in the population)
Alternative hypothesis (H₁):
- Two-tailed: ρ ≠ 0 (there is some correlation)
- One-tailed: ρ > 0 or ρ < 0 (correlation in specific direction)
Note: ρ (rho) is the population correlation; r is the sample estimate.
The Test Statistic
t = r × √[(n - 2) / (1 - r²)]
This follows a t-distribution with df = n - 2.
Example:
- r = 0.45
- n = 30
t = 0.45 × √[28 / (1 - 0.2025)] t = 0.45 × √[28 / 0.7975] t = 0.45 × √35.11 t = 0.45 × 5.93 t = 2.67
For df = 28, p ≈ 0.012 (two-tailed)
Conclusion: The correlation is statistically significant.
Significance Thresholds
Critical values of r for two-tailed test at α = 0.05:
| n | Critical |r| | |---|----------| | 5 | 0.878 | | 10 | 0.632 | | 15 | 0.514 | | 20 | 0.444 | | 30 | 0.361 | | 50 | 0.279 | | 100 | 0.197 | | 500 | 0.088 |
With larger samples, smaller correlations become significant.
The Sample Size Effect
Key insight: Statistical significance depends heavily on sample size.
| r | n = 20 | n = 50 | n = 200 |
|---|---|---|---|
| 0.10 | p = .67 | p = .49 | p = .16 |
| 0.20 | p = .40 | p = .16 | p = .004 |
| 0.30 | p = .20 | p = .03 | p < .001 |
| 0.50 | p = .02 | p < .001 | p < .001 |
Implications:
- Small studies may miss real correlations (low power)
- Large studies find tiny correlations "significant" (not necessarily meaningful)
Significance vs. Importance
Statistical significance: Could this arise by chance?
Practical significance: Is this correlation large enough to matter?
Example:
- r = 0.10, n = 1000, p < 0.001 (statistically significant)
- r² = 0.01 (only 1% of variance explained)
The correlation is real but practically tiny.
Always report r (or r²) alongside p-value.
Power Analysis
Power = probability of detecting a true correlation.
Depends on:
- True population correlation (ρ)
- Sample size (n)
- Significance level (α)
Sample sizes needed for 80% power (α = 0.05):
| ρ (true) | n needed |
|---|---|
| 0.10 | 782 |
| 0.20 | 193 |
| 0.30 | 84 |
| 0.40 | 46 |
| 0.50 | 28 |
Small correlations require large samples to detect reliably.
Confidence Interval for r
More informative than p-value alone.
Fisher z-transformation:
- Convert r to z': z' = 0.5 × ln[(1+r)/(1-r)]
- SE of z' = 1/√(n-3)
- CI in z-space: z' ± 1.96 × SE
- Transform back to r-space
Example: r = 0.45, n = 30
z' = 0.485 SE = 1/√27 = 0.192 95% CI for z': (0.108, 0.862) 95% CI for r: (0.11, 0.70)
The wide interval reflects uncertainty with small n.
One-Tailed Tests
Use when:
- Prior theory predicts specific direction
- Only one direction is meaningful
P-value: Divide two-tailed p by 2 (if result is in predicted direction).
Warning: Must specify direction before seeing data.
Testing Specific Hypotheses
Testing ρ = 0: Standard correlation test.
Testing ρ = ρ₀ (some specific value):
Use Fisher z-transformation:
z = (z'_observed - z'_hypothesized) × √(n-3)
Compare to standard normal distribution.
Comparing Two Correlations
From independent samples:
z = (z'₁ - z'₂) / √[1/(n₁-3) + 1/(n₂-3)]
From same sample (correlated correlations): More complex; use specialized formulas (Meng, Rosenthal, Rubin, 1992).
For Spearman Correlation
Same t-test formula works for Spearman's ρ:
t = rs × √[(n - 2) / (1 - rs²)]
For small samples, exact tables may be more accurate.
Common Misinterpretations
"P < 0.05 proves the relationship exists"
No. It means if no relationship existed, this r would be unlikely. 5% of the time, you'll get p < 0.05 by chance.
"P > 0.05 proves no relationship"
No. It means insufficient evidence. The relationship might exist but be undetectable with your sample size.
"Smaller p means stronger relationship"
No. P-value depends on both r and n. A small r with large n can have smaller p than a large r with small n.
"P-value tells probability the correlation is real"
No. P-value assumes H₀ is true and tells you how surprising your data is. It's not P(H₁|data).
Assumptions
For Pearson's r
- Linear relationship
- Bivariate normality (for exact test)
- Independence of observations
- Continuous variables
For Spearman's rs
- Monotonic relationship
- Independence
- Ordinal or continuous variables
Sample Size
- Minimum n ≈ 10 for approximate test
- n > 30 for robust inference
Reporting Results
APA format:
"The correlation between study hours and exam scores was statistically significant, r(28) = .45, p = .012, 95% CI [.11, .70]."
Non-significant result:
"The correlation between age and reaction time was not statistically significant, r(18) = -.23, p = .32, 95% CI [-.60, .23]."
Include:
- r value
- Degrees of freedom (n - 2)
- P-value
- Confidence interval
- Direction and interpretation
Historical Note
The t-test for correlation significance was established as part of the broader development of hypothesis testing in the early 20th century.
Ronald Fisher formalized much of the theory, including the z-transformation for correlation confidence intervals.
The distinction between statistical and practical significance became increasingly emphasized as large datasets became common in the late 20th century.
Related Calculations
- Pearson Correlation — Calculate r
- Spearman Correlation — Rank correlation
- T-Distribution Calculator — P-values
- Sample Size Calculator — Power analysis
- R-Squared — Variance explained
Summary
The correlation p-value tests whether observed correlation differs significantly from zero using t = r × √[(n-2)/(1-r²)]. Significance depends heavily on sample size—small correlations can be significant with large n, while moderate correlations may not be significant with small n. Always report r alongside p-value; better yet, report confidence intervals. Remember that statistical significance doesn't imply practical importance—a correlation of 0.10 might be "significant" with 1000 observations but explains only 1% of variance.