14.4 Interpreting correlation coefficients — Learn
Prerequisites: scatter diagrams and correlation from Chapter 11, and the language of hypothesis testing from Section 14.1.
By the end of this section you can: interpret a given correlation coefficient using a given p-value or critical value; state the hypotheses for a test of no linear correlation; and explain why a significant correlation is not a cause.
1. What a correlation coefficient measures
Two variables measured on the same items can be plotted on a scatter diagram. The product moment correlation coefficient, written , measures how close the points lie to a straight line.
The value of always lies between and .
- means every point lies exactly on an upward-sloping line.
- means every point lies exactly on a downward-sloping line.
- means there is no linear pattern. The points may still curve.
The sign gives the direction and the size gives the strength. A value of close to or is a strong linear relationship. A value close to is a weak one.
In this section the value of is always given. The calculation of is not required; the work is to interpret the value and to test it.
2. Testing for linear correlation
A sample of pairs is used to judge the whole population. The population correlation coefficient is written (the Greek letter rho).
The null hypothesis is that there is no linear correlation in the population:
The alternative depends on the question:
A positive alternative is used when the question asks whether the variables move together. A negative alternative is used when one variable is thought to fall as the other rises. A two-tailed alternative is used when a relationship in either direction matters.
3. Deciding with a p-value
If a p-value is given, compare it with the significance level in the usual way.
- p-value : reject . There is evidence of linear correlation.
- p-value : retain . There is not sufficient evidence of linear correlation.
The p-value means the same as before. It is the probability of a value of at least as extreme as the one observed, if there were no correlation at all. A small p-value says that a value of this far from zero is surprising under .
4. Deciding with a critical value
If a critical value is given, compare the coefficient with it.
- For a one-tailed test, compare with the critical value in the same direction. A positive critical value needs above it. A negative critical value needs below it.
- For a two-tailed test, compare with the critical value. The sign does not matter, because a strong relationship in either direction is interesting.
The critical value depends on the number of pairs. A larger sample needs a smaller coefficient to be significant, because a large sample gives more information about the population.
5. Worked examples
Example 1 — a p-value. A study of 15 students finds a correlation of between hours of revision and test score. The test is one-tailed, with and a significance level of 5%. The p-value is . Decide the test and interpret the result.
Compare the p-value with the level:
The test rejects . There is sufficient evidence at the 5% level of a positive linear correlation between hours of revision and test score.
Notice what the conclusion does and does not say. It says that the two variables move together in this population. It does not say that more revision causes a higher score.
Example 2 — a critical value that retains. A sample of 30 pairs gives . The test is two-tailed at the 5% level, and the critical value for 30 pairs is . Decide the test.
The test is two-tailed, so compare with the critical value:
The coefficient is below the critical value, so the test retains . There is not sufficient evidence at the 5% level of a linear correlation.
The same value of would reject for a larger sample. With 60 pairs the critical value at the 5% level is about , and . This is why a correlation must always be reported with the sample size.
Example 3 — a negative correlation. A sample of 25 pairs gives between the age of a machine and its efficiency. The test is one-tailed at the 5% level, with . The critical value for 25 pairs is , and the test is on the lower tail. Decide the test.
For a negative one-tailed test, compare with the negative of the critical value:
The coefficient is more extreme than the critical value, so the test rejects . There is sufficient evidence at the 5% level of a negative linear correlation between age and efficiency. Older machines in this sample tend to be less efficient.
Example 4 — a large p-value. A sample of 20 pairs gives and a two-tailed p-value of . Decide the test at the 5% level.
Since , the test retains . A value of this far from zero would happen in about 35% of samples if there were no correlation, so it is not surprising. There is not sufficient evidence of a linear correlation.
6. Correlation is not causation
A significant correlation says that two variables move together. It does not say that one causes the other.
Three other explanations are common.
- A third variable drives both. Ice cream sales and drowning deaths rise together, because hot weather increases both. Neither causes the other.
- The direction is reversed. A correlation between exercise and health could mean that healthy people find exercise easier, not that exercise creates health.
- The relationship is not linear. A strong curve can give a value of close to zero, because only measures straight-line closeness. Always look at the scatter diagram as well as the value of .
Watch out. Four traps appear when a correlation is tested.
Comparing with the significance level. The coefficient and the level are different kinds of number. Compare a p-value with ; compare with a critical value.
Ignoring the sample size. The critical value depends on the number of pairs. A moderate can be significant for a large sample and not significant for a small one.
Forgetting to take the absolute value for a two-tailed test. A two-tailed test uses , because is as strong as .
Reading a cause into a correlation. The test measures closeness to a straight line, nothing more. Say "is associated with", not "causes", unless the study was designed to show cause.
Re-check: state , , the number of pairs and the significance level before you compare anything.
Progress check
- Write and for a test of whether two variables have a positive linear correlation.
- A sample of 30 pairs gives and a two-tailed p-value of . Decide the test at the 5% level.
- A sample of 15 pairs gives . The two-tailed 5% critical value for 15 pairs is . Decide the test, and explain why the answer differs from question 2 even though is the same.
- Write one sentence that interprets a significant negative correlation without claiming cause.
You should now be able to
- explain what the correlation coefficient measures and what its sign means;
- write the hypotheses for a test of no linear correlation;
- decide a test from a given p-value;
- decide a test from a given critical value, using or as the tail requires;
- explain why the sample size changes the critical value;
- interpret a significant correlation in context without claiming cause.