How do I calculate the correlation coefficient?
Make a table with x, y, xy, x² and y² for every point and add each column. Then r = (nΣxy minus ΣxΣy) / √((nΣx² minus (Σx)²)(nΣy² minus (Σy)²)). For x = 1 to 5 and y = 2, 4, 5, 4, 5 that is 30 / √(50 × 30) = √15/5, about 0.7746. Paste your own columns above and the page fills the formula in the same way.
What is a strong correlation coefficient?
This calculator calls |r| of 0.7 or more strong, 0.4 up to 0.7 moderate, 0.1 up to 0.4 weak, and under 0.1 no linear correlation. Those are common textbook thresholds, not universal ones: in a physics lab 0.9 can be disappointing, while in social science 0.4 can be a notable result.
What is the difference between r and r squared?
r has a sign and r² does not. r tells you direction and strength; r² tells you the share of the variation in y that the line of best fit accounts for. r = 0.7746 gives r² = 0.6, meaning the line explains 60% of the variation and leaves 40% as scatter.
Can the correlation coefficient be more than 1?
No. r always lies between -1 and 1 and reaches either end only when every point is on one straight line. An answer above 1 means a sum is wrong, most often Σx² computed as (Σx)².
Does a high correlation mean one thing causes the other?
No. It means the two move together in this data. A third factor can drive both, as hot weather drives both ice cream sales and swimming accidents, or the cause can run the other way. Showing cause takes an experiment or an argument about the mechanism.
Is this the Pearson or the Spearman correlation?
Pearson's r, the usual correlation coefficient, which measures how well a straight line fits the values themselves. Spearman's coefficient applies the same formula to the ranks of the values instead, which makes it measure any steadily rising or falling relationship and makes it less sensitive to outliers.
Why is r shown as a square root?
Because that is its exact value. r² is always a fraction on data you can type, so r is the square root of that fraction with a sign: √15/5 for the textbook set. The decimal 0.7746 is printed beside it as an approximation, and it is what the strength label reads.
How many points do I need?
At least three here. With two points r is always 1 or -1, because a line passes through any two points, so the number says nothing about the data. Even with a handful of points r can swing a lot, so treat an r from five points as a rough reading.