This calculator computes the correlation from a given bivariate data set. Enter the data in the text area to the left. Each row must contain two scores, one for each variable. The variables must be separated by either a space, a comma, or a tab. To compute the correlation we use the raw score formula: \[ r= \frac{\sum XY - \frac{1}{n} \sum X \sum Y}{\sqrt{ \left(\sum X^2 - \frac{\left(\sum X\right)^2}{n} \right) \left(\sum Y^2 - \frac{\left(\sum Y\right)^2}{n} \right) } } \]

Press the Compute Correlation button and a table of descriptive sample statistics will appear below.



Statistic Value
Number of pairs of scores, \(n\)
Sum of first variable scores, \(\sum X\)
Sum of second variable scores, \(\sum Y\)
Sum of squared first variable scores, \(\sum X^2\)
Sum of squared second variable scores, \(\sum Y^2\)
Sum of cross product scores, \(\sum XY\)
Correlation, \( r \)