Correlation matrix
See which number columns move together, with p-values and scatter plots. Free, private and browser-based.
Read-only viewerFree workspace supports five open files. Each file can be up to 100 MB.
See which number columns move together, with p-values and scatter plots. Free, private and browser-based.
Read-only viewerFree workspace supports five open files. Each file can be up to 100 MB.
Open a CSV or Excel file and see how every pair of number columns moves together. The colour-coded matrix shows Pearson's r (straight-line relationships) or Spearman's rho (any steady rise or fall) for every pair, stars mark the ones that are statistically significant, and clicking a cell shows its scatter plot with the best-fit line. The strongest relationships are explained in plain words, and the matrix and a list of pairs with p-values can be downloaded.
Tip: Always look at the scatter plot. A single extreme point can create a strong correlation on its own, and a perfect U-shaped curve can show r near 0. The plot shows what the number can't.
r² (r squared) is the share of the variation in one column that a straight line through the other explains: r = 0.7 means r² = 0.49, so about half.
Pearson's r measures how well a straight line fits the points. It is the standard choice for measurements such as height, temperature or revenue, and is what Excel's =CORREL and =PEARSON calculate.
Spearman's rho correlates the ranks instead of the values, so it catches any relationship that steadily rises or falls, even curved ones, and is much less affected by outliers. Use it for ratings and rankings (1 to 5 stars, survey scales), skewed data like incomes, or when the scatter plot curves. Tied values share the average rank.
The p-value is the chance of seeing a correlation at least this strong in your sample if there were really no relationship at all. Below 0.05 (one star) is the usual line for “statistically significant”, ** is below 0.01 and *** below 0.001. With lots of rows, even a tiny r becomes significant; with 10 rows, even r = 0.5 can be chance. So read both: the size of r says how strong, the p-value says how sure. The p-value uses the t-test with n − 2 degrees of freedom, the same as most statistics packages.
Ice cream sales and drownings rise together, but ice cream doesn't cause drowning: hot weather drives both. Two columns can also move together because both grow over time, or by pure chance when many pairs are compared (with 20 columns there are 190 pairs, so a few will look significant by luck). Treat strong correlations as ideas to investigate, not as proof.
A shop exports 200 orders with columns Order ID, Items, Discount % and Total. The matrix leaves Order ID out, then shows Items and Total at r = 0.82 (very strong, p < 0.001): bigger baskets cost more, as expected. Discount % and Total show r = 0.31 with p = 0.01, a weak but probably real link worth a closer look in the scatter plot. Discount % and Items show r = 0.05 with p = 0.48, which could easily be chance.
Columns named ID, code, ZIP or phone are skipped automatically, because their numbers are labels, not amounts.
Each pair uses the rows where both columns have a number; the tooltip and pair list show how many.
Two groups (say, two shops) can each show no correlation but a strong one when mixed; split the data and compare.
=CORREL(B2:B100, C2:C100) gives the same Pearson r for one pair.
A table showing the correlation between every pair of columns. The diagonal is always 1, because every column matches itself, and the table is mirrored across it.
It depends on the field: 0.3 can be meaningful in social research, while lab measurements are expected to exceed 0.9. Look at r, the p-value and the plot together.
At least 3 to calculate anything, but 30 or more for a reliable answer; with few rows, the p-value tells you how much to trust it.
No. Correlation needs numbers. Convert categories to numbers first (for example Yes = 1, No = 0), or use the Frequency Table to compare groups.
Yes, .xls and .xlsx files are read in your browser, as well as CSV.
As one column goes up, the other tends to go down, like price and the number of units sold. −0.8 is as strong as +0.8, just in the opposite direction.
There were fewer than 3 rows where both columns had a number, or one column has the same value in every row, so no correlation can be calculated.
No. The file is opened and analysed in your browser; it never leaves your device, so you can use it with customer, sales or HR data.
Updated