How to calculate
Center each variable by subtracting its mean. Multiply matched deviations, add them, and divide by n for a population or n − 1 for a sample.
Worked example
Use X values 1, 2, 3 · Y values 3, 2, 1 · Dataset type Sample. The result is -1.
Input and result notes
Enter numbers using the same units. Rounded results are marked with ≈.