Calculator Tools
Correlation Calculator
Compute Pearson r, Spearman rho, and Kendall tau-b on paired (x, y) data. R-squared, p-values, 95% confidence interval, scatter plot. No signup.
One pair per line. Separate x and y with a comma, space, tab, or semicolon. An optional header row like x, y is skipped automatically.
Example datasets
Load a sample to see Pearson, Spearman, and Kendall on a familiar shape of data.
Correlation coefficients
Each statistic measures a different shape of relationship. Read all three.
Pearson r
Linear association
0.9943
positive, near-perfect
- R^2 = 0.9887
- t = 26.4374 on df 8
- p = 4.505e-9
Spearman rho
Monotonic association on ranks
1.0000
positive, near-perfect
- t = n/a on df 8
- p = < 1e-12
- Robust to outliers and non-linear monotone trends.
Kendall tau-b
Pair concordance with tie correction
1.0000
positive, near-perfect
- z = 4.0249
- p = 5.702e-5
- 45 concordant, 0 discordant pairs
95% confidence interval for Pearson r
[0.9753, 0.9987]
Fisher z transformation: z = atanh(r), SE = 1 / sqrt(n - 3). Back-transformed to the r scale.
Significance decision
Two-tailed test of H0: the population correlation equals zero, vs H1: the population correlation is non-zero.
Pearson
p = 4.505e-9
- Reject H0 at alpha = 0.1
- Reject H0 at alpha = 0.05
- Reject H0 at alpha = 0.01
Spearman
p = < 1e-12
- Reject H0 at alpha = 0.1
- Reject H0 at alpha = 0.05
- Reject H0 at alpha = 0.01
Kendall tau-b
p = 5.702e-5
- Reject H0 at alpha = 0.1
- Reject H0 at alpha = 0.05
- Reject H0 at alpha = 0.01
Scatter plot
Points are observed pairs. The dashed line is the least-squares fit.
Descriptive statistics
x
- n
- 10
- mean
- 5.5
- sd (sample, n - 1)
- 3.02765
- min
- 1
- max
- 10
y
- n
- 10
- mean
- 76.4
- sd (sample, n - 1)
- 14.135849
- min
- 53
- max
- 95
Best-fit line (OLS)
y = 50.866667 + 4.642424 x
For a full regression summary with residuals, see the Linear Regression Calculator.
How to use
- Paste your paired data into the textarea, one (x, y) pair per line. Use a comma, space, tab, or semicolon between x and y. An optional header row like 'x, y' or 'hours, score' is skipped automatically.
- Or click an example dataset (Study hours vs exam score, Price vs demand, Height vs shoe size, Random scatter) to load a starter set and replace whatever is in the textarea.
- Read the three coefficients in the Correlation coefficients panel: Pearson r for linear association, Spearman rho for monotonic association on ranks, and Kendall tau-b for pair concordance with tie correction. Each shows R-squared or t/z, the p-value, and a plain-English strength label.
- Use the Significance decision panel to see the reject or fail-to-reject verdict at alpha 0.10, 0.05, and 0.01 for each coefficient (two-tailed test of zero correlation).
- Check the scatter plot to see the shape and direction of the relationship. The dashed line is the least-squares fit. Read the descriptive statistics for n, mean, SD, min, and max on each variable.
- Click Copy summary for a one-paragraph readout or Copy full report for the complete breakdown to paste into homework, a spreadsheet, or a launch doc.
About this tool
Correlation Calculator returns the three correlation coefficients used in almost every statistics course and applied analysis on paired (x, y) data: Pearson r for linear association, Spearman rho for monotonic association on ranks, and Kendall tau-b for concordance between pairs with the standard tie correction. Paste any number of (x, y) pairs (3 to 5,000), one pair per line, separated by commas, spaces, tabs, or semicolons, with an optional header row like 'x, y' that is detected and skipped automatically. The result panel updates instantly with each coefficient to four decimal places, an interpretive strength label (very weak, weak, moderate, strong, very strong, near-perfect), the coefficient of determination R-squared for Pearson, the t statistic on n - 2 degrees of freedom with a two-tailed p-value for both Pearson and Spearman, the z statistic and normal-approximation p-value for Kendall, the count of concordant, discordant, and tied pairs (in x, in y, and in both), and a 95% confidence interval for the Pearson r computed with the Fisher z transformation (z = atanh(r), SE = 1 / sqrt(n - 3), back-transformed with tanh). A significance verdict at alpha 0.10, 0.05, and 0.01 is shown for each coefficient, and a live SVG scatter plot draws every point with the least-squares regression line dashed across the chart, so the shape, direction, and strength of the relationship are visible at a glance. Descriptive statistics (n, sample mean, sample SD with the n - 1 Bessel correction, min, max) for both variables and the best-fit line equation y = b0 + b1 x are reported alongside, so a single paste covers the descriptive, inferential, and graphical pieces of a correlation write-up. Numerically, the Pearson and Spearman p-values use the regularized incomplete beta function via the Lentz continued fraction with a Lanczos log-gamma backbone (accurate to roughly 1e-12), and the Kendall p-value uses the standard no-ties normal approximation z = tau / sqrt(2(2n + 5) / (9n(n - 1))) which matches scipy.stats.kendalltau closely when ties are modest. All three coefficients run in a single pass, so a 1,000-pair paste resolves in milliseconds. Useful for AP Statistics and college statistics homework, psychology, education, biology, ecology, finance, and marketing research, sanity-checking the correlation matrix from R, Python, or Excel, picking the right coefficient when the relationship is non-linear (Spearman) or ordinal (Kendall), and any time you need a defensible report on how two measurements move together. Pair this tool with the Linear Regression Calculator when you also want the residuals and standard errors of the OLS slope, with the P-Value Calculator when you have a coefficient in hand and need only the p-value, with the T-Test Calculator when you are comparing two group means instead of two paired measurements, or with the Confidence Interval Calculator when the question is interval estimation without a hypothesis test. Everything runs locally in your browser, so the paired data you paste here is not uploaded.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Linear Regression Calculator
Least squares line, R squared, residuals, and a scatter plot from any (x, y) dataset.
Open tool
CalculatorP-Value Calculator
p-values for z, t, chi-square, and F tests with one-tailed or two-tailed regions.
Open tool
CalculatorT-Test Calculator
One-sample, Welch two-sample, pooled, and paired t-tests with p-value, CI, and effect size.
Open tool
CalculatorChi-Square Test Calculator
Chi-square independence and goodness-of-fit tests with expected counts, residuals, effect size, and a PDF plot.
Open tool
CalculatorConfidence Interval Calculator
Build a confidence interval for a mean, a proportion, or a dataset with full working.
Open tool
GeneratorScatter Plot Generator
Plot x, y data with grouped colors, regression lines, bubble sizing, and SVG/PNG export.
Open tool