Why is Pearson r undefined for a constant column?
Every deviation in a constant column is zero. The denominator is therefore zero and the coefficient cannot be calculated.
Paste two numeric columns to calculate the Pearson correlation coefficient. Each row should contain two observations from the same item, time or trial.
For each item, put its x value first and its matching y value second. Sorting each column separately changes which measurements belong together and can give a misleading result. Swapping the two complete columns leaves Pearson r unchanged.
The calculator centers each column around its mean and divides the sum of paired deviation products by the square root of the product of the two sums of squared deviations. In the example, the result is 0.9, so higher x values generally occur with higher y values. The coefficient ranges from −1 to +1 and measures linear association.
A tightly curved relationship can have r close to zero. One distant point can change the result substantially, and two varying pairs always give an absolute r of 1. Review the pair count and a scatterplot before interpreting the relationship. This calculator reports the observed coefficient without a test or confidence interval.
Every deviation in a constant column is zero. The denominator is therefore zero and the coefficient cannot be calculated.
Pearson r measures how the paired values vary together. A causal conclusion requires evidence from the design and context of the study.
Scaling either column by a positive factor or adding a constant leaves r unchanged. Multiplying one column by a negative factor reverses the sign.