Tools

Correlation & Regression Calculator

Paste two columns of numbers and see the whole relationship at once: the scatterplot, Pearson r with its p-value and confidence interval, Spearman's ρ, the least-squares line, R², and the residuals. It even checks how much one stray point is holding the number up. Nothing leaves your browser.

n (pairs)
Pearson r
p-value (two-tailed)
95% CI for r (Fisher z)
Spearman ρ (rank)
Best-fit line
Slope (b) & 95% CI

Before you trust the number

  • Look at the scatter, always. Anscombe's quartet (button above) shows four datasets with the same r and the same line but wildly different shapes: a curve, an outlier, a lone leverage point. The number alone can lie. (Correlation)
  • Pearson vs Spearman. Pearson r measures straight-line association and is sensitive to outliers; Spearman's ρ ranks the data first, so it captures any monotonic trend and shrugs off extremes. A big gap between them is a clue your relationship is curved or outlier-driven.
  • Check the robustness readout. If removing a single point swings r from .6 to .3, that point, not the relationship, is running the show. Click it on the scatterplot to see the line and r without it, then investigate why it's there. (Regression Diagnostics)
  • Correlation isn't causation, and R² isn't proof. A tidy line predicts; it doesn't explain why. Turn the relationship into a model on the Simple Linear Regression lesson, and mind the assumptions.

Privacy note: everything runs locally in your browser and your data is never uploaded anywhere. Paste away.

No data of your own yet? Grab a practice dataset (realistic CSVs with stories and worked solutions), or summarize a single column on the Descriptives Calculator.