Calculate Pearson's r between two paired lists of numbers.
| r | – |
Use this calculator to measure the linear association between two variables recorded on the same cases, such as height and weight, or hours studied and score. Pearson's r is 1 for a perfect positive line, −1 for a perfect negative line, and 0 for no linear association.
The formula is the sample covariance of x and y divided by the product of their standard deviations (equivalently, the standardised dot product of deviations from each mean). Paste two lists of the same length, at least two pairs, with some spread in both lists. The default 1–5 versus 2, 3, 5, 4, 6 gives r ≈ 0.90.
Correlation is not causation. Nonlinear relationships can have r near 0. Outliers can dominate r. The lists must be paired in order.
x values: First variable, comma- or space-separated.
y values: Second variable, same length as x, in the same case order.
r: Pearson correlation coefficient, from −1 to 1.
Related calculators