Correlation Coefficient Calculator (Pearson's $r$)

Calculate Pearson's correlation coefficient (r) and the coefficient of determination (R²) for two data sets (X and Y). Includes step-by-step table and result interpretation.

Full original guide (expanded)

Correlation Coefficient Calculator (Pearson's $r$)

Use this calculator to find the strength and direction of the linear relationship between two variables, X and Y. Enter your paired data points below. Each line should contain the X-value, followed by the Y-value, separated by a comma or space.

Make sure X and Y have the same number of data points. Use commas, spaces, or new lines to separate values.

Pearson's Correlation Coefficient ($r$) Formula

Pearson's $r$ is calculated using the following formula, which is designed to measure the covariance of X and Y normalized by the standard deviations of X and Y:

$$r = \frac{n \sum xy - (\sum x)(\sum y)}{\sqrt{[n \sum x^2 - (\sum x)^2][n \sum y^2 - (\sum y)^2]}}$$

Where:

  • $n$ is the number of paired observations (data points).
  • $\sum x$ and $\sum y$ are the sums of the X and Y values.
  • $\sum x^2$ and $\sum y^2$ are the sums of the squared X and squared Y values.
  • $\sum xy$ is the sum of the products of X and Y for each pair.

This formula always yields a value between $-1$ and $+1$.

Interpreting the Correlation Coefficient ($r$)

The value of $r$ tells you two things about the relationship between X and Y:

  1. Direction (Sign):
    • **Positive ($r > 0$):** As X increases, Y tends to increase (a positive slope).
    • **Negative ($r < 0$):** As X increases, Y tends to decrease (a negative slope).
    • **Zero ($r \approx 0$):** No linear relationship exists.
  2. Strength (Magnitude): The closer the value is to $\pm 1$, the stronger the linear relationship. The closer it is to 0, the weaker the relationship.

Strength Guidelines (Commonly Used)

Magnitude of $|r|$ Strength
0.90 to 1.00Very Strong
0.70 to 0.89Strong
0.50 to 0.69Moderate
0.30 to 0.49Weak
0.00 to 0.29Negligible

Frequently Asked Questions (FAQ)

What does a correlation coefficient measure?

What is the difference between correlation and causation?

What is the Coefficient of Determination ($R^2$)?

When should I use a different correlation method?


Audit: Complete
Formula (LaTeX) + variables + units
This section shows the formulas used by the calculator engine, plus variable definitions and units.
Formula (extracted LaTeX)
\[','\]
','
Formula (extracted LaTeX)
\[r = \frac{n \sum xy - (\sum x)(\sum y)}{\sqrt{[n \sum x^2 - (\sum x)^2][n \sum y^2 - (\sum y)^2]}}\]
r = \frac{n \sum xy - (\sum x)(\sum y)}{\sqrt{[n \sum x^2 - (\sum x)^2][n \sum y^2 - (\sum y)^2]}}
Formula (extracted text)
$r = \frac{n \sum xy - (\sum x)(\sum y)}{\sqrt{[n \sum x^2 - (\sum x)^2][n \sum y^2 - (\sum y)^2]}}$
Variables and units
  • T = property tax (annual or monthly depending on input) (currency)
Sources (authoritative):
Changelog
Version: 0.1.0-draft
Last code update: 2026-01-19
0.1.0-draft · 2026-01-19
  • Initial audit spec draft generated from HTML extraction (review required).
  • Verify formulas match the calculator engine and convert any text-only formulas to LaTeX.
  • Confirm sources are authoritative and relevant to the calculator methodology.
Verified by Ugo Candido on 2026-01-19
Profile · LinkedIn
Formulas

(Formulas preserved from original page content, if present.)

Version 0.1.0-draft
Citations

Add authoritative sources relevant to this calculator (standards bodies, manuals, official docs).

Changelog
  • 0.1.0-draft — 2026-01-19: Initial draft (review required).