basic

Pearson r Correlation from Running Sums Calculator

r = (n·Σxy − Σx·Σy) / √((n·Σx² − (Σx)²) · (n·Σy² − (Σy)²)).

Compute Pearson's product-moment correlation r directly from streaming sums Σx, Σy, Σxy, Σx², Σy², and sample size n. r ranges over [−1, +1]; |r| > 0.7 is generally a strong linear association. Also reports r².

Published Last reviewed 1 min read

Inputs

Results

Enter values and click Calculate to see results.
Was this helpful?

How to use this calculator

  1. Fill in the inputs above using the units you already have.
  2. Values update automatically as you type — no submit button needed.
  3. Hover any result row for the underlying formula and intermediate values.

Formula

r = (n·Σxy − Σx·Σy) / √((n·Σx² − (Σx)²)·(n·Σy² − (Σy)²)).

In depth

Compute Pearson's product-moment correlation r directly from streaming sums Σx, Σy, Σxy, Σx², Σy², and sample size n. r ranges over [−1, +1]; |r| > 0.7 is generally a strong linear association. Also reports r².