ASSOCIATION BETWEEN TWO VARIABLES

Pearson Correlation Calculator

Calculate Pearson’s r from paired observations and inspect the scatter plot. This calculator reports linear association only; it does not claim that one variable causes the other.

Pearson rAssociation not causationBrowser-based

YOUR DATA

Enter paired observations

Paste or upload numeric X and Y columns. Use a period as the decimal mark. Up to 5 MB and 5,000 observations are accepted.

The file is read locally in your browser.

At least two complete pairs are needed; neither variable can be constant.

How to use this calculator

  1. Paste paired X and Y values, or load the sample data.
  2. Choose which columns represent the two variables.
  3. Review Pearson’s r, r² and the scatter plot.
  4. Download a JSON summary for your notes.

Formula and calculation method

Pearson’s r is computed as r = Sxy / √(Sxx·Syy), where Sxy = Σ((x − x̄)(y − ȳ)), Sxx = Σ((x − x̄)²) and Syy = Σ((y − ȳ)²). The calculator uses centered sums for numerical stability.

Worked example: X = [1, 2, 3], Y = [2, 3, 5]. x̄ = 2, ȳ = 10/3, Sxx = 2, Syy = 14/3, Sxy = 3. Therefore r = 3 / √(2 · 14/3) = 3 / √(28/3) ≈ 0.98198, and r² = 27/28 ≈ 0.96429.

Interpretation and limitations

Related calculators

Linear regression · R-squared calculator · Compare regression models