Product moment and Spearman's rank correlationEdexcel A-Level Further Maths: Revision notes
Section 1
The product moment correlation coefficient
The product moment correlation coefficient (PMCC) measures the strength of linear correlation between two variables, with . From summary statistics, Example: , , give : strong negative linear correlation. Values near show strong correlation and values near show little linear correlation.
Interpreting a correlation as causation. Describe it as an association, in context.
Section 2
Conditions and the effect of coding
The PMCC is only meaningful when the data come from a population with a bivariate normal distribution, so the scatter diagram should look roughly elliptical, with no clear curve and no outlier. It is a measure of linear correlation only. Coding (a linear change such as , ) does not change the size of . If and have the same sign, is unchanged; if exactly one is negative, changes sign. So with , between and becomes between and .
For coding questions, look only at the signs of the multipliers: the numbers added or subtracted never matter.
Section 3
Spearman's rank correlation coefficient
Spearman's rank correlation coefficient measures how well the relationship between two variables can be described by a monotonic (always increasing or always decreasing) function. It is used when data are ranks, or when the data are not bivariate normal or the relationship is monotonic but not linear. Rank each variable, find the difference in ranks for each pair, then Example: , gives . Spearman's coefficient is less affected by outliers than the PMCC.
Subtracting from instead of from , or using in the denominator.
Section 4
Ties in ranks
When two or more values are equal, give each the mean of the ranks they would have occupied. For example, two scores in joint 3rd and 4th place both get rank . The next value continues at rank . The formula for assumes there are no ties, so with ties it is only an approximation (the exact value is the PMCC of the ranks). Example: mathematics scores have ranks . With physics ranks , and . You may instead enter the ranks into a calculator.
After sharing ranks, check that the ranks still add up to .
Section 5
Choosing and interpreting the coefficient
Use the PMCC when the data are measured and the scatter diagram is roughly elliptical (linear association). Use Spearman's coefficient when the data are ranks, or when the relationship is monotonic but not linear, or when outliers are present. If is much larger than , the relationship may be curved or contain an extreme value. Always interpret in context: for example, means students who score highly in mathematics tend to score highly in physics. Do not claim cause.
Using the PMCC for data that are only ranks.
That's the notes covered.
Carry on to the next subtopic.
Exam questions on Product moment and Spearman's rank correlation
- A researcher records the hours of sleep, , and the reaction time, ms, of each of 8 randomly chosen students. The summary statistics are , and .Interpret the value of between and in context, and state an assumption about the population needed to use in a hypothesis test.2 marks
- Two judges each rank six paintings, to , from 1 (best) to 6 (worst). Judge 1 ranks to as respectively. Judge 2 ranks them as respectively.State, with a reason, whether Spearman's rank correlation coefficient or the product moment correlation coefficient is more appropriate for these data.2 marks
- Seven students sit a mathematics test and a physics test. Their scores, in the order of students to , are: mathematics and physics .Rank the mathematics scores and the physics scores from lowest (rank 1) to highest, and hence show that .3 marks
Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).