How to use this calculator
Compute a two-sided p-value for testing zero population Pearson correlation from a sample correlation r and pair count n. It uses the usual t transformation.
- Enter Pearson r (−1 to 1), Number of pairs n. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How Pearson correlation p-value calculator works
Compute a two-sided p-value for testing zero population Pearson correlation from a sample correlation r and pair count n. It uses the usual t transformation.
Inputs and units
- Pearson r (−1 to 1): Sample Pearson correlation r, from −1 to 1.
- Number of pairs n: Number of paired observations n; at least 3 for positive degrees of freedom.
Formula and method
t = r√((n−2)/(1−r²)), df=n−2; p=2P(Tdf≥|t|)
Worked example
With r=0.5 and n=10, t≈1.633 with 8 degrees of freedom, giving a two-sided p≈0.1411.
Interpreting the result
The p-value is the tail probability under the zero-correlation null assumptions, not the probability that the null is true.
Assumptions and limits
The standard t reference is exact under independent bivariate-normal sampling and otherwise is an approximation. Outliers, nonlinear association, dependence, and small samples can affect interpretation.
Sources and method
- For testing Pearson correlation under the usual bivariate-normal null model, the t statistic uses n−2 degrees of freedom. NIST correlation test
Frequently asked questions
Does p=0.141 mean there is an 14.1% chance the null is true?
No. It is the probability, assuming the null model, of a statistic at least this extreme.
Can I test r=1 exactly?
The transformation has a zero denominator at |r|=1; a perfect sample correlation is a boundary case rather than a finite t value.
How do I use the Pearson correlation p-value calculator?
Enter Pearson r (−1 to 1), Number of pairs n. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Pearson correlation p-value?
With r=0.5 and n=10, t≈1.633 with 8 degrees of freedom, giving a two-sided p≈0.1411.
What does the Pearson correlation p-value calculator calculate?
Compute a two-sided p-value for testing zero population Pearson correlation from a sample correlation r and pair count n. It uses the usual t transformation.